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
Kisachek [45]
3 years ago
6

Write a program that tells what coins to give out for any amount of change from 1

Computers and Technology
1 answer:
ipn [44]3 years ago
5 0

Answer:

#include<iostream>

using namespace std;

void computeCoin(int coinValue, int& number, int& amountLeft)

{

number = amountLeft / coinValue;

amountLeft = amountLeft % coinValue;

}

int main()

{

int cents;

int number;

char ch;

do

{

cout << "Enter no of cents. :";

cin >> cents;

while(cents<1 || cents >99)

{

cout << "Invalid cents entered. Re-Enter no of cents. :";

cin >> cents;

}

cout << cents <<" can be given as ";

computeCoin(25,number,cents);

if(number)

cout << number << " quarters ";

computeCoin(10,number,cents);

if(number)

cout << number << " dimes and ";

cout << cents << " penny"<<endl;

cout<< "do u want to continue enter y or n :";

cin >> ch;

}while(ch=='y');

return 0;

}

Explanation:

You might be interested in
The concept of taking traffic that’s all aimed at the same node and delivering it to the proper receiving service is known as
Cerrena [4.2K]

Answer:

"Demultiplexing" is the right answer.

Explanation:

  • A procedure for retransferring into genuine distinct, independent signals a transmission combining numerous digital as well as analog components, is considered as Demultiplexing.
  • Lending incoming different segments towards appropriate application-level procedures instead on the positive side of the recipient.
7 0
3 years ago
If a router receives 20 packets in a row going to the same destination IP address, the standard calls for it to ________.
Norma-Jean [14]

Answer:  

The answer to the following question is the option "B".  

Explanation:  

In computer science, A router is a networking device that transmits data packets between computer networks. Where packet is a collection of data that uses a computer to communicate with each other.  When the router receives the packets and goes to the same destination IP address. So it uses the same command for all packets.  So the answer to this question is " use the decision. it made for the first one".

8 0
3 years ago
What is the primary advantage of a 64-bit operating system versus 32-bit
Natasha2012 [34]
A 64-bit operating system can handle more data at once as compared to that of a 32-bit operating system. The former is able to access over four billion times the physical memory of the latter.
8 0
3 years ago
What are the major features of React?
marysya [2.9K]

<em>JSX - JavaScript Syntax Extension. JSX is a syntax extension to JavaScript. </em>

<em>Virtual DOM. React keeps a lightweight representation of the “real” DOM in the memory, and that is known as the “virtual” DOM (VDOM)</em>

<em>Performance. ...</em>

<em>Extensions. ...</em>

<em>One-way Data Binding. ...</em>

<em>Debugging. ..</em><em>.</em>

<em>Components. ...</em>

<em>State.</em>

3 0
3 years ago
What is intended to legally protect the intellectual property rights of organizations or individuals to creative works, which in
GalinKa [24]

Answer:

The correct answer to the following question will be "Copyright".

Explanation:

This is a form of an intellectual estate which gives the publisher exclusive privileges to print, distribute, and use.

  • The above ensures that almost no-one else can use or publish certain material generated by the author without any of the author's permission.
  • When a person makes work through his or her job, the company holds the copyright.

So, it's the right answer.

8 0
3 years ago
Other questions:
  • Complete the function ConvertToFeetAndInches to convert totalInches to feet and inches. Return feet and inches using the HeightF
    5·1 answer
  • Question 4 of 10
    5·1 answer
  • A vehicle travels 2345 m in 315 toward the evening sun. What is its velocity
    13·1 answer
  • If Nancy receives an encrypted message from Matthew, which key does she use to read it? Nancy’s private key Nancy’s public key M
    8·1 answer
  • Need help with photography
    12·1 answer
  • How do you begin typing a table cell
    8·1 answer
  • Plz help need answers!???idk if u can zoom
    13·1 answer
  • Which tool determines whether or not applications, devices, and computers will work with a new operating system, while maintaini
    13·1 answer
  • When people receive benefits just because they belong to a particular identity group, this is called
    14·1 answer
  • What makes a recipe for a meal an example of an algorithm?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!