6.4 Activity BACK 6.4 Night Out (Nylah Newkirk - Solu Prompt Submissions/Test Runs ( 0 ) Files your friend, so you're paying for the whole night. However, since you have a fixed amount of money to spend on fun things, you need to track how much the outing will cost so you can update your budget. Write a program to help yourself estimate what the total cost of the night will be. Your program will estimate the cost by taking the cost of the activities for one person and estimating how much it will cost for two people. Here's what you know about your activities: 1. Dinner - you know you typically get cheap dinners, so you expect that your friend's dinner will be twice as expensive as yours 2. Laser Tag - since laser tag is charged per person, you and your friend will cost the same 3. Ice cream - you like the triple scoop, but your friend likes a single scoop. Your friend's ice cream will cost \( 1 / 3 \) as much as yours. Your program should ask how much YOUR dinner cost, how much laser tag costs per person, and how much YOUR ice cream costs. It should then compute how much your friend's costs will be based on the information above. Be sure your program takes the input in this exact order. Then print how much dinner will cost (for both of you), how much laser tag will cost (for both of you), and how much the ice cream will cost (for both of you). Then print the grand total for the evening. Your output should look something like this: How much does dinner usually cost? ASSIGNMENTS Unit 6: Java / 6.4 N
Added by Nylah N.
Close
Step 1
For this example, we'll assume you're using Java. Show more…
Show all steps
Your feedback will help us improve your experience
Rupsa Sarkar and 100 other AP CS 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
Zagat restaurant guides publish ratings of restaurants for many large cities around the world. The restaurants are rated on a 0 to 30 point scale based on quality of food, decor, service, and cost. Suppose the regression equation that predicts the cost of dinner using the rating of the quality of food for the restaurants in a particular city is (cost of dinner) = 4.089*(food quality) + 2.371. Interpret the slope. 1) We are not given the dataset, so we cannot make an interpretation. 2) When cost of dinner increases by 1 dollar, food quality increases by 4.089 points. 3) When food quality increases by 1 point, cost of dinner increases by 2.371 dollars. 4) When food quality increases by 1 point, cost of dinner increases by 4.089 dollars. 5) When cost of dinner increases by 1 dollar, food quality increases by 2.371 points. Suppose that for a typical FedEx package delivery, the cost of the shipment is a function of the weight of the package. You find out that the regression equation for this relationship is (cost of delivery) = 0.75*(weight) + 6.21. If a package you want to ship weighs 26 ounces and the true cost of the shipment is $12.13, what is the residual? 1) 13.87 2) 0.29 3) 13.58 4) -13.58 5) -13.87 Zagat restaurant guides publish ratings of restaurants for many large cities around the world. The restaurants are rated on a 0 to 30 point scale based on quality of food, decor, service, and cost. Suppose the regression equation that predicts the cost of dinner using the rating of the quality of food for the restaurants in a particular city is (cost of dinner) = 3.605*(food quality) + 2.713. If a restaurant in the city was given a Zagat rating of 25.683, and the average cost of dinner there is 57.626, the residual is -37.674. Interpret the residual. 1) The Zagat rating is 37.674 points larger than what we would expect. 2) The cost of dinner is 57.626 dollars less than what we would expect. 3) The Zagat rating is 37.674 points less than what we would expect. 4) The cost of dinner is 37.674 dollars less than what we would expect. 5) The cost of dinner is 37.674 dollars greater than what we would expect.
Sri K.
Annie's Homemade is considering starting a Fan Club to grow its revenues, particularly during the winter months. Each member of the Fan Club would pay a monthly fee to obtain the following benefits: 1. One free t-shirt received at the time of enrollment. Each t-shirt costs Annie's $9.00. 2. One free ice cream flight per month. Each flight consists of two-ounce servings of four flavors. Annie's cost per flight is $1.60. 3. Eligibility to spin the prize wheel after each increment of 12 servings purchased. Annie's estimates each member will buy four servings of ice cream per month; therefore, being eligible to spin the prize wheel once every three months, or four times a year. The average cost of each prize awarded when a fan club member spins the prize wheel is $5.00. In addition, Annie's uses $1.00 per member per month to "buy" ice cream for $5.00 per serving. The company then donates the ice cream purchased by fan club members to community organizations such as Big Brothers/Big Sisters, public schools, and first responders. Annie's cost per pre-packaged, donated serving is $1.40. Annie's estimates customers who are not members of the fan club buy two servings of ice cream per month, whereas the fan club's benefits motivate loyal members to buy four servings per month. The price per serving and ingredient cost per serving are $5.00 and $1.20, respectively. The company is asking for your recommendation whether it should charge members $12 per month (or $144 for an annual membership) or $10 per month (or $120 for an annual membership). Required: 1. Calculate the incremental revenue per member, per year under both pricing scenarios by completing the following table: 2. In addition, Annie's uses $1.00 per member per month to "buy" ice cream for $5.00 per serving. On an annual basis, this means each member contributes $12 that "buys" 2.4 servings of ice cream per year. The company then donates the ice cream purchased by fan club members to community organizations such as Big Brothers/Big Sisters, public schools, and first responders. Annie's cost per pre-packaged, donated serving is $1.40. Calculate the incremental expense per member, per year by completing the following table: 3. Calculate the incremental profit per member, per year under both pricing scenarios by completing the following table: 4. If Annie's could attract 95 fan club members at a price of $12 per month or 100 members at a price of $10 per month, how much additional profit (loss) does the $12 price provide when compared to the $10 price? 5. If Annie's could attract 100 members at a price $10 per month, what is the fewest number of members the company could enroll at $12 per month and still earn higher profits than the $10 scenario?
Dominador T.
Q1. Your friend Sam has been asked to do appetizers for a university reception. She has an unlimited amount of ingredients and 6 hours in which to prepare them. Sam can make 200 mini-sandwiches or 160 servings of melon slices topped with smoked salmon and a dab of sauce per hour. a. Sam's opportunity cost of making one mini-sandwich is (circle to the right one) 0.8 melon appetizer 1.25 melon appetizers. b. Sam's opportunity cost of making one melon appetizer is (circle to the right one) 0.8 mini-sandwich 1.25 mini-sandwiches. c. Suppose the reception has been postponed, and Sam has an extra 4 hours to prepare. The opportunity cost of making one mini-sandwich is now (circle to the right one) 1.25 melon appetizers 0.8 melon appetizer. d. Suppose the reception has been postponed, and Sam has an extra 4 hours to prepare. The opportunity cost of making one melon appetizer is now (circle to the right one) 0.8 mini-sandwich 1.25 mini-sandwiches. e. Suppose Sam's friend Chris helps by preparing the melon slices, increasing Sam's productivity to 200 mini-sandwiches or 200 melon appetizers per hour. The opportunity cost of making one mini-sandwich is now (circle to the right one) 1.25 melon appetizers 1 melon appetizer. f. Suppose Sam's friend Chris helps by preparing the melon slices, increasing Sam's productivity to 200 mini-sandwiches or 200 melon appetizers per hour. The opportunity cost of making one melon appetizer is now (circle to the right one) 1.25 mini-sandwiches 1 mini-sandwich. Q2 Suppose three volunteers are preparing cookies and cupcakes for a bake sale. Diana can make 17 cookies or 28 cupcakes per hour; Andy can make 15 cookies or 27 cupcakes per hour; and Sam can make 0 cookies or 22 cupcakes per hour. a. Who has an absolute advantage at making cookies? (circle to the right one) Andy Diana Sam. b. Who has an absolute advantage at making cupcakes? (circle to the right one) Andy Diana Sam. Q3. Maya and Max are neighbors. Both grow lettuce and tomatoes in their gardens. Maya can grow 45 heads of lettuce or 9 kilograms of tomatoes this summer. Max can grow 42 heads of lettuce or 6 kilos of tomatoes this summer. If Maya and Max specialize and trade, the price of 1 kilo of tomatoes (in terms of lettuce) would be between (circle to the right one) 5 and 7 5 and 6 4 and 8 4 and 7 heads of lettuce.
Manasvee S.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD