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
Amiraneli [1.4K]
3 years ago
15

A cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. For example, 19 yields

3 fives and 4 ones. Write a single statement that assigns the number of 1 dollar bills to variable numOnes, given amountToChange. Hint: Use the % operator.
Computers and Technology
2 answers:
ki77a [65]3 years ago
6 0

Answer:

numOnes = amountToChange % 5;

Explanation:

The modulus operator % returns the remainder after division.

To get the number of dollar bills, you need to know how much remains if you divide by 5. And that is exactly what the above statement does.

Musya8 [376]3 years ago
4 0

A C program that assigns the number of 1 dollar bills:

int main() {

   int amtToChange = 0;

   int numberofFives = 0;

   int numberofOnes  = 0;

   amtToChange = 19;

   numberofFives = amtToChange / 5;  

numberOfOnes = amtToChange % 5;

   cout << "numFives: " << numberofFives << endl;

   cout << "numOnes: " << numberofOnes << endl;

   return 0;

}

The single statement is numberOfOnes = amtToChange % 5

You might be interested in
Phillip wants to create a new Google Display Ad campaign and base his targeting on an existing remarketing list named Checkout A
77julia77 [94]

Answer:

Similar Audience that finds who are similar to those on the Checkout Abandoners list.

Explanation:

Phillip needs to develop the latest google Display Advertising project, as well as focus its aiming over a current Checkout Abandoners shopping list. Thus, that Similar Audience which identifies users specific for others throughout the Abandoners checkout detail to support Phillip accomplish his promotional objectives.

3 0
3 years ago
A GPO component that’s an Active Directory object stored in the System\Policies folder. The GPC stores GPO properties and status
blagie [28]

Answer:

The correct answer to the following question will be the Group Policy Container (GPC).

Explanation:

Group Policy Container (GPC) : An active directive container that contains properties of GPO (such as the setting of GPO, it's component settings), is known as Group Policy Container.

There are two locations where GPO stores its configuration information :

  • Group Policy Container (GPC).
  • Group Policy Template (GPT).

8 0
3 years ago
When measuring processor speed,a megahertz is much faster than a gigahertz.true or fals
Nat2105 [25]

Answer: False

Explanation:

The statement in the question is wrong. When measuring processor speed, a megahertz is slower than a gigahertz.

We should note that:

1 megahertz = 1 million cycles per second

1 gigahertz = 1 billion cycles per second.

Therefore, we can see that a gigahertz is faster than a megahertz.

4 0
3 years ago
1.
kenny6666 [7]
1. true
2. false
3. true
4. true
5. true

if you would like an elaboration, let me know 
8 0
3 years ago
What are the example of dedicated computers?
Drupady [299]
A dedicated server is a single computer in a network reserved for serving the needs of the network. For example, some networks require that one computer be set aside to manage communications between all the other computers. A dedicated server could also be a computer that manages printer resources.
8 0
3 years ago
Other questions:
  • Which view is used to allow a publisher to view facing pages of a publication at the same time?  NormalMaster PageTwo-Page Sprea
    9·1 answer
  • Which process improves the life of a computer?
    11·1 answer
  • When converting text to a table which feature should be used
    15·1 answer
  • A company that wants to send data over the Internet has asked you to write a program that will encrypt it so that it may be tran
    6·1 answer
  • A spreadsheet has some values entered:Cell A1 contains 10 cell A2 contains, cell A3 contains 7. you enter in cell A4 the followi
    14·2 answers
  • Create a class called Home that contains 4 pieces of information as instance variables: county (datatype string), street (dataty
    5·1 answer
  • What is information associated with a document to help describe that document called?
    12·1 answer
  • Write a recursive function that returns 1 if an array of size n is in sorted order and 0 otherwise. Note: If array a stores 3, 6
    6·1 answer
  • To see the formula in a cell, look at the___
    5·1 answer
  • Write a function named days() that determines the number of days since January 1, 1900 for any data passed as a structure. Use t
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!