![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 24.02.2020 17:48, montgomerykarloxc24x
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!");
}
}
![answer](/tpl/images/cats/otvet.png)
Answers: 2
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 07:30, haleyblu6351
By refraining from constructing a building until they are certain that it will not cause harm to the environment, an organization is adhering to the
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 10:00, michael3592
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 04:10, cvbnkifdfg
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
Do you know the correct answer?
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit t...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 14.04.2021 08:50
![Konu](/tpl/images/cats/mat.png)
Mathematics, 14.04.2021 08:50
![Konu](/tpl/images/cats/fizika.png)
Physics, 14.04.2021 08:50
![Konu](/tpl/images/cats/mat.png)
Mathematics, 14.04.2021 08:50
![Konu](/tpl/images/cats/istoriya.png)
History, 14.04.2021 08:50
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 14.04.2021 08:50
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/en.png)
English, 14.04.2021 08:50