Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java To encourage good grades, Hermosa High School has decided to award each student a bookstore credit that is 10 times the student's grade point
Java
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit that is 10 times the student's grade point average. In other words, a student with a 3.2 grade point average receives a $32.0 credit. Create a class called BookstoreCredit that prompts a student for a name and grade point average and then passes the values to a method called computeDiscount () that displays a descriptive message. The message uses the student's name, echoes the grade point average, and computes and displays the credit. An example of the program is shown below: Enter your name Jane Doe Enter your gpa 3.6 Jane Doe, your GPA is 3.6, so your discount is $36.0 Tasks Create the BookstoreCredit class. The computeDiscount method calculates a discount based on a student's GPA. The BookstoreCredit program displays the discount for the student's information Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started