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
What is the impact of ict on school policy<br>​
Montano1993 [528]

Answer:

It improves the effectiveness of education. It aids literacy movements. It enhances scope of education by facilitating mobile learning and inclusive education. It facilitates research and scholarly communication.

Explanation:

7 0
2 years ago
Read 2 more answers
Quick question... HOW DO YOU FREAKING PUT THE "GREATER THAN EQUAL TO" SYMBOL ON GOOGLE? (sorry i'm frustrated)
satela [25.4K]
On what device are you trying to type it on ? iphone ? android ? computer ?
3 0
3 years ago
Read 2 more answers
An External Style Sheet uses the ________ file extension.
Tomtit [17]

Answer:

css file extension

Explanation:

The question is straightforward and requires a direct answer.

In web design and development, style sheets are written in css.

This implies that they are saved in .css file extension.

Hence, fill in the gap with css

6 0
2 years ago
What is the difference between spyware and adware
stepladder [879]
Spyware<span> is considered a malicious program and is similar to a Trojan Horse in that users unwittingly install the product when they install something else. ... </span>Spyware <span>works like </span>adware<span> but is usually a separate program that is installed unknowingly when you install another freeware type program or application.</span>
6 0
3 years ago
Read 2 more answers
How do I change my PATH?
Alexandra [31]

Answer:

May you please explain what that means??

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • What does the CMYK tab let you do
    7·2 answers
  • Which team behavioral characteristic helps team members to freely express ideas and foster approachability?
    12·1 answer
  • nside of your organization that checks how often client machines access it. If a client machine hasn't accessed the server in th
    6·1 answer
  • A girl scout troop with 10 girl scouts and 2 leaders goes on a hike. When the path narrows, they must walk in single file with a
    12·1 answer
  • Use the laws of propositional logic to prove the following:
    5·1 answer
  • C Programming:
    11·2 answers
  • A specailized output device for producing charts, maps, and very high-quality drawings is a? ​
    6·1 answer
  • Help please!! worth 10 pts! answer quick please!
    12·1 answer
  • Why would students most likely need to collect data? Check all that apply
    13·2 answers
  • A program similar to mtr, ____, is available as a command-line utility in Windows operating systems.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!