Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to do this code in c#, Please help me with this assignment i already posted this question four times but yet no help..... ::::

How to do this code in c#, Please help me with this assignment i already posted this question four times but yet no help.....

:::: Student Grade Graph by Passing in Command Line Arguments In this assignment, youre going to create a console app for a teacher who has an unknown number of students and needs to display a graph of student grades. many different ways of coding C# Console apps. This is how youll get the grades into the app. Youre going to pass in grades through the command line separated by spaces. There can be as many grades as the teacher wants to send to the program. Youll put the grades into the following ranges: A [90-100], B [80-89], C [70-79], D [60-69] and F [Below 60] On the Y axis, youll have the number of grades. Figure out which grade has the most and make that the highest value for the Y axis. Youll display a bar graph with asterisks for the graph bars that shows the grade distribution. The X-axis will be the grades A to F. Youll then tell the user how many of each grade there were. Here is a screen shot example using the following values: 83 72 100 49 66 88 84 75 92 96 50 77 93 82 89 99 97 94 86image text in transcribed

Youll prompt the user to press the enter key to end the program and exit after displaying their grades. Assume proper input for the grades and that the user will pass in grades between (and including) 0 and 100.

Here is another set of values: 99 55 14 96 70 82 75 83 45 96 74 77

86 84 100 96 86 82 83 84 72 86 85 74

71 90 84 73 77 96 84 84 76 75

image text in transcribed

(I don't know what i am missing it gives me error, also i don't know how to make a graph look alike, exactly as above )here is my code:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace Assignment03

{ class Program

{ static void Main(string[] args)

{ int A=0, B=0, C=0, D=0, F=0;

for (int i = 0; i

} else if (int.Parse(args[i]) args.Length; j--) { Console.WriteLine("\t\tStudent Math Graph "); Console.WriteLine(int.Parse(args[j])); Console.WriteLine(" |"); Console.ReadLine(); }

}

Student Math Graph 7 I 6 I S I 3 I 2 I 1 I Class had 7 A Grades 6 B Grades 3 C Grades 1 D Grades 2 F Grades Press any key to end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

1. What is Ebola ? 2.Heart is a muscle? 3. Artificial lighting?

Answered: 1 week ago