6public static void computeDiscount(String name, double gpa) {// Write your code here}In other words, a student with a 3.2 grade point average receives a8$32.0 credit.10Create an application...


* CENGAGE MINDTAP<br>Programming Exercise 3-6<br>Instructions<br>BookstoreCredit.java<br>+<br>1 import java.util.Scanner;<br>2 public class BookstoreCredit {<br>To encourage good grades, Hermosa High School has decided to<br>public static void main (String args[]) {<br>// Write your code here<br>3<br>award each student a bookstore credit that is 10 times the student's<br>4<br>grade point average.<br>5<br>}<br></><br>6<br>public static void computeDiscount(String name, double gpa) {<br>// Write your code here<br>}<br>In other words, a student with a 3.2 grade point average receives a<br>8<br>$32.0 credit.<br>10<br>Create an application that prompts a student for a name and grade<br>11 }<br>point average, and then passes the values to a method (<br>12<br>computeDiscount ) that displays a descriptive message. The<br>message uses the student's name, echoes the grade point average,<br>and computes and displays the credit.<br>An example of the program is shown below:<br>Enter your name >> John<br>Enter your gpa >>3.4<br>John, your<br>GPA is 3.4, so your credit is $34.0<br>Grading<br>Write your Java code in the area on the right. Use the Run button to<br>compile and run the code. Clicking the Run Checks button will run<br>pre-configured tests against your code to calculate a grade.<br>Once you are happy with your results, click the Submit button to<br>record your score.<br>

Extracted text: * CENGAGE MINDTAP Programming Exercise 3-6 Instructions BookstoreCredit.java + 1 import java.util.Scanner; 2 public class BookstoreCredit { To encourage good grades, Hermosa High School has decided to public static void main (String args[]) { // Write your code here 3 award each student a bookstore credit that is 10 times the student's 4 grade point average. 5 } 6 public static void computeDiscount(String name, double gpa) { // Write your code here } In other words, a student with a 3.2 grade point average receives a 8 $32.0 credit. 10 Create an application that prompts a student for a name and grade 11 } point average, and then passes the values to a method ( 12 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 >> John Enter your gpa >>3.4 John, your GPA is 3.4, so your credit is $34.0 Grading Write your Java code in the area on the right. Use the Run button to compile and run the code. Clicking the Run Checks button will run pre-configured tests against your code to calculate a grade. Once you are happy with your results, click the Submit button to record your score.
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here