Write a program to determine what change a cashier should return to a customer. The program will ask how much an item being purchased costs, and then how much the customer paid. The program will return what change should be given.

Enter the item cost: 7.12
Enter what customer paid: 20.00

The total number of cents to be returned is: 1288

Change given should be
Number of 10 dollar bills: 1
Number of 5 dollar bills: 0
Number of 1 dollar bills: 2
Number of quarters: 3
Number of dimes: 1
Number of nickels: 0
Number of pennies: 3

it needs to be in c++ not java

Answers

Answer 1

Using the knowledge in computational language in C++ it is possible to write a code that  determine what change a cashier should return to a customer.

Writting the code:

#include <iostream>

using namespace std;

int main() {

// your code goes here

cout << "Enter the item cost : ";

double cost;

cin >> cost;

cout << "\nEnter what customer paid : ";

double paid;

cin >> paid;

double ret;

ret = paid - cost;

cout << "\nThe total number of cents to be returned is : " << ret;

cout << "\nChange given should be";

int ten,five,one;

ten = ret/10;

ret = ret - (10*ten);

five = ret/5;

ret = ret - (5*five);

one = ret/1;

cout << "\nNumber of 10 dollar bills : " << ten;

cout << "\nNumber of 5 dollar bills : " << five;

cout << "\nNumber of 1 dollar bills : " << one;

return 0;

}

See more about C++ at brainly.com/question/12975450

#SPJ1

Write A Program To Determine What Change A Cashier Should Return To A Customer. The Program Will Ask

Related Questions

To add a glow effect to WordArt text, which of the following should be done?

1.Change the Shape Style

2.Change the Shape Fill

3.Apply a Shape Effect

4.Apply a WordArt Text Effect

Answers

number 2 is the correct answer

To add a glow effect to WordArt text, you apply a WordArt Text Effect.

WordArt texts are simply texts that have special effects, such as

ShadowsGlowOutline Reflection

To apply the glow text effect (and any other effect) to a WordArt text, you simply select the text, and select text effect in the home menu

Hence, the step that should be done is (4) Apply a WordArt Text Effect

Read more about texts at:

https://brainly.com/question/12809344

What is included in a linked list node?

I a reference to the next node
II an array reference
III a data element

Answers

Explanation:

In its most basic form, each node contains:

data, and a reference (in other words, a

link) to the next node in the sequence. A

linked list whose nodes contain two fields:

an integer value and a link to the next node.

The last node is linked to a terminator used

to signify the end of the list.

PLS HELP ASAP!! which of these would be easier to do in a database program than a spreadsheet program? check all of the boxes that apply.
• Store a list of favorite books for personal use
• email all customers who purchased a laptop the previous year
• perform complex calculations
• collect and analyze survey results
• update the record with ID#5872033

Answers

Answer:

a,b

Explanation:

Answer:

It's B,D,E

Explanation:

What problems might scientists encounter in using this ethod in the field that you would not have encountered in the simunlation?

Answers

Answer:

Errors that would be observed as a result of natural input in the field not found in the simulation.

Explanation:

The simulation is a virtual representation of the activities to be experienced in the field, it eliminated natural factors that could affect the result of the experiment in the field. In the field, scientists are able to anticipate errors based on records of natural factors like temperature, humidity, etc, working around it to get the desired result.

Overflow and roundoff errors result from real-world limitations in representing . . . (10 points)
A. number systems
B. fractions
C. place values

Answers

Answer:

C. place values

Explanation:

Place value can be defined as the numerical value representing a digit owing to its position in a number. Some examples of the various place values used in representing each digit are tenths, hundredths, thousandths, unit, tens, hundreds, thousands etc.

For example, in the number 316.2;

The place value of 3 is hundreds. The place value of 1 is tens. The place value of 6 is units. The place value of 2 is tenths.

In the real-world, their instances where there are limitations in counting and representing real numbers that are infinite (too small or too large). In order to overcome these limitations or barriers, we use place values.

An overflow error arises when a real number cannot be represented because it is too large and exceeds the upper limits of a range chosen.

Also, a roundoff error can be defined as the difference between the output generated from an algorithm using an exact or actual numbers and the output generated using rounded or finite-precision numbers.

Hence, overflow and roundoff errors result from real-world limitations in representing place values.

A cloud is an example of

Answers

soft and squishy looking

Answer:

