using System.Collections.Generic;
using System;
using System.Diagnostics;
using System.Data;
using System.Xml.Linq;
using Microsoft.VisualBasic;
using System.Collections;
using System.Linq;
namespace ConsoleApplication1
{
sealed class Module1
{
static bool startup = true;
static string teacherid = "firstname.lastname.password";
static string student1 = "firstname.lastname.password";
static string student2 = "firstname.lastname.password";
static string student3 = "firstname.lastname.password";
static public void Main()
{
string s1 = "";
s1 = (new Microsoft.VisualBasic.Devices.ServerComputer()).FileSystem.ReadAllText("C:\\school\\s1.txt");
string s2 = "";
s2 = (new Microsoft.VisualBasic.Devices.ServerComputer()).FileSystem.ReadAllText("C:\\school\\s2.txt");
string s3 = "";
s3 = (new Microsoft.VisualBasic.Devices.ServerComputer()).FileSystem.ReadAllText("C:\\school\\s3.txt");
Console.Title = "School System 1.0";
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WindowHeight = Console.LargestWindowHeight - 17;
Console.WindowWidth = Console.LargestWindowWidth - 22;
while (startup == true)
{
Console.WriteLine("Are you a [T]eacher or a [S]tudent");
if (Console.ReadLine() == "T")
{
Console.WriteLine("Enter your TeacherID: ");
if (Console.ReadLine() == teacherid)
{
Console.WriteLine("Select Student: (1)" + student1 + " (2)" + student2 + " (3)" + student3);
if (Console.ReadLine() == "1")
{
Console.WriteLine("Would you like to [V]iew " + student1 + "\'s grades, or [E]dit " + student1 + "\'s grades");
if (Console.ReadLine() == "V")
{
Console.WriteLine(s1);
}
else if (Console.ReadLine() == "E")
{
Console.WriteLine("What class do you want to modify?");
//Modifier Code Here`
}
}
else if (Console.ReadLine() == "2")
{
Console.WriteLine("Would you like to [V]iew " + student2 + "\'s grades, or [E]dit " + student2 + "\'s grades");
if (Console.ReadLine() == "V")
{
Console.WriteLine(s2);
}
else if (Console.ReadLine() == "E")
{
Console.WriteLine("What class do you want to modify?");
//Modifier Code Here`
}
}
else if (Console.ReadLine() == "3")
{
Console.WriteLine("Would you like to [V]iew " + student3 + "\'s grades, or [E]dit " + student3 + "\'s grades");
if (Console.ReadLine() == "V")
{
Console.WriteLine(s3);
}
else if (Console.ReadLine() == "E")
{
Console.WriteLine("What class do you want to modify?");
//Modifier Code Here`
}
}
}
}
else if (Console.ReadLine() == "S")
{
Console.WriteLine("What is your StudentID?");
if (Console.ReadLine() == student1)
{
Console.WriteLine("Would you like to [V]iew your grades or [L]ogout?");
if (Console.ReadLine() == "V")
{
}
else if (Console.ReadLine() == "L")
{
}
}
else if (Console.ReadLine() == student2)
{
if (Console.ReadLine() == "V")
{
}
else if (Console.ReadLine() == "L")
{
}
}
else if (Console.ReadLine() == student3)
{
if (Console.ReadLine() == "V")
{
}
else if (Console.ReadLine() == "L")
{
}
}
}
}
}
static public void e()
{
Console.WriteLine("What class do you want to modify?");
if (Console.ReadLine() == "Math")
{
Console.WriteLine("Change it to:");
string m1 = Console.ReadLine();
}
else if (Console.ReadLine() == "Science")
{
}
else if (Console.ReadLine() == "History")
{
}
else if (Console.ReadLine() == "English")
{
}
else if (Console.ReadLine() == "Spanish")
{
}
}
}
}
visit
mattnappo.com/temp.html
Thank you
mattnappo.com/temp.html
Thank you
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.