You mix 100 mL of 1.0 M HCl with 100 mL of 1.0 M NaOH, both initially at 25.0°C, into a coffee-cup calorimeter. The temperature of the reaction raises to 34.2°C. The heat capacity of the coffee-cup is 132 J/°C. What is the heat of the total reaction? What is it per mole of H2O (l) formed?
In: Chemistry
Overview
For this assignment, write a program that will calculate the amount that a customer spends on tickets at a movie theater.
This program will be continued in program 3 so it is important that this program is completed.
Basic Program Logic
The basic logic for this program is similar to program 1: the user is asked to enter values, a calculation is performed, and the result of the calculation is displayed.
For this program, prompt the user for the number of adult tickets they would like to purchase. This is an integer value and must be placed into an int variable.
Prompt the user for the number of childrens tickets they would like to purchase. This value should also be placed in an int variable.
Calculate the user's purchase amount using a cost of $11.25 for a single adult ticket and $4.50 for a single child ticket. The purchase amount is the cost of adult tickets plus the cost of childrens tickets.
After the calculation, display the number of adult tickets that were purchased, the number of childrens tickets that were purchased, and the total purchase amount. Use the setw manipulator to line up the last digit of the number of tickets that were purchased and the total purchase amount. The total purchase amount should be displayed with exactly 2 digits after the decimal point, including zeroes.
Program Requirements
At the top of the C++ source code, include a documentation box that resembles the one from program 1.Make sure the Date Due and Purpose are updated to reflect the current program.
Include line documentation. There is no need to document every single line, but logical "chunks" of code should be preceded by a line or two that describes what the "chunk" of code does. This will be a part of every program that is submitted for the remainder of the semester.
The calculated dollar amount should be displayed with exactly 2 digits after the decimal point.
The numeric values read in from the user should all be integer values. Use meaningful variable names.
Make sure and test the program with values other than the ones supplied in the sample output.
Hand in a copy of the source code (CPP file) using Blackboard.
Sample Output
A few runs of the program should produce the following results:
Run 1
Enter the number of adult tickets that are being purchased: 2
Enter the number of child tickets that are being purchased: 5
************************************
Theater Sale
************************************
Number of adult tickets: 2
Number of child tickets: 5
Total purchase: 45.00
Run 2
Enter the number of adult tickets that are being purchased: 1
Enter the number of child tickets that are being purchased: 2
************************************
Theater Sale
************************************
Number of adult tickets: 1
Number of child tickets: 2
Total purchase: 20.25
Run 3
Enter the number of adult tickets that are being purchased: 21
Enter the number of child tickets that are being purchased: 0
************************************
Theater Sale
************************************
Number of adult tickets: 21
Number of child tickets: 0
Total purchase: 236.25
Run 4
Enter the number of adult tickets that are being purchased: 0
Enter the number of child tickets that are being purchased: 0
************************************
Theater Sale
************************************
Number of adult tickets: 0
Number of child tickets: 0
Total purchase: 0.00In: Computer Science
In: Chemistry
In: Statistics and Probability
The average gas mileage of a certain model car is 28.0 miles per gallon. If the gas mileages are normally distributed with a standard deviation of 0.4 miles per gallon, find the probability that a car has a gas mileage of between 26.8 and 27.2 miles per gallon. In addition to the answer, please write out your steps and thoughts that led you to your answer.
In: Statistics and Probability
An engineer wants to determine how the weight of a? car, x, affects
gas? mileage, y. The following data represent the weights of
various cars and their miles per gallon.
Car
A
B
C
D
E
Weight? (pounds), x
25452545
31003100
34103410
37703770
40404040
Miles per? Gallon, y
25.225.2
23.923.9
19.619.6
18.518.5
14.314.3
?(a) Find the? least-squares regression line treating weight as
the explanatory variable and miles per gallon as the response
variable.
Write the equation for the? least-squares regression line.
ModifyingAbove y with caretyequals=negative
0.00717?0.00717xplus+44.544.5
?(Round the x coefficient to five decimal places as needed. Round
the constant to one decimal place as? needed.)
?(b) Interpret the slope and? intercept, if appropriate.
Choose the best interpretation for the slope.
A.
The slope indicates the mean weight.
B.
The slope indicates the ratio between the mean weight and the mean
miles per gallon.
C.
The slope indicates the mean change in miles per gallon for an
increase of 1 pound in weight.
D.
The slope indicates the mean miles per gallon.
In: Statistics and Probability
Chapter 7:
The mean mean gas mileage for a hybrid car is 57 milers per gallon. Suppose that the gasoline mileage is approximately normal distributed with a standard deviation with 3.5 milers per gallon. (A) what proportion of hybrids get over 62 milers per gallon? B.) What proportion of hybrids gets 52 milers per gallon or less? C.) what proportion of hybrids gets between 59 and 62 miles per gallon? D.) What is the probability that a randomly selected hybrid gets less than 45 miles per gallon?
A.) The proportion of hybrids that gets over 62 miles per gallon is ____
(Round to four decimal places as needed).
B.) The proportion of hybrids that gets 52 miles per gallon or less is ____
(Round to four decimal places as needed).
C) The proportion of hybrids that gets between and 62 miles per gallon is ____
(Round to four decimal places as needed).
D.) The probability that a randomly selected hybrid gets less than 45 miles per gallon is ___
(Round to four decimal places as needed).
In: Statistics and Probability
Identify the sample and sample statistic - For 186 randomly selected babies, the average (mean) of their births weights is 3,103 grams (based on data from “Cognitive Outcomes of Preschool Children with Prenatal Cocaine Exposure.” By Singer et al., Journal of the American Association, Vol. 291, No 20).
A) Sample-preschool children, statistic birth weights
B) Sample-186 babies, statistic 3,103 grams
C) Sample 186 babies, statistic Cocaine Exposure
What are the absolute and relative errors? – The bakery menu claims that there are 12 doughnuts in a bag, but the baker always puts 13 doughnuts (the true value) in each bag.
A) Absolute 1 donut, relative 7.7%
B) Absolute -1 donut, relative -7.7%
C) No answer text provided.
What are the absolute and relative errors? –The official distance for a marathon is 26 miles 385 yards or 26.21875 miles, but the organizers of a marathon map a course that is actually 26.34567 in length.
A)Absolute 26.21875 miles, relative .12692 miles
B) Absolute .12692 miles , Relative 0.5%
C) Absolute 26.34567 miles, Relative 12.6%
In: Math
In: Finance
In: Operations Management