Task 1: How Many Calories? A bag of cookies holds 30 cookies. The calorie information on the bag claims there are 10 "se

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Task 1: How Many Calories? A bag of cookies holds 30 cookies. The calorie information on the bag claims there are 10 "se

Post by answerhappygod »

Task 1 How Many Calories A Bag Of Cookies Holds 30 Cookies The Calorie Information On The Bag Claims There Are 10 Se 1
Task 1 How Many Calories A Bag Of Cookies Holds 30 Cookies The Calorie Information On The Bag Claims There Are 10 Se 1 (50.87 KiB) Viewed 52 times
Task 1: How Many Calories? A bag of cookies holds 30 cookies. The calorie information on the bag claims there are 10 "servings" in the bag and that a serving equals 300 calories. Write a program that asks the user co input how many cookies he or she actually are, then reports how many total calories were consumed. you must know the following facts: • To Calculate the number of cookies in a serving: cookiesPerServing = Cookies_Per_Bag/Num_Servings; • To Calculate the number of calories in a cookie. caloriesPerCookie = calories_per_serving/cookiesPerServing; • To Calculate the total calories consumed. totalCalories = caloriespercookie * numCookies; Task 2: Multiply of two fractions The formula to find the Multiply of two fractions is: ба 4a+20 Multiply: 3a +15 2a² Write a program that ask user to enter (a) for the numerator and denominator of each fraction and displays the Multiply in fractional form. Task 3: Average Rainfall Write a program that calculates the average rainfall for three months. The program should ask the user to enter the name of each month, such as June or July, and the amount of rain (in inches) that fell each month. The program should display a message similar to the following: The average rainfall for June, July, and August is 6.72 inches.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply