using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Module_3
{
class Program
{
static void GetStudentInformation()
{
Console.WriteLine("Enter the student's First Name: ");
string firstName = Console.ReadLine();
Console.WriteLine("Enter the student's Last Name");
string lastName = Console.ReadLine();
Console.WriteLine("Enter the student's Birthdate: ");
string birthDate = Console.ReadLine();
Console.WriteLine("Enter the student's Address Line 1: ");
string addressOne = Console.ReadLine();
Console.WriteLine("Enter the student's Address Line 2: ");
string addressTwo = Console.ReadLine();
Console.WriteLine("Enter the student's City: ");
string city = Console.ReadLine();
Console.WriteLine("Enter the student's State: ");
string state = Console.ReadLine();
Console.WriteLine("Enter the student's Zip Code: ");
string zipCode = Console.ReadLine();
Console.WriteLine("Enter the student's Country: ");
string country = Console.ReadLine();
// Code to finish getting the rest of the student data
}
static void GetTeacherInformation()
{
Console.WriteLine("Enter the Teacher's First Name: ");
string firstName = Console.ReadLine();
Console.WriteLine("Enter the Teacher's Last Name");
string lastName = Console.ReadLine();
Console.WriteLine("Enter the Teacher's Birthdate: ");
string birthDate = Console.ReadLine();
Console.WriteLine("Enter the Teacher's Address Line 1: ");
string addressOne = Console.ReadLine();
Console.WriteLine("Enter the Teacher's Address Line 2: ");
string addressTwo = Console.ReadLine();
Console.WriteLine("Enter the Teacher's City: ");
string city = Console.ReadLine();
Console.WriteLine("Enter the Teacher's State: ");
string state = Console.ReadLine();
Console.WriteLine("Enter the Teacher's Zip Code: ");
string zipCode = Console.ReadLine();
Console.WriteLine("Enter the Teacher's Country: ");
string country = Console.ReadLine();
// Code to finish getting the rest of the Teacher data
}
static void GetCourseInformation()
{
Console.WriteLine("Enter the Course Name: ");
string courseName = Console.ReadLine();
Console.WriteLine("Enter the Course Credits");
string courseCredits = Console.ReadLine();
Console.WriteLine("Enter the Course Duration in weeks: ");
string courseDuration = Console.ReadLine();
Console.WriteLine("Enter the Course Teacher");
string courseTeacher = Console.ReadLine();
}
static void GetUprogramInformation()
{
Console.WriteLine("Enter the Program Name: ");
string programName = Console.ReadLine();
Console.WriteLine("Enter the Deptartment Head");
string deptHead = Console.ReadLine();
Console.WriteLine("Enter the Degrees: ");
string degrees = Console.ReadLine();
}
static void GetDegreeInformation()
{
Console.WriteLine("Enter the Degree Name: ");
string degreeName = Console.ReadLine();
Console.WriteLine("Enter the Credit Required");
string creditRequired = Console.ReadLine();
}
public void PrintStudentDetails(string firstName, string lastName, string birthDate)
{
Console.WriteLine("{0} {1} was born on: {2}", firstName, lastName, birthDate);
}
public void Main(string[] args)
{
string firstName;
string lastName;
string birthDate;
Program.GetCourseInformation();
Program.GetStudentInformation();
Program.GetTeacherInformation();
Program.GetUprogramInformation();
Program.GetDegreeInformation();
Program.PrintStudentDetails();
}
}
}
what am I doing wrong here? I keep getting an error on the Program.PrintStudentDetails();