Computers and Technology, 14.03.2020 04:45 kayranicole1
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 credit. Create a class that prompts a student for a name and grade point average, and then passes the values to a method that displays a descriptive message. The message uses the student’s name, echoes the grade point average, and computes and displays the credit. Save the application as BookstoreCredit. java.
Must use the following code and variables:
import java. util. Scanner; //import statement allow use of Scanner class
public class BookstoreCredit
{
public static void main(String[] args)
{
//Add variables (student name, student gap and bookstore credit)
String studentName;
double studentGpa; //double declaration for student gpa (hold numbers)pg.71-72
double bookstoreCredit; //double declaration for bookstore credit (hold numbers)pg.71-72
//insert a Scanner class object declaration - pg.84 You Do It #4
//add missing scanner class here
//Add prompt for the integer value and an input statement that accepts the value pg.80
//add missing statement here
studentName = input. nextLine(); //retrieves the next line of data and returns it as a String pg.79
//Add prompt for the integer value and an input statement that accepts the value pg.80
//add missing statement here
studentGpa = input. nextDouble(); //retrieves input as a double pg.79
//bookstore credit is 10 times the student gpa
bookstoreCredit = studentGpa * 10;
//Output statement displays student’s name, echoes the grade point average, and computes and displays the credit pg.80
System. out. println(studentName + ", with a " + studentGpa + " GPA you receive a $" + bookstoreCredit + "credit!");
}
}
Answers: 1
Computers and Technology, 22.06.2019 11:00
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
Computers and Technology, 24.06.2019 15:50
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit t...
Mathematics, 24.10.2021 18:30
Mathematics, 24.10.2021 18:30
Mathematics, 24.10.2021 18:30
Mathematics, 24.10.2021 18:30
Social Studies, 24.10.2021 18:30
Computers and Technology, 24.10.2021 18:30
World Languages, 24.10.2021 18:30
Chemistry, 24.10.2021 18:30
Mathematics, 24.10.2021 18:30
Mathematics, 24.10.2021 18:30
Mathematics, 24.10.2021 18:30
Biology, 24.10.2021 18:30
Mathematics, 24.10.2021 18:30
Chemistry, 24.10.2021 18:30
Mathematics, 24.10.2021 18:30
SAT, 24.10.2021 18:30