1st one.

Explanation:

What are the advantages and disadvantages of providing the MSRN asopposed to the address of the VLR to the HLR?

Answers

Answer:

The answer is below

Explanation:

The advantages of providing the MSRN as opposed to the address of the VLR to the HLR is:

1. It leads to provision of value at a faster rate without querying the VLR.

2. Refreshing of the MSRN in the HLR would not be necessary.

The disadvantages of providing the MSRN asopposed to the address of the VLR to the HLR is

1. It would require value update of MSRN in HLR each time MSRN changes.

Discuss what is Virtual Reality

Answers

Answer:

Virtual reality is the computer-generated simulation of a three-dimensional image or environment that can be interacted with in a seemingly real or physical way by a person using special electronic equipment, such as a helmet with a screen inside or gloves fitted with sensors.

Explanation:

Answer: Virtual reality (VR) refers to a computer-generated simulation in which a person can interact within an artificial three-dimensional environment using electronic devices, such as special goggles with a screen or gloves fitted with sensors. Virtual reality (VR), the use of computer modeling and simulation that enables a person to interact with an artificial three-dimensional (3-D) visual or other sensory environment. ... In a typical VR format, a user wearing a helmet with a stereoscopic screen views animated images of a simulated environment. Virtual reality is a way to create a computer-generated environment that immerses the user into a virtual world. When we put on a VR headset it takes us to a simulated set-up making us completely aloof from the actual surroundings.

Hope this helps.... Stay safe and have a great day/night!!! :D

59. When analyzing the IDS logs, the system administrator noticed an alert was logged when the external router was accessed from the administrator's Computer to update the router configuration. What type of an alert is this

Answers

Answer:

False Positive

Explanation:

A false positive or false positive error may be defined as a result which indicated that the given conditions seems to exists when it actually does not. It is classified as a type I error. It tests a check for a single condition and then falsely provides a positive or affirmative decision.

In the context, a false positive type of error occurred when the external router of the system administrator was accessed from the computer of the administrator that was used to update the configuration of the router.

Which of the following is a key aspect of any IT position? installation of fiber optic cables

network security

computer maintenance

network administration

Answers

Computer maintenance

Answer:

network security

Explanation:

edg2021

IT security is woven into each of the jobs in technology, with each individual in IT usually responsible for some area of security, from password management to updating desktops with patches. Having preventive plans in place as well as what to do after a potential breach involves all areas of a business

What is the scope of each variable?

class pet:
def __init__(self,strSpecies,strName):
self.species = strSpecies
self.petName = strName

def __str__(self):
return self.species + " named " + self.petName

class petCarrier:
size = 'medium'
color = 'red'

The scope of petName is
.

The scope of color is
.

Answers

Answer:

The scope of petName is local to the class pet.

The scope of color is accessible by all parts of the program.

Explanation:

The variable petName is local to the class, because the variable was created in a function whose name begins with two underscores.

The variable color, while created in the petCarrier class, is accessible to the entire function. It was not created in a function whose name begins with an underscore.

Correct answer edge 2020

The scope of petName is local to the class pet. The scope of color is accessible by all parts of the program.

What are variables?

A variable in programming is a value that can change based on external factors or data that has been supplied to the program. A program typically consists of data that it uses while running and instructions that tell the machine what to execute.

Due to the fact that the variable was created in a function with a name that starts with two underscores, petName is local to the class.

Despite being generated in the petCarrier class, the function as a whole can access the variable color. It wasn't produced in a function with an underscore in the name.

Therefore, PetName only affects the class Pet locally. All components of the software have access to the full range of color.

To learn more about variables, refer to the link:

https://brainly.com/question/29988965

#SPJ2

Natasha's laptop has long-term storage that uses a magnetic arm to move over a platter to read and write data. It is cheaper than other storage options and has a high capacity of storage, but because of its moving parts, it is not as durable than other options and runs very loudly. What type of long-term storage does her computer have?

A.
read-only memory (ROM)

B.
hard disk drive (HDD)

C.
random access memory (RAM)

D.
solid-state drive (SSD)

Answers

SSD

Explanation:

But I prefer SSD rather than HDD , because there are soo many benifits of SSD like very fast read and write speed , small in size , it did not corrupt your data easily , did not get damage by any physical impact . SSD is like bigger version of smartphone’s sd card. Only one thing is that SSD is too most costly than HDD

Ssd is your answer you’re welcome

Which common online presentation medium do people use to present their own articles?
A. news portal
B. company website
C. photo-sharing website
D. weblog

Answers

A: news portal hope this helps
A. news portal is the answer

Write at least and explain four types of escape sequences and create an example in an IDE which consist of the mentioned escape sequences.

Answers

Answer:

- \' is used to escape a single quote in a string enclosed in single quotes like;

my_string = 'this is John\'s ball'.

- \n is used to jump to a new line, Eg;

my_string = "Johns is a good boy\nbut he hates going to school."

the next set of the string after the '\n' character is displayed on the next line.

- \t is used to add a tab space to a string.

my_string = 'Jane is \thungry'

the character adds four character spaces before the word 'hungry'.

- \r adds a carriage return (or enter in keyboards) to start a new block paragraph in a string.

my_string = "Johns is a good boy\rbut he hates going to school."

Explanation:

Escape sequences in programming are used to format strings or output syntax of a program. They always begin with the backslash. Examples of escape sequence are " \' ", "\n", "\t", "\r", etc.

How do I play my ps5 on my iMac without remote play, I don’t want remote play because it glitches so much and I don’t know how to fix it and I can’t find any other way to play on my iMac so can someone help me please thanks,

Answers

Maybe restart the iMac

You cant bc well you cant

Discuss two (2) methods for combining multiple anomaly detection methods to improve the identification of anomalous objects. You must consider both supervised and unsupervised cases in your discussion.

Answers

Answer:

Supervised anomaly detection is a process in data mining that uses a historic dataset of dependent variables and labeled independent variables to detect outliers or anomalies in the data been mined.

Unsupervised anomaly detection method uses unsupervised algorithms of unlabeled clusters to label and predicts and rule-out outliers or anomalies.

Explanation:

Anomaly detection is a method of identifying data or observations with high deviation or spread from other grouped data. Supervised and unsupervised machine learning algorithms are used to predict and detect abnormal datasets or outliers during data mining.

The supervised anomaly detection algorithm trains the model with a dataset, for the algorithm to derive a function it could use to predict outlier or anomalies. The unsupervised detection algorithm is able to cluster and label normal and abnormal data in the dataset, using this function to detect anomalies in future datasets.

Document templates are available online.
True
False

Answers

True anything is available online.

Answer:

true

Explanation:

anything is avalible onlkne

The Ntds. dit file is a database that stores Active Directory data, including information about user objects, groups, and group membership. It includes the password hashes for all users in the domain.
Just take the points.

Answers

Answer:

I hate it

Explanation:

Mark it as the brainliest if u love god

write c++ program to find maximum number for three variables using statement ?​

Answers

Answer:

#include<iostream>

using namespace std;

int main(){

int n1, n2, n3;

cout<<"Enter any three numbers: ";

cin>>n1>>n2>>n3;

if(n1>=n2 && n1>=n3){

cout<<n1<<" is the maximum";}

else if(n2>=n1 && n2>=n3){

cout<<n2<<" is the maximum";}

else{

cout<<n3<<" is the maximum";}

return 0;

}

Explanation:

The program is written in C++ and to write this program, I assumed the three variables are integers. You can change from integer to double or float, if you wish.

This line declares n1, n2 and n3 as integers

int n1, n2, n3;

This line prompts user for three numbers

cout<<"Enter any three numbers: ";

This line gets user input for the three numbers

cin>>n1>>n2>>n3;

This if condition checks if n1 is the maximum and prints n1 as the maximum, if true

if(n1>=n2 && n1>=n3){

cout<<n1<<" is the maximum";}

This else if condition checks if n2 is the maximum and prints n2 as the maximum, if true

else if(n2>=n1 && n2>=n3){

cout<<n2<<" is the maximum";}

If the above conditions are false, then n3 is the maximum and this condition prints n3 as the maximum

else{

cout<<n3<<" is the maximum";}

return 0;

1. An output device sends data to a computer.

(YALL PLEASE I NEED HELP I GOT AN F ON THIS, I HAVE 1 MORE CHANCE)

Answers

Answer: False. Input device does not receive data either.

Explanation:

PLEASE ANSWER ASAP! THANKSSSSS

Answers

That is hard .....……

what is the process for creating a new merge document for adress lables ? ​

Answers

Answer:

