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
Klio2033 [76]
3 years ago
15

Compute change

Computers and Technology
1 answer:
Illusion [34]3 years ago
5 0

Answer:

Explanation:

The following code is written in Java and modified to do as requested. It asks the user to enter a number that is saved to the amountToChange and then uses the % operator to calculate the number of 5 dollar bills and the number of 1 dollar bills to give back. A test case has been provided and the output can be seen in the attached image below.

import java.util.Scanner;

class ComputingChange {

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       int amountToChange;

       int numFives;

       int numOnes;

       amountToChange = scnr.nextInt();

       numFives = amountToChange / 5;

       /* Your solution goes here */

       numOnes = amountToChange % 5;

       System.out.print("numFives: ");

       System.out.println(numFives);

       System.out.print("numOnes: ");

       System.out.println(numOnes);

   }

}

You might be interested in
When browsing using certain browsers, if a page is known to be malicious or using phishing techniques in the past a browser may
Ghella [55]

Answer:

the last option

warning page

7 0
3 years ago
What is the full path of the directory on this computer containing the SAM registry hive file
kompoz [17]

Windows 2000 only supported standard format. It is group of legitimate keys, subkeys, and important in the registry that supports the files and contains backups of its data is called registry.  On versions of Windows that support the latest format, the following hives still use the standard format: HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE\SAM, HKEY_LOCAL_MACHINE\Security, and HKEY_USERS\.DEFAULT; all other hives use the latest format.

3 0
3 years ago
How to reset your password if you changed your email and dont remember password?
DanielleElmas [232]
Oof... Contact your email provider and give them the last email you had. They will most likely ask you security questions. Hope that helped!
8 0
3 years ago
Word offers a multitude of picture formatting options that allow you to flip, rotate, and make many other adjustments to inserte
SIZIF [17.4K]

Answer:

True

Explanation:

In Microsoft Word, there are several formatting options available to format the inserted picture. Whenever we insert a picture, the picture formatting options will appear at the top of the program. One of the option, Rotate, enable user to rotate the picture 90 degree to the left or right and flip it vertically or horizontally. Besides, Word formatting options also include Crop feature, Color Corrections, Transparency Adjustment etc.

8 0
4 years ago
Which of the following will you select as X in the following series of clicks to lay the title over a chart: Chart Title box &gt
guapka [62]

Answer:

A

Explanation:

We are to lay a title over a chart, which means the position of the title should be above the chart.

When doing this, it will centre the title over the chart without duly interfering with the original size of the chart.

The option 'over chart' is incorrect as it is not a valid selection in the pane. Below chart as well is incorrect as we are to lay the title above the chart.

3 0
4 years ago
Other questions:
  • In this code, identify the repeated pattern and replace it with a function called month_days, that receives the name of the mont
    14·1 answer
  • What is an extrinsic value? A. something that is valuable in and of itself B. something that is valuable because it leads to ano
    12·1 answer
  • True or false: a cover letter accompanies a resume to showcase a job-seeker’s personal life
    6·2 answers
  • Walmart store wants to compare the sales of five of its stores. Write a complete program to ask the user to enter the sales for
    12·1 answer
  • What is an Apple Pen?
    5·2 answers
  • Which of the following is true regarding data analysis? a. Disciplines and professions do not provide guidance on data analysis.
    6·2 answers
  • My feelings alwayss T-T
    14·2 answers
  • How can you say that a painting is real? ​
    7·2 answers
  • Identify similarities and differences of hibiscus leaves <br>​
    14·1 answer
  • Polynomial regression A common misconception is that linear regression can only be used to fit a linear relationship. We can fit
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!