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
Strike441 [17]
3 years ago
12

You are to write a program that will input a number between 1 and 99. The number will represent the change from a transaction. Y

our program will take the change and output the least amount of coin possible. You can assume that there are 50 cent, 25 cent, 10 cent, 5 cent and 1 cent coins (halves, quarters, dimes, nickels, and pennies).
Computers and Technology
1 answer:
xxMikexx [17]3 years ago
3 0

Answer:

Explanation:

public class Exercise50 {

    public static void main(String args[]) {

 System.out.println("\nDivided by 3: ");  

 for (int i=1; i<100; i++) {

  if (i%3==0)  

  System.out.print(i +", ");    

 }    

   

 System.out.println("\n\nDivided by 5: ");

 for (int i=1; i<100; i++) {

  if (i%5==0) System.out.print(i +", ");    

 }

   

 System.out.println("\n\nDivided by 3 & 5: ");    

 for (int i=1; i<100; i++) {

  if (i%3==0 && i%5==0) System.out.print(i +", ");    

 }

 System.out.println("\n");

You might be interested in
There is a huge demand for cyber security professionals. True or false
STatiana [176]
True.
Thank You!
Please mark Brainliest
5 0
4 years ago
Read 2 more answers
A backup of sewage in the operations storeroom would be a reason to contact the local regulatory authority because it is conside
CaHeK987 [17]
65, for sure, the number at the end of the rectangle is the q3
6 0
4 years ago
Read 2 more answers
The arrival of personal computer technology gave rise to client server networks that replaced traditional mainframe and minicomp
zvonat [6]

Answer:

The replacement of traditional mainframe and minicomputers  is a prime example of technological paradigm shift.

Explanation:

As the change of traditional mainframe and minicomputers to personal computers is due to the technological advancements, which led to creation of client server networks. This paradigm shift is the technological shift as the main reason for the shift is due to the technical advancement and enhancement.

8 0
3 years ago
Hi guys could someone please help me ASASP
goldenfox [79]

Answer:

nope u gonna fail ahhahaha

Explanation:

my dead cat ran across my keyboard

8 0
3 years ago
true false the if statement causes one or more statements to execute only when a boolean expression is true
poizon [28]

Answer:

True

Explanation:

I am a coder myself and I say this is true because it executes it if the listed statement or variable is true. This is also the same for the while loop.

8 0
3 years ago
Other questions:
  • An engine you're servicing has electronically controlled cooling fans. Cooling fan 1 doesn't work but cooling fan 2 does. Which
    15·1 answer
  • Create an integer variable named ‘listSize’ and initialize the value to 1000.
    5·1 answer
  • What is required to display content on transparencies?
    6·1 answer
  • Variablesallow us to manipulate data through the ___________.
    6·1 answer
  • Numeric data is stored in ___________ for direct processing.
    6·2 answers
  • Which network protocol is used to route IP addresses?<br>A. TCP<br>B. UDP<br>C. IP<br>D. ICMP
    15·1 answer
  • Which wireless communication is typically limited to six feet of distance?
    14·1 answer
  • Does anyone know a way to skip the videos on Edgnuity?
    15·1 answer
  • 1. Do our shared social experiences lead us to think<br><br> communication is a cure-all?
    13·1 answer
  • (b) In Scratch, the instruction 'when I receive' enables us to _____ the action of multiple sprites ​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!