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
Ivan
3 years ago
6

1.6.6 Night out for codehs

Computers and Technology
1 answer:
Yuliya22 [10]3 years ago
5 0

Answer:

import java.util.*;

public class NightOut

{

   public static void main(String[] args)

   {

       Scanner input = new Scanner(System.in);

       double cost;

       double cost2;

       double cost3;

       double grandtotal;

       

       System.out.println("How much did dinner cost?");

       cost = input.nextDouble();

       

       System.out.println("How much is mini-golf for one person?");

       cost2 = input.nextDouble();

       

       System.out.println("How much did dessert cost?");

       cost3 = input.nextDouble();

       

       grandtotal = cost + cost2 * 2 + cost3;

       

       System.out.println("Dinner: " + cost);

       System.out.println("mini-golf: " + cost2);

       System.out.println("Dessert: " + cost3);

       System.out.println("Grand Total: " + grandtotal);

   }

}

Explanation:

You might be interested in
Which of the following is the most compelling
Gemiola [76]
To compare data makes the most sense
5 0
2 years ago
Read 2 more answers
Can anyone help me<br> I will make you a brainalist
Ulleksa [173]

Answer:

Explanation:

Exercise A:

1. A table.

2. Categorical.

3. Access.

4.Queries.

5.ACCDB extension.

Exercise B:

1. Insert Tab.

2. DoCmd.Quit method.

3.Navigation Pane.

4. Modify table data.

5.The top pane and the bottom pane.

Hope this helped you!

4 0
2 years ago
Which layout manager constructor call would be best-suited to create a telephone handset GUI which has three rows of three keys
Snezhnost [94]

Answer:

The correct option : b. new GridLayout(4,3)

Explanation:

The total number of rows are 4 and total number of columns are 3.

So the total keys can be added is 4*3=12. This is suited for telephone keypad.

7 0
3 years ago
What are the trinity of the computer system
barxatty [35]

Answer:

I think the answers are input, processes, output

6 0
3 years ago
When you use the Filter feature, what appears in each column label
Scrat [10]
<span>an arrow  ..............................</span>
5 0
3 years ago
Other questions:
  • How to search multiple microsoft word documents?
    15·1 answer
  • Consider the classes below, declared in the same file: class A { int a; public A() { ​ a = 7; } } class B extends A { int b; pub
    6·1 answer
  • Stating a document is PDF or XPS document refers to document _______​
    10·1 answer
  • What is another name for mesolithic age
    7·2 answers
  • Write a loop that sets newScores to oldScores shifted once left, with element 0 copied to the end. Ex: If oldScores = {10, 20, 3
    14·1 answer
  • give one word • pressure exerted by a stationary liquid _______. • force in a direction perpendicular to a given surface area __
    9·1 answer
  • Classify the various scenarios in a web development team that is creating a website for a client according to the priority level
    9·1 answer
  • How does Python recognize a tuple?
    12·1 answer
  • What are the cloud storage components
    6·1 answer
  • What is the correct format to use when<br> inserting a date in Excel?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!