1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vika [28.1K]
4 years ago
11

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.
Computers and Technology
1 answer:
Ad libitum [116K]4 years ago
7 0

Answer:

// here is code in java.

import java.util.*;

// class definition

class BookstoreCredit

{

/* method that display descriptive message with name and grade point */

   public static void fun(String name,double grade)

   {

// multiply grade with 10

       grade=grade*10;

// print the message

       System.out.println(name+"\'s average grade is $"+grade);

   }

// main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // scanner object to read innput

       Scanner s=new Scanner(System.in);

        // variables

      String s_name;

      double grade;

      System.out.print("Please enter the name:");

      s_name=s.nextLine();

      System.out.print("Please enter the grade point:");

      grade=s.nextDouble();

   }catch(Exception ex){

       return;}

}

}

Explanation:

Create variable s_name of string type and grade of double type.Read the student name and grade from user.call the fun() with these two parameter, where grade is multiplied by 10 and print the descriptive message which has student name and echoes the grade point average.

Output:

Please enter the name:john

Please enter the grade point:3.2

john's average grade is $32.0

You might be interested in
A network technician sets up an internal dns server for his local network. When he types in a url which is checked first
VLD [36.1K]

Answer:

The first thing that the browser checks is the cache for the DNS record to find the corresponding IP address.

Explanation:

After the technician sets up the internal DNS server for his local network, the first thing that is checked when he types a website into the url of a browser is the cache to look for corresponding IP addresses.

DNS which means Domain Name System is a database that maintains the website name (URL) and the IP address that it is linked to. There is a unique IP address for every URL (universal resource locator).

Internal DNS servers store names and IP addresses for internal or private servers

8 0
3 years ago
Which of the following is not one of the four criteria for evaluating websites?
Flura [38]

Answer:validity

Explanation:

Because it dont sound right

5 0
3 years ago
Pedro would like to create a computer program to add two numbers. The commands for the algorithm he created are:
Usimov [2.4K]
Press the equal number.

For example:
Press the equal button: = (this step can go first or last)
Enter the first number: 5
Press the addition button: +
Enter the second number: 4
Press the equal button: =
3 0
3 years ago
In a spreadsheet, what is text wrapping used for?
denpristay [2]

Text wrapping automatically alters cell height so as to give room for all of the text to fit inside the spreadsheet.

<h3>What is the feature about?</h3>

The Excel wrap text feature is known to be a tool that can totally display large text in a cell and it is one where there is no overflowing to other part or cells.

Therefore, Text wrapping automatically alters cell height so as to give room for all of the text to fit inside the spreadsheet.

Learn more about text wrapping from

brainly.com/question/5625271

#SPJ11

6 0
2 years ago
... ... how many dots are there ... ... ... ...
LUCKY_DIMON [66]

Answer:

18

Explanation:

i guessing okay.....

4 0
3 years ago
Read 2 more answers
Other questions:
  • You’ve been hired to help with installing cable at a new office building for the local branch of the Social Security Administrat
    14·1 answer
  • What does "WPA" stand for?
    15·2 answers
  • Which of the following operation is not performed by a mouse​
    11·1 answer
  • Anyone willing to help with Excel?!!
    15·1 answer
  • Which of the following Internet access methods involves connecting your phone to an Internet-ready laptop in order to gain acces
    14·2 answers
  • How to jailbreak ios 9.2 ? Is there anyway???!!!!
    12·1 answer
  • How should you complete the code A - valid = false B- valid = true
    8·1 answer
  • What is the full form of HTML?​
    8·2 answers
  • If anyone want to talk come here actual question who likes anime and what kind do u watch
    7·2 answers
  • Write an inheritance hierarchy for classes Quadrilateral, Trapezoid, Parallelogram, Rectangle and Square. Use Quadrilateral as t
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!