Reference no: EM13952644
Write a program that includes a function PICNIC() that will accept a floating-point number TOTAL and the addresses of the interger variables HOTDOGS, HAMBURGERS,SALAD,PICKLES. The passed floating-point number represents the TOTAL amount of money to be spent on food. The function is to determine the quantity of HOTDOGS, HAMBURGERS,SALAD,PICKLES that can be purchaced, writing these values directly into the respective variables declared in the calling function.
This function will be called from the main program and when it returns to main, it will print out the values of HOTDOGS, HAMBURGERS,SALAD,PICKLES.
Our favorite foods are in this order:
1- hotdogs 1.00$ each
2- hamburgers .50$ each
3- salad .25$ each
4- pickles .01$ each
Example: if I enter the total amount of money of 3.78$, i can bring the following items to my picnic: 3 hotdogs, 1 hamburger, 1 salad, 3 pickles.
Modify this pay calculator design
: Modify this Pay Calculator design to include an input validation loop to ensure that the user provides a valid employee name (non empty); otherwise, the pay is not calculated
|
Who supports bigger government
: In 2012, researchers at the Edelman Public Relation firm asked a representative sample of 1,000 people in the United States this question: "Do you think your government regulates business too much, not enough, or the right amount?"
|
Difference between vertical and horizontal information
: Describe the difference between "vertical" and "horizontal" information? How is each used by the police, fire or EMS personnel? Give a real-life example for each!
|
What is the mass of an aspartame molecule
: The artificial sweetener NutraSweet is a chemical called aspartame (C14 H18 N2 O5). What is its molecular mass (in atomic units)? What is the mass (in kg) of an aspartame molecule?
|
Write a program that includes a function picnic()
: This function will be called from the main program and when it returns to main, it will print out the values of HOTDOGS, HAMBURGERS,SALAD,PICKLES.
|
Calculate number of atoms in a cubic centimeter of silicon
: The density of particles n is a suspension is found to go as n=n0e-lamdah, where lamda is a constant and h is the height. What is the value of lamda if the density falls to no/2 When h = 10 microm?
|
Oregon adventures provides tours of scenic locations
: Assume that sales for each quarter in 2012 will be 30 percent higher than they were in 2011 and the price per tour is $80.Prepare a sales budget by quarter for 2012.
|
Degree of a statically indeterminate structure
: How to find out the degree of a statically indeterminate structure?
|
What conditions are the computed values inaccurate
: Why can a harmonic function be used to compute vibrational energy states for a DIATOMIC molecule, and under what conditions are the computed values inaccurate?
|