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
Kryger [21]
3 years ago
13

Compile and Execute a Program

Computers and Technology
1 answer:
ELEN [110]3 years ago
3 0

Answer:

import java.util.Scanner;

// Needed for the Scanner class This program calculates the user's gross pay.

public class Pay {

public static void main(String[] args) {

// Create a Scanner object to read from the keyboard.

Scanner keyboard = new Scanner(System.in);

// Identifier declarations

double hours;

// Number of hours worked

double rate;

// Hourly pay rate

double pay;

// Gross pay

// Display prompts and get input.

System.out.print("How many hours did you work? ");

hours = keyboard.nextDouble();

System.out.print("How much are you paid per hour? ");

rate = keyboard.nextDouble();

// Perform the calculations.

if (hours <= 40) {

pay = hours * rate;

}

else

{

pay = (hours - 40) - (1.5 * rate) + 40 - rate;

}

// Display results.

System.out.println("You earned $" + pay);

}

}

Explanation:

You might be interested in
Ideally an entity identifier is composed of _____ attribute(s).
daser333 [38]
Entity identifier is composed of 4 attributes. It is used to determine the class of one entity. Each entity has its unique attributes. An identifying entity may use the below attributes:
1. date
2. title 
3. the complete address of the entity 
4. name of the performer

8 0
3 years ago
Thinking about the operations needed in these games, which game is likely to be one of the oldest games in the world?
erma4kov [3.2K]
I would say tag because it only involves touching
6 0
3 years ago
Read 2 more answers
*URGENT!!* *100 POINTS!**9 questions for 100 points*
Lena [83]

Answer:last day of school

Explanation:

sorry, im looking for it as well

7 0
3 years ago
Paano mo maipapamalas na ikaw ay may malusog na kaisipan​
LenaWriter [7]
Okokokokokok okok ok
5 0
3 years ago
A _____ is a set of standards, development tools, and software libraries that help programmers develop software solutions faster
fgiga [73]

Answer:

framework

Explanation:

Q:

A _____ is a set of standards, development tools, and software libraries that help programmers develop software solutions faster and with more consistency.

A:

b. framework

7 0
2 years ago
Other questions:
  • What is the disk bandwidth? the total number of bytes transferred total time between the first request for service and the compl
    13·1 answer
  • Trish has bought a new computer that she plans to start working on after a week. Since Trish has not used computers in the past,
    10·1 answer
  • مسألة لبرنامج الماتلاب لمصفوفة وعمود
    10·1 answer
  • Which of the following is not considered format?
    8·2 answers
  • The large capacity, high-definition optical discs designed to store hi-def video and video games are _______. Group of answer ch
    13·1 answer
  • What is the meaning of compiler​
    14·1 answer
  • Designing a mouse to fit well in your hand would demonstrate ..?
    14·2 answers
  • Select the correct answer
    15·1 answer
  • Contagem progressiva e regressiva usando estrutura condicional enquanto no visualg
    7·1 answer
  • Missing only a few days of school will not impact your grades.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!