Answer:
This will work for most languages, but this is mainly for c#. Double check what language your using before putting in this answer.
Console.WriteLine("What grade are you in?");
int grade = Convert.ToInt32(Console.ReadLine());
if (grade == 9)
{
Console.WriteLine("Freshman");
}
if (grade == 10)
{
Console.WriteLine("Sophomore");
}
if (grade == 11)
{
Console.WriteLine("Junior");
}
if (grade == 12)
{
Console.WriteLine("Senior");
}
if (grade < 8)
{
Console.WriteLine("Not in High School");
}
Explanation:
The first line asks what grade are you in, then when the user types in the grade it saves it in a variable. We then use that variable for the conditionals. The conditional states, whatever grade level your in, it prints your high school year title. If anything is lower than 8, it will print not in high school.
Answer:
get to know more aboutthe software
Answer:
The answer to this question can be described as follows:
Explanation:
The Pseudocode to this question can be described as follows:
start \\ start process
Declaration of variable
Input_File records.txt
Output_File result.txt
string author_Name
, title
int number_of_volume
open Input_File
open Output_File
input author_Name, title, number_of_volume from records.txt
while not eof \\ start loop and eof is end of file
output author_Name
output title
output number_of_volume
end while \\end loop
close records.txt \\close file
close results.txt \\close file
END \\end the code