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
mars1129 [50]
4 years ago
4

Write a program that reads the subtotal and the gratuity rate and computes the gratuity and total. For example, if the user ente

rs 10 for the subtotal and 15% for the gratuity rate, the program displays 1.5 as the gratuity and 11.5 as the total. Here is another sample run:
Enter the subtotal and a gratuity rate:
The gratuity is 2.35 and the total is 18.04
Computers and Technology
1 answer:
Airida [17]4 years ago
5 0

Answer:

import java.util.Scanner;

public class ANot {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter the Sub-total and Gratuity rate");

       double subTotal = in.nextDouble();

       int gratuityRate = in.nextInt();

       double rate = gratuityRate/subTotal;

       double total = subTotal+rate;

       System.out.println("The Gratuity is "+rate+" and the total is "+ total);

   }

}

Explanation:

The code snippet above accomplishes the task. We prompt user to enter the values for subTotal and gratuityRate using Java's Scanner class and store the values in the variables respectively. Next we create two new variables to hold the rate and total, we understand from the question that the rate =  gratuityRate/subTotal and the total =  subTotal+rate.

You might be interested in
Programs which were typically reserved for college-level classes such as computer animation and CAD programs are now being appli
Irina-Kira [14]
Answer: I think C


Step by step explanation:
8 0
3 years ago
_______ is a form of crime that targets a computer system to acquire information stored on that computer system, to control the
julia-pushkina [17]

Answer:

Option (A) is the correct answer.

Explanation:

A Computer system can be the target for the crime on which a criminal can acquire the information from the computer system which is stored on it. A Criminal is targeting the system with the help of some software that is entered on the computer system through a network.

In the above question, paragraphs are describing the content related to the crime which targets the computer system. This is a concept of a "computer as target". Hence option "A" is the correct answer while the other is not valid because--

  • Option b suggests the concept behind the storage device of a computer but in the question, it is about the crime of a computer.
  • Option c suggests the concept behind the computer is a criminal but in the question, it is about the crime of a computer.
  • Option d suggests the concept behind the communication of a computer but in the question, it is about the crime of a computer.
4 0
4 years ago
What tool is provided in Windows to facilitate sharing data objects between applications and computers?
Anton [14]

Answer:

Component services

Explanation:

In Windows, components services are integrated into the Administrative Tools and are used to configure certain COM (Component Object Model) components and applications. They are also used to ;

i. assign roles to users and groups.

ii. facilitate data sharing between applications and computers by processes such as pooling, pausing, resuming and recycling applications.

7 0
3 years ago
Does the internet bring more harm than good? (This is an actual question from my class)
Amiraneli [1.4K]
This is a opinion question rather than a factual question. However, many researchers have found that though the internet does provide many harmful things (it has brought a whole new level to prostitution as well as the drug cartel and other illegal substance/objects that are sold), the good will forever outweigh the bad. The internet has caused us to be able to disperse and collect information from all over the world and has helped us create many scientific as well as technological advancements. Though there will terminally be things people will use the internet for that is "bad", the good outweighs the bad on what is has and will do for us.
5 0
3 years ago
Why are user manuals important? Select all that apply.
Oksi-84 [34.3K]

Answer:

I. User manuals contain text and images to describe how to use the program features.

II. User manuals explain the commands and syntax of programming languages.

III. User manuals often include chapter on problems and their resolutions.

Explanation:

A user manual can be defined as a clear, detailed and an informative guide drafted by the manufacturer (producer) of a product or service, which is to be given to a customer (end user) so as to help them know and understand how to use the product or service properly.

User manuals are important because they contain the following necessary informations;

I. User manuals contain text and images to describe how to use the program features.

II. User manuals explain the commands and syntax of programming languages.

III. User manuals often include chapter on problems and their resolutions.

Additionally, a user manual contains information on the safety precautions that are to be taken by the end user while using a product or service.

4 0
3 years ago
Other questions:
  • A news website uses 32-bit integers to count the number of times an article has been viewed. The website is becoming more popula
    10·1 answer
  • In terms of functionality and purpose, how does Nano compare to Server Core?
    10·1 answer
  • How can a user view the options for Junk E-mail?
    11·2 answers
  • A personal business letter is a letter that is ____.
    13·1 answer
  • Which best explains a password attached to a document?
    7·1 answer
  • def list_length(shrinking_list): ''' A recursive way to count the number of items in a list. ''' if shrinking_list
    10·1 answer
  • The purpose of a flowchart is similar to the purpose of pseudocode.<br> True<br> False
    5·2 answers
  • Select the correct answer. Nancy has made a small web page with the new features of HTML5. She has to show this web page in scho
    9·1 answer
  • How to get the lightning round in dares of eternity
    5·1 answer
  • The cpu understands instructions written in a binary machine language. <br> a. true <br> b. false
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!