Question: Objective You will do some programming exercises of variables and data types in C#. It will help you to improve your programming skills in using

 Objective You will do some programming exercises of variables and data

Objective You will do some programming exercises of variables and data types in C\#. It will help you to improve your programming skills in using struct, array and object creation in C. Q1: Use Visual Studio editor to write a console program in C\# to display complete student information. Create a struct Person with members for the first name, last name and age. Create another struct Student with members: Person, student ID, college name, city, and address. Create two objects for representing two students from the same college, one is hard-codded and the second is entered by the user on run time. Accept (validate) student's and college values into the appropriate struct variable's datatypes (use Convert class). Add the try \& catch to all your conversions from string to some others datatypes (use goto instruction if you have an exception). Store all those values into an object, and then, save that object into an array. Print (show) all the students information from the array, in correct format (on two lines) by using the placeholders (align all the numbers to the right and text to the left). Use a loop for having the valid age value entered between 18 to 65 years old. Use a loop do .. while and switch for entering more than one student data. Test and debug your programme and identify yourself and the work and comment the code of .cs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!