In: Computer Science
In C#
Start to develop a registration program for Continental University. At this stage of development, the program only needs to keep track of some basic information about a student, including first name, last name, and number of credits taking. You will gradually enhance the program in subsequent assignments. You need to implement a class named Student that represents a student, and a testing program. The testing program should prompt the user to enter the data about a student and then display a summary.
Sample Dialog
Welcome to the Continental University Registration System!
Enter data about a student
First Name: Tom
Last Name: Evans
Credits Taking: 12
Evans, Tom Credits Taking: 12
using System;
class Student {
public string firstName;
public string lastName;
public int credits;
public override string ToString(){
return lastName+", "+firstName+" Credits Taking: "+credits;
}
}
class HelloWorld {
static void Main() {
Student s = new Student();
Console.WriteLine("Welcome to the Continental University Registration System!");
Console.WriteLine("Enter data about a student");
Console.Write("First Name: ");
string firstName=Console.ReadLine();
Console.Write("Last Name: ");
string lastName=Console.ReadLine();
Console.Write("Credits Taking: ");
int credits=Convert.ToInt32(Console.ReadLine());
s.firstName=firstName;
s.lastName=lastName;
s.credits=credits;
Console.WriteLine(s);
}
}
NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME