Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve the following problem: Create a class that represents a grade distribution for a given course. Write methods to perform the following tasks: Set the

image text in transcribed

image text in transcribed

Solve the following problem: Create a class that represents a grade distribution for a given course. Write methods to perform the following tasks: Set the number of each of the letter grades A, B, C, D, and F Read the number of each of the letter grades A, B, C, D, and F Return the total of grades. . .Return the percentage of each letter grade as a whole number between 0 and 100, inclusive. Draw a bar graph of the grade distribution. The graph will have five bars, one par grade. Each bar can be a horizontal row of asterisks, such that the number of asterisks in a row is proportionate to the percentage of grades in each category. Let one asterisk represent 2 percent, so 50 asterisks correspond to 100 percent. Mark the horizontal axis at 10 percent increment from 0 to 100 percent, and label each line with its letter grade. For example, if the grades are 1 A, 4 Bs, 6 Cs, 2 Ds, and 1 F, the total number of grades is 14, the percentage of A's is 7, the percentage of Bs is 29, the percentage Cs is 43, the percentage of Ds is 14, and the percentage of Fs is 7 The A row would contain 4 asterisks (7 percent of 50 rounded to the nearest integer), the B row 14, the C row 21, the D row 7, and the F row 4. The graph would look like this: 10 20 30 40 50 60 70 80 90 100% *A (Your program must include at least 4 methods!! No credits without at least 4 methods!!!)

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

What is an exclusion?

Answered: 1 week ago

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago