subject

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!");

}

}

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:20, shiann2002
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
image
Computers and Technology, 23.06.2019 03:30, patience233
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
image
Computers and Technology, 23.06.2019 10:00, karissanichole18
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
image
Computers and Technology, 23.06.2019 22:40, azariah7
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
Answers: 1
You know the right answer?
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit t...

Questions in other subjects: