top of page

C Sharp

Public·2 members

Cat Booking Management in VB.NET MVC

Description: We are primarily testing your programming, design, documentation and problem-solving skills. You must ensure that your documentation is simple, and any technical terms are thoroughly explained so that a client who is non-technical can understand how the program works and read through the comments in the code. This is standard practice in all our commercial applications for clients and we must ensure that a suitable candidate can produce a program and documentation which is suitable for a non-technical client to understand. Ensure that all parts of the code is commented using simple language to show that you have a clear understanding and for clients to easily understand what is going on.


Requirements:

You will develop a web-based application with a linked database to manage a client’s business. As this is a commercial business you must ensure that you implement a robust, username/password system. Only the Admin and staff members…


18 Views

Overview Of ASP.NET MVC

MVC stands for Model View Controller. It is an architectural pattern to develop enterprise application. It is not a Microsoft technology, whether it is a common design pattern that is used to create web application. It is used to create structure user-oriented application. MVC is most similar to MVVM [Model View View-Model] but not completely.

M – Model V – View C – Controller


The following is the detailed description:


 Model

Model is entity class that encapsulates the properties and the behaviors of domain. It also contains the business logic. MVC components use Model to perform logic. Model is basically represented to data objects like it can be business logic, validation or data access logic. The view and the controller both can access the Model.


60 Views

How to find date difference in C#


How to find date difference in C#
How to find date difference in C#

Solutions to calculate difference between two date time


Program.cs


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace firstCSharpDemo
{
    class Program
    {
        public static void Main(string[] args)
        {
            string formats = "MM/dd/yyyy HH:mm:ss";
            Console.WriteLine("Enter First Date and Time in MM/dd/yyyy HH:mm:ss format: ");
            // DateTime startTime = DateTime.Parse(Console.ReadLine());
             DateTime startTime = DateTime.ParseExact(Console.ReadLine(),formats, System.Globalization.CultureInfo.InvariantCulture);

            Console.WriteLine("Enter Second Date and Time in MM/dd/yyyy HH:mm:ss format: ");
            DateTime endTime = DateTime.ParseExact(Console.ReadLine(), formats, System.Globalization.CultureInfo.InvariantCulture);



            TimeSpan span = endTime.Subtract(startTime);
            int months = (int)(span.Days / 30.436875);
            int Year = (int)(span.Days / 365.2425);
            Console.WriteLine("Difference in days : " + span.Days);
            Console.WriteLine("Difference in Months: " + months);
            Console.WriteLine("Difference in Years : " + Year);
            Console.WriteLine("Difference in minutes: " + span.Minutes);
            Console.WriteLine("Difference in hours: " + span.Hours);
            Console.WriteLine("Difference in seconds : " + span.Seconds);
            Console.ReadKey();

        }
    }
}

23 Views

Triangle Patterns in C#


 using System;   
 using System.Collections.Generic;   
  using System.Linq; 
   using System.Text; 
    namespace Hello_Word   
    {
      class Program  
      {
      static void Main(string[] args)
      {
        int val=5;
         int i, j, k ;  
          for (i = 1; i <= val; i++)   
          {
           for (j = 1; j <= val-i; j++)    
           {
            }
             for (k = 1; k <= i; k++)   
             {
              Console.Write("*");   
             }
         Console.WriteLine("");   
         }
          Console.ReadLine();  
         }
        }
      } 

Output:


*
**
***
****
*****

17 Views
bottom of page