Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

What are we arguing about now?

Answered: 1 week ago

Question

=+ 9. What is inflation and what causes it?

Answered: 1 week ago

Question

=+6. What does the invisible hand of the marketplace do?

Answered: 1 week ago