Page 1 of 1

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

Posted: Mon Jun 06, 2022 12:37 pm
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 54 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.