on Microsoft Word 2013 Mail Merge?

Explanation:

Open on the "Mailings" tab in the menu bar.

Click "Start Mail Merge."

Select "Step-by-Step Mail Merge Wizard."

Choose "Labels" and click "Next: Starting document."

Select the "Start from a template" option and click "Next: Select recipient."

Name the technique that uses a scheme to sum the individual digits in a number and stores the unit's digit of that sum with the number.

Answers

Answer:

Parity Bit

Explanation:

Given that Parity bit is a form of strategy or method that utilizes a scheme in adding a solitary bit to a binary string. This can be either 1 or 0, thereby making the total quantity of bit to become either odd parity bit or even parity bit during storage.

Hence, the technique that uses a scheme to sum the individual digits in a number and stores the unit's digit of that sum with the number is called PARITY BIT.

Mark is working on a feature film project. His job is to portray the economic status, occupation, and attitude of the characters visually. Which role is he playing?

Answers

Answer:

Videographer

Explanation:

Answer:

i think i would be costume designer

Explanation:

because if you spell videographer  it gives you the little red squiggly line

Difference between save,saveas and save all

Answers

Answer:

Save just saves to your computer to what ever is the default format for the program your using.  Save as saves something where you can choose the file name and format. Save all just save all the files you worked on.

Explanation:

Hope this helps :)

Lol I thought that they were all the same and had little differences in it

A personality difference can be caused by a difference in
a. Appearance
b. Attitude
C. Power
d. Wealth
Please select the best answer from the choices provided
A
B
С
D

Answers

Answer:

B. Attitude

Explanation:

Attitude is the one that makes a difference in your personality

A personality difference can be caused by a difference in attitude. The correct option is b.

What are different personalities?

The term "personality" refers to the persistent traits, interests, motivations, values, self-concept, abilities, and emotional patterns that make up a person's particular way of adjusting to life.

Your essential values form the basis of your character, whereas how you behave in every scenario defines your personality. Your experiences in life, as well as your general health, depending on your character and personality.

In fact, according to Soto, genetics account for nearly half of the variances in personality in people. Your environment, including your experiences in life and your birth order, accounts for the remaining personality diversity.

Therefore, the correct option is b. Attitude.

To learn more about personalities, refer to the link:

https://brainly.com/question/14612108

#SPJ6

fill in the blanks y'all-

-------- is a pictorial representation of a step-by-step algorithm

I will give brainliest, just answer quick :) ​
k I don't need it anymore

Answers

Answer:

Flowchart

Explanation:

Flowchart is a pictorial representation of a step-by-step algorithm.

It comprises of the various steps involved in a process which are usually well arranged in an orderly and sequential manner.

It is also referred to how algorithms are diagrammatical put up for better analysis .

How would you maximize the use of a class?

Answers

Answer:

can't understand your qs.......

Write an assembly subroutine that check if a number is in the interval of [0, 10] and return 1 if the number is in this interval and 0 otherwise. Call this subroutine to check if each integer in an array in the memory is in this interval and write the results of all numbers into another array in the memory

Answers

Answer:

.data

array: .word 1,3,5,7,9,11,13,15,17,19

result: .word 0,0,0,0,0,0,0,0,0,0

.text

  la $s0, array

  la $s1, result

  addi $t0, $zero, 0

  INTERVAL:  bge $t0, 10, END

     sll $t1, $t0, 2

     add $t2, $s0, $t1

     lw $t2, 0($t2)

     jal LIMIT

     IF:    bne $a0, 1, ELSE

        add $t3, $s1, $t1

        sw $t2, 0($t3)

     ELSE:

     addi $t0, $t0, 1

     j INTERVAL

  END:    

  addi $v0, $zero, 10

  syscall

  LIMIT:  

     addi $a0, $zero, 0

     START: bge $t2, 0, NEXT

        b ENDLIMIT

     NEXT:  ble $t2, 10, SET

        b ENDLIMIT  

     SET:   addi $a0, $zero, 1

     ENDLIMIT:

     jr $ra

Explanation:

The assembly source code is used to create a subroutine called "INTERVAL" that checks if a number from an array is in a range of 1 to 10. The program returns 1 if the condition is met but 0 if otherwise.

Described how the HCS12 MCU uses a vector to find the correct interrupt service routine after an interrupt occurs.

Answers

Answer:

