-
Notifications
You must be signed in to change notification settings - Fork 1
/
Module_One_Solution.cs
41 lines (38 loc) · 1.43 KB
/
Module_One_Solution.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Module_One_Solution
{
static void Main(string[] args)
{
string FirstName, LastName, AddressLine1, AddressLine2, City, State, Postal, Country;
string ProgramName, DepartmentHead;
float Degrees;
string DegreeName;
int CreditsRequired;
string CourseName, Teacher;
int Credits, DurationInWeeks;
DateTime birthday;
string continuePrompt = "yes";
while (continuePrompt == "yes")
{
Console.WriteLine("\n================================");
Console.WriteLine("New Student\n");
Console.Write("First Name : ");
FirstName = Console.ReadLine();
Console.Write("Last Name : ");
LastName = Console.ReadLine();
Console.Write("Country : ");
Country = Console.ReadLine();
Console.Write("City : ");
City = Console.ReadLine();
Console.WriteLine("\nYou are " + FirstName + " " + LastName + "\nand you are from " + City + ", " + Country + ".\n\nContinue? (yes/no)");
continuePrompt = Console.ReadLine();
}
}
}
}