60 503
Assignments Done
98,1%
Successfully Done
In April 2018

Answer to Question #4890 in C# for tim

Question #4890
Write a program to calculate and display your average and grade. Allow the user to enter five
scores. After values are entered, and the average calculated, test the result to determine whether
an A, B, C, D, D, F should be recorded. The scoring rubric is as follows: A- 90 &ndash; 100; B- 80-89;
C- 70-79; D- 60-69; F &lt; 60. Use methods.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

{
class Program
{
static void Main(string[] args)
{

}

{

float score, sum = 0, avg = 0; int i;
for (i = 1; i &lt;= 5; i++)
{
sum = sum + score;
}
avg = sum / (i - 1);
Console.WriteLine(&quot;Average:&quot; + avg);
if (avg &gt;= 90 && avg &lt;= 100)
else if (avg &gt;= 80 && avg &lt;= 89)
else if (avg &gt;= 70 && avg &lt;= 79)
else if (avg &gt;= 60 && avg &lt;= 69)
else
}
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Assignment Expert
12.12.13, 14:18

Submit it with all requirements as an assignment to our control panel and we'll assist you.

serena saldana
12.12.13, 08:26

how to Create a Web application that enables the user to enter first name, last name, and e-mail address. Accept those values and store them in a text file. Add validation controls to all three controls to ensure each has a value before loading it to the file. Confirm that the values are written to the file in c#

Paul
15.02.12, 21:33

What if you do not use the "for" method, is there an alternative method that you can use?