Assignment 12: Letter Grade
Description
Many grading programs such as PupilPath provide the ability to display whether a student is passing or failing based on an average.
Task
Create a program that calculates the average of 3 grades and displays a letter grade based on the following chart.
For this assignment,
Post a screen capture of your program being executed a couple of times.
Post a screen capture of the code.
Questions
Write the following decision based on ranges.
1) Display "College Student" if a students age is between 18 and 21.
if(age >= 18 && age <= 21){
Console.WriteLine("College Student");
}
2) Display "Earned 10% Discount" for bill totals between $100 and $200.
if(bill >= 100 && bill <= 200){
Console.WriteLine("Earned 10% Discount");
}
3) Display "Gold Star Member" if you have been a member of the organization between 10 and 15 years.
if(member >= 10 && member <= 15){
Console.WriteLine("Gold Star Member");
}