Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Directions 
The file must be called (driver program)
(Homework Scores file)
ex: KenDeweyProg2.java (driver program)
KDHwScore.java (YIHWScore file)
Ensure you include ALL files required to make your program compile and run.
I would like to see your .java files only.
Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital letter. 
Style Requirements
Refer to the Java Coding Style Document.
Add comments as required for all .java files.
Overall Requirements
Provide a complete program that handles the entry and display of homework scores. As part of your program, provide a YIHwScore class that contains the points earned on a particular homework and also the maximum possible points on that homework. In order to keep track of the overall average, the YIHwScore class also contains the total points earned on all homework combined and the total possible points on all homework combined. In order to determine letter grades, the YiHwScore class specifies cutoff values for the A, B, C, and D letter grades.
More specifically, the YIHwScore class should contain these constants and variables:
• Array constant for the letter grade cutoffs: A = 0.9, B = 0.8, C = 0.7, D = 0.6 
o One dimensional array, only needs to hold the values, not the letters. 
• Class variables named totalEarnedPoints and totalPossiblePoints 
• Instance variables named earnedPoints and possiblePoints 
YourNameProg2.java
Provide a main driver method. It should:
• Instantiate a 4 element array of YIHwScore and store the values below in this array. In the instantiations, initialize the objects to these values: 
o hw1: 26.5 earned points, 30 possible points 
o hw2: 29 earned points, 27.5 possible points 
o hw3: 0 earned points, 20 possible points 
o hw4: 16 earned points, 20 possible points 
• For hw1, hw2, and hw3, call printGrade. (instance method) 
• Call printOverallGrade. (class method) 
YIHwScore.java
Within your YiHwScore class, include these requirements:
The YIHwScore class should contain a two-parameter constructor that handles initializations for the earnedPoints and possiblePoints instance variables.
Implement a printGrade method that prints a particular homework's earned points, possible points, and letter grade. The letter grade is based on this scale: A ? 90%, B ? 80%, C ? 70%, D ? 60%, F < 60%. 
Implement a class method named printOverallGrade that prints the overall earned points, overall possible points, and overall letter grade.
Use appropriate modifiers for methods. The modifiers we've discussed so far are private, public, and static. Use helping methods when appropriate.
As always, you should:
• Limit your use of class variables and instance variables - only use them if appropriate.
• Use appropriate modifiers for your methods. The modifiers we've discussed are private, public, static, and final.
• Use helper methods if appropriate.
Mimic the sample session precisely. 
Upload your page to the Dropbox. 
NOTE: Complete your activity and submit it to the Dropbox.
Total Points 
Sample Session:

On this homework, you earned 26.5 out of 30.0 possible points: B
On this homework, you earned 29.0 out of 27.5 possible points: A
On this homework, you earned 0.0 out of 20.0 possible points: F
On this homework, you earned 16.0 out of 20.0 possible points: B
On all homework, you earned 71.5 out of 97.5 possible points: C 

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9128503

Have any Question?


Related Questions in Computer Engineering

Annual demand and supply for the mylan company is given

Annual demand and supply for the Mylan company is given by: QD = 5,000 + 0.5 I + 0.2 A - 100P, and QS = -5000 + 100P where Q is the quantity per year, P is price, I is income per household, and A is advertising expenditu ...

Calculate the price of a five-year bond that has a coupon

Calculate the price of a five-year bond that has a coupon rate of 6.5 percent paid annually. The current market rate is 5.70 percent. (Round answer to 2 decimal places, e.g. 5,275.25.)

Question provide a real-world example or describe a

Question: Provide a real-world example or describe a hypothetical situation in which a legitimate organization used spam in an effective and nonintrusive manner to promote a product or service. Need 300-350 words APA sta ...

1 select one of the topics listed below and discuss

1. Select one of the topics listed below and discuss it. Describe an application that you have to solve by using at least 2 Excel functions. It can be Math, Statistics, Engineering, Financial, etc. Explain what Excel fun ...

Is it ethical for facebook to mine its users posts for

Is it ethical for Facebook to mine its users' posts for signals that those users are about to go through a break up? Is it ethical for the company to then help its clients target their ads based on this research? Is what ...

How do you make a java program that reads two diagonal

How do you make a Java program that reads two diagonal points, say p1 and p2, of an up-right rectangle and finds both the smallest circle containing the rectangle and the largest circle that can be contained in the recta ...

A small factory produces two types of toys trucks and

A small factory produces two types of toys: trucks and bicycles. In the manufacturing process two machines are used: the piece maker and the assembler. It takes 2 hours to make the pieces of the bicycles and 1 hour for t ...

Research the fire at the federal aviation administration

Research the fire at the Federal Aviation Administration (FAA) facility in Chicago, Illinois (2014). Provide insight into the following: What went wrong? What went right? Would a risk assessment strategy if employed miti ...

The manufacture of an over-the-counter heartburn relief

The manufacture of an over-the-counter heartburn relief medication claims that it's Product brings relief in less than 3.5 minutes, on average. To be able to make the screen, the manufacturer was required by the FDA to p ...

The appendix to chapter one will be very useful in

The appendix to chapter one will be very useful in answering this question, if you need a refresher or introduction to regression analysis. The following equation is the regression results of a study on infant mortality ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As