Each customer will type in a code representing the structure of their order, and your program will display (to standard output) a summary of the order components along with the total cost. An order code is exactly nine characters long, representing four optional toppings. The order code positions, from left to right, represent the following elements:
Four optional Items:
1. 'Y' means the customer wants corn (no additional charge), and 'N' means that the customer does not want corn.
2. 'Y' means that the customer wants guacamole ($0.50 extra), and 'N' means that the
customer does not want guacamole.
3.. 'Y' means that the customer wants sour cream (no additional charge), and 'N' means that the customer does not want sour cream.
4.. 'Y' means that the customer wants cheese ($0.50 extra), and 'N' means that the customer
does not want cheese.
Each customer will type in a code representing the structure of his or her order, and your program will display (to standard output) a summary of the order components along with the total cost. An order code is exactly nine characters long, representing five required items. The order code positions, from left to right, represent the following elements:
Five required items:
1. 'A' represents a burrito ($3.00), and 'B' represents a burrito bowl ($4.00).
2. 1 represents black beans (no additional charge), and 2 represents pinto beans (no
additional charge).
3. 1 represents white rice (no additional charge), and 2 represents brown rice ($0.50 extra).
4. 1 represents chicken ($2.00 additional), 2 represents carnitas ($2.50 additional), and 3 represents steak ($3.50 additional).
5. 1 represents mild salsa (no additional charge), 2 represents medium salsa (no additional charge), and 3 represents hot salsa (no additional charge).
A survey on a gender and ear piercing for a large group of college students shows that19 out of 90 males and 84 out 88 females have ear piercings. What is the probability that from this sample, a student selected is a male with ear piercing? *
Assume that mitochondria contain 0.47 Molar KCL and 0.015 Molar NaCl. Calculate the grams per liter, of a carbohydrate similar to glucose with a molecular weight 280 amu, that will have the same osmolarity as the mitochondria..
A certain population has a mean of 20 and a standard deviation of 8. Sample size 16 are taken for the purpose of sampling distribution. What is the expected value of all these sample means?
Suppose you mixed 1.65 grams of calcium chloride and 2.05 grams of sodium carbonate. What's the theoretical yield of the solid product?
A steady stream of air enters a horizontal compressor at the rate of 0.02 kg/s. The air temperature is 10o C at entry and 300o C at exit. The velocity of the air is 30 m/s at entry and 6 m/s at exit. During its passage through the compressor, the air experiences a heat loss of 105 kJ/kg of air. Calculate: (a) The change in kinetic energy per kg of air (b) The change in enthalpy per kg of air (c) The work done per kg of air (d) The power required to drive the compressor (e) The volume of air entering the compressor per second (f) The flow area of the entry pipe if the entry pressure is 1 bar Take R = 0.287 kJ/kgK and cp = 1.005 kJ/kgK
he engine mechanism shown in Fig. 8.38 has crank OB = 50 mm and length of connecting rod A B = 225 mm. The centre of gravity of the rod is at G which is 75 mm from B. The engine speed is 200r.p.m. For the position shown, in which OB is turned 45° from O A, Find 1. the velocity of G and the angular velocity of A B, and 2. the acceleration of G and angular acceleration of A B.
A shipment of five computers contains two that are defective. If a retailer receives three of these computers at random, list the elements of the sample space S using the letter D and N for detective and non-defective computers, respectively . To each sample point assign a value x of the random variable x representing the number of computers purchased by the retailer which is detective.
Given that y= acoskx + bsinkx, show that d²y/dx² + k²y =0