Question: Write a program in Java that tells what classes you are failing. Note: Below a 7 0 is considered failing, while a 7 0 or

Write a program in Java that tells what classes you are failing. Note: Below a 70is considered failing, while a 70or above is passing. Input Description The first line will be the name of the person. The following 7lines will have 2parts, separated by a space: the first being the name of a class (without spaces)and the second part being the integer grade the person received in that class.
Output Description:
Output all classes which your friend failed in the order in which they appeared.
Sample Input:
Billy Bobby
English 80
Spanish 90
Math 93
History 64
CompSci 100
Band 53
Science 98
Sample output:
History
Band

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!