i have just started my first c# class and have an assignement. what i need to do is build a program that lets a user input 5 test scores then it displays your letter grade based on the average. my teacher hasnt responded in a week so im relying on your help. i seem to have the program accepting and storing the 5 test scores. im not sure if the average is "actually" being calculated. i am sure though that the average is not being applied to the switch statement. when the program runs and returns the grade letter its blank not displaying the default either.
my thought is i just need a simple line in the program to initiate the grade letter test and then store the letter for string grade. something like:
myTest.SetGrade(); // to initiate the test then
Console.WriteLine("Grade: ", myTest.Grade) // to show the letter but thats not happening
i will attach a zip of my current visual studio code if that is of use and i will copy it below.
I cant express enough how grateful i am for your help, i have spend hours online and in my book and am getting no where
using System;
namespace TicketSpace
{
public class Test
{
private int exam1;
private int exam2;
private int exam3;
private int exam4;
private int exam5;
private int average;
private string grade;
public Test()
{
}
public Test(int test1, int test2,int test3,int test4,int test5)
{
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.