The Kilometres / Litre for this tank was 13.75 Enter the litres used (-1 to end): 16.5 Enter the kilometres driven: 272 The Kilometres / Litre for this tank was 16.4848 Enter the litres used ( -1 to end): -1 The overall average Kilometres/Litre was 15.1385 Question 2 Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a) Account number (an integer) b) Balance at the beginning of the month c) Total of all items charged by this customer this month d) Total of all credits applied to this customer's account this month e) Allowed credit limit 1 The program should use a while statement to input each of these facts, calculate the new balance ( \( = \) beginning balance + charges credits) and determine whether the new balance exceeds the customer's credit limit. For those customers whose credit limit is exceeded, the program should display the customer's account number, credit limit, new balance, and the message "Credit Limit Exceeded". Enter account number (-1 to end): 100 Enter beginning balance: 5394.78 Enter total charges: 1000.00 Enter total credits: 500.00 Enter credit limit: 5500.00 New balance is 5894.78 Account: 100 Credit limit: 5500.00 Balance: 5894.78 Credit Limit Exceeded. Enter Account Number (or -1 to quit): -1 The output (in this case new balance) should be printed in a floating-point number format and with two digits of precision to the right of the decimal point. Question 3 One large chemical company pays its salespeople on a commission basis. The salespeople each receive R200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who sells R5000 worth of chemicals in a week receives R200 plus 9 percent of R5000, or a total of R650. Develop a C++ program that uses a while statement to input each salesperson's gross sales for last week and calculates and displays that salesperson's earnings. Process one salesperson's figures at a time. Enter sales in rands ( -1 to end): 5000.00 Salary is: R650.00 Enter sales in rands ( -1 to end): 6000.00 Salary is: R740.00 Enter sales in rands ( -1 to end): \( \mathbf{7 0 0 0 . 0 0} \) Salary is: R830.00 Enter sales in rands ( -1 to end): -1 The salesperson 's earnings should be printed as a fixed-point value with a decimal point and with two digits of precision to the right of the decimal point.
Added by Amkele
Close
Step 1
" << endl; } Show more…
Show all steps
Your feedback will help us improve your experience
Dennis Howard and 83 other Psychology educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
The sulfur dioxide content of a stack gas is monitored by passing a sample stream of the gas through an SO_ analyzer. The analyzer reading is $1000 \mathrm{ppm} \mathrm{SO}_{2}$ (parts per million on a molar basis). The sample gas leaves the analyzer at a rate of $1.50 \mathrm{L} / \mathrm{min}$ at $30^{\circ} \mathrm{C}$ and $10.0 \mathrm{mm}$ Hg gauge and is bubbled through a tank containing 140 liters of initially pure water. In the bubbler, $S O_{2}$ is absorbed and water evaporates. The gas leaving the bubbler is in equilibrium with the liquid in the bubbler at $30^{\circ} \mathrm{C}$ and 1 atm absolute. The $\mathrm{SO}_{2}$ content of the gas leaving the bubbler is periodically monitored with the $\mathrm{SO}_{2}$ analyzer, and when it reaches $100 \mathrm{ppm} \mathrm{SO}_{2}$ the water in the bubbler is replaced with 140 liters of fresh water.(a) Speculate on why the sample gas is not just discharged directly into the atmosphere after leaving the analyzer. Assuming that the equilibrium between $S O_{2}$ in the gas and dissolved $S O_{2}$ is described by Henry's law, explain why the SO_ content of the gas leaving the bubbler increases with time. What value would it approach if the water were never replaced? Explain. (The word "solubility" should appear in your explanation.)(b) Use the following data for aqueous solutions of $\mathrm{SO}_{2}$ at $30^{\circ} \mathrm{C}^{14}$ to estimate the Henry's law constant in units of $\mathrm{mm}$ Hg/mole fraction:$$\begin{array}{|l|c|c|c|c|c|}\hline \mathrm{g} \mathrm{SO}_{2} \text { dissolved/ } 100 \mathrm{g}\mathrm{H}_{2} \mathrm{O}(\mathrm{l}) & 0.0 & 0.5 & 1.0 & 1.5 & 2.0 \\\hline p_{\mathrm{SO}_{2}}(\mathrm{mm} \mathrm{Hg}) & 0.0 & 37.1 & 83.7 &132 & 183 \\\hline\end{array}.$$(c) Estimate the SO_concentration of the bubbler solution (mol SO_/liter), the total moles of SO_ dissolved, and the molar composition of the gas leaving the bubbler (mole fractions of air, $\mathrm{SO}_{2}$, and water vapor) at the moment when the bubbler solution must be changed. Make the following assumptions: \bullet. The feed and outlet streams behave as ideal gases. \bullet Dissolved SO_ is uniformly distributed throughout the liquid. ? The liquid volume remains essentially constant at 140 liters. - The water lost by evaporation is small enough for the total moles of water in the tank to be considered constant. - The distribution of SO_ between the exiting gas and the liquid in the vessel at any instant of time is governed by Henry's law, and the distribution of water is governed by Raoult's law (assume $\left.x_{\mathrm{H}_{2} \mathrm{O}} \approx 1\right)$.(d) Suggest changes in both scrubbing conditions and the scrubbing solution that might lead to an increased removal of $\mathrm{SO}_{2}$ from the feed gas.
Representing a large auto dealer, a buyer attends car auctions. To help with the bidding, the buyer built a regression equation to predict the resale value of cars purchased at the auction. The equation is given below. Estimated Resale Price ($) = 22,000 - 2,150 * Age (year), with r^2 = 0.46 and se = $3,100 Use this information to complete parts (a) through (c) below. (a) Which is more predictable: the resale value of one two-year-old car, or the average resale value of a collection of 16 cars, all of which are two years old? A. The average of the 16 cars is more predictable by default because it is impossible to predict the value of a single observation. B. The resale value of one two-year-old car is more predictable because a single observation has no variation. C. The average of the 16 cars is more predictable because the averages have less variation. D. The resale value of one two-year-old car is more predictable because only one car will contribute to the error. (b) According to the buyer's equation, what is the estimated resale value of a two-year-old car? The average resale value of a collection of 16 cars, each two years old? The estimated resale value of a two-year-old car is ____ (Type an integer or a decimal. Do not round.) The average resale value of a collection of 16 cars, each two years old is _____ (Type an integer or a decimal. Do not round.) (c) Could the prediction from this equation overestimate or underestimate the resale price of a car by more than $2,750? A. Yes. Since $2,750 is greater than the absolute value of the predicted slope, $2,150, it is quite possible that the regression equation will be off by more than $2,750. B. No. Since $2,750 is greater than the absolute value of the predicted slope, $2,150, it is impossible for the regression equation to be off by more than $2,750. C. No. Since $2,750 is less than the standard error of $3,100, it is impossible for the regression equation to be off by more than $2,750. D. Yes. Since $2,750 is less than the standard error of $3,100, it is quite possible that the regression equation will be off by more than $2,750.
Chai S.
1a. In a linear programming model, the parameter values in an objective function are referred to as the: objective function coefficients. parameter function. constraint coefficients. quantitative function. 1b. Constraints with slack or surplus in the linear programming solutions are called binding constraints. TRUE or FALSE 1c. As a manager, Mike uses linear programming (LP) to formulate a problem into a series of mathematical expressions. __________ refers to the choices or alternatives Mike selects to minimize or maximize the value of his goals. Objective function Decision variables Optimization Feasible region 1d. Numerical values that are associated with the objective function, decision variables, and constraints are called __________. parameters binary values assumptions 1e. The first step in performing linear programming is to generate random numbers. to formulate a problem into a series of mathematical expressions. to create intervals. to analyze the file for patterns. 1f. Lane Accessories has a growing demand for custom Apple watch designer bands. The current manufacturing costs are $120 per hour to operate. For each hour of operation, 210 black band designs and 180 multi-color designs are completed. However, Lane found a new larger manufacturing space that will cost $160 per hour and produce 325 black design bands and 289 multi-color bands per hour completed. Lane has newly placed orders to restock other retail outlets nationwide for 6,000 black band designs and 5,000 multi-color bands. Because Lane is out of inventory, she needs to decide how many hours to operate each facility to fulfill orders while minimizing cost. Formulate the orders for black design bands. 210x1 + 325x2 ≥ 6,000 180x1 + 289x2 ≥ 5,000 1g. Which one of the following is not an essential component of linear programming? random an objective function decision variables constraints 1h. The objective function is a mathematical representation of an objective. TRUE or FALSE 1i. At Taste of Thyme coffee shop, a dirty chai latte creates a profit of $2.85 for a small and $3.80 for a large. In a month, 200 small lattes were sold and 285 large lattes. As a fast-growing demand item with fall approaching, the demand is estimated at 400 and 420 per month. The allotted machine time for both lattes is 90 hours. The amount of machine time needed to produce the lattes is 5 minutes and 7 minutes each or for a month, 16.67 hours a month for a small and 33.25 hours a month for a large. What is the corresponding parameter formulation for machine time? 5x1 + 7x2 ≤ 90 16.67x1 + 33.25x2 ≤ 90
Md.Daniyal A.
Recommended Textbooks
Psychology Openstax
Myers' Psychology for AP
Psychology
Watch the video solution with this free unlock.
EMAIL
PASSWORD