Programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Programming

Create a class that represents a grade distribution for a given course. Write methods to perform the following task. 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 number of grades. Return the percentage of each letter grade as a whole number between 0 and 100.

17th Apr 2018, 1:12 PM
Taye Sam Tardey
Taye Sam Tardey - avatar
14 Answers
+ 3
Taye Sam Tardey , Is that your homework? If you want us to help, start somewhere and we will help you along the way.
17th Apr 2018, 1:15 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 3
second: - Go to the code playground, - create a file in Java, - give it an apropriate name, - save it as public - and post a link to it here in this post
17th Apr 2018, 1:22 PM
Ulisses Cruz
Ulisses Cruz - avatar
17th Apr 2018, 1:36 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 3
Now, let's divide the problem in many subproblems: 1. Create a class that represents a grade distribution for a given course. 2. Write methods to perform the following task: 2.1. Set the number of each of the letter grades A,B,C,D and F. 2.2. Read the number of each of the letter grades A , B, C, D and F. 2.3. Return the total number of grades. 2.4. Return the percentage of each letter grade as a whole number between 0 and 100. Start by trying to do subproblem 1. If you have any doubt ask.
17th Apr 2018, 1:45 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
I am at work now, i will look into it asap. I really appreciate your help.
17th Apr 2018, 1:52 PM
Taye Sam Tardey
Taye Sam Tardey - avatar
+ 1
first: which programming language are you using?
17th Apr 2018, 1:19 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
Yea thats it
17th Apr 2018, 1:39 PM
Taye Sam Tardey
Taye Sam Tardey - avatar
+ 1
This java lesson from sololearn can be of help for the first subproblem: https://www.sololearn.com/learn/Java/2155/
17th Apr 2018, 1:50 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
Yea thats the home work
17th Apr 2018, 1:16 PM
Taye Sam Tardey
Taye Sam Tardey - avatar
0
The bar will have five bars, one per grade. Each can be a horizontal rows of asterisks. Let one asterisk represent 2 percent, so 50 asterisks corresponds to 100 percent. Mark the horizontal axis at 10 percent increments from 0 to 100 percent and label each line with it letter grade.
17th Apr 2018, 1:18 PM
Taye Sam Tardey
Taye Sam Tardey - avatar
0
This is my first time coding, so i am a lil lost
17th Apr 2018, 1:18 PM
Taye Sam Tardey
Taye Sam Tardey - avatar
0
Java
17th Apr 2018, 1:20 PM
Taye Sam Tardey
Taye Sam Tardey - avatar
0
Okay let me do that now
17th Apr 2018, 1:23 PM
Taye Sam Tardey
Taye Sam Tardey - avatar
0
Hello, i tried working on the program but i cant seem to make it run
17th Apr 2018, 11:41 PM
Taye Sam Tardey
Taye Sam Tardey - avatar