In the HC12 MCU, the starting address of interrupts is stored in the vector table as a vector. The ISR or interrupt service routine fetches the vector of the interrupt to be executed.

Explanation:

The HC12 or 68HC12 microcontroller was developed by Motorola, its controllers have a clock speed of between 8 to 33MHz.

The MCU stores interrupt events in a vector table where the interrupt service routine fetches enabled interrupt to execute.

When an interrupt is detected, the MCU stores all its registers in a stack to be able to return to the program it was previously running, then it disables the maskability flag register to prevent another maskable interrupt from occurring during the current interrupt execution.

The MCU interrupt service routine fetches the required interrupt from the vector table. After the interrupt is executed, the mask flag is enabled and the MCU retrieves or returns back to the previous program in the stack.

Other Questions
Units Sold to Break Even, Unit Variable Cost, Unit Manufacturing Cost, Units to Earn Target IncomeWerner Company produces and sells disposable foil baking pans to retailers for $2.25 per pan. The variable cost per pan is as follows:Direct materials $0.24Direct labor 0.60Variable factory overhead 0.73Variable selling expense 0.17Fixed manufacturing cost totals $115,117 per year. Administrative cost (all fixed) totals $15,698.1. Compute the number of pans that must be sold for Werner to break even.________ pans2. Conceptual Connection: What is the unit variable cost? What is the unit variable manufacturing cost? Round your answers to the nearest cent.Unit variable cost $ ______Unit variable manufacturing cost $______3. How many pans must be sold for Werner to earn operating income of $5,049?______ pans4. How much sales revenue must Werner have to earn operating income of $5,049? $______ If p and q are negative integers such that [tex]p^2 \ \textgreater \ q^2[/tex],then [tex]p^3[/tex] ________ [tex]q^3\\[/tex].a) >b) < c) =d) none of these will give u brainliest HELP FAST I ONLY HAVE A LITTLE Why did rulers of kingdoms support exploration? (4 points) They needed a direct route to Asia.They needed to find more gold sources.They wanted to find land for farming. They wanted to spread Christianity. if the outside air temperature increases during a flight at constant power and at a constant indicated altitude, the true airspeed will Use the drawing tool(s) to form the correct answer on the provided graph.Plot the x-intercept(s), y-intercept, vertex, and axis of symmetry of this function:h(x) = (x 1)2 9. was presidents Kennedys decision to support the equal rights amendment a necessary cause for the amendments passage by congress Emily knows that she can drive her car an average of 40 miles while using one gallon of gasoline. How manygallons of gasoline will she need for at trip of 180 miles? A gasoline pump fills an automobile tank at the rate of .7 gallon every 2 seconds. At this rate, how long would it take to fill a 28- gallon tank?Help!! "sometimes life turns out hard, isabel. sometimes it just bites right through you. and sometimes just when you think its done its worst, it comes back and takes another chunk page number did new england's escape go successful? if so, How? What role does conformity play in Brittany Allen's short story ""Cheboygan Day""? Please help!!! From the group below, select the sentence that is limited enough to be the topic sentence of a good paragraph. 1.I want to write about my career choice. 2.World hunger is something to think about. 3.Working as a waitress taught me some valuable skills. ringworm is caused by: group of answer choices worms infected with fungi invading the skin. dermatophytes that have invaded deep into the living tissue. a hypersensitivity caused by superficial contact with dermatophytes. toxins produced by dermatophytes. dermatophytes growing in the outer dead tissue layers of the skin (epidermis). the amount a person would have to deposit today to be able to take out 500$ a year for ten year from an amount earning 9% 1. A baseball pitch traveled 128 feet per second. During a golfer's drive, the club headspeed was 99 miles per hour. Was the baseball faster than the club head? What is P(AC)? I dont know the answer to this The Social Security Act of 1935 was the least important legacy of the NewDeal.O TrueO False this is the science of collecting, organizing, summarizing, and analyzing information to draw conclusions or answer questions. it is also about providing a measure of confidence in any conclusions Louis sets off a firework. The height of the firework at the time t seconds is given by h (t) 16t^2+128t.Use the quadratic formula to estimate when into the trip the rocket is 64 feet high.Aat about 0.4 seconds and about 7.6 secondsBat about 0.8 second and about 5.2 secondsCat about 1.1 seconds and about 6.8 secondsDat about 0.5 seconds and about 7.5 seconds