Question: Pls don't use Using namespace std 4.3 - If/Else (Part 3) and Switch Statement (V2] / 10. Kitchen Unit Conversions Saved 20 points possible Reset
Pls don't use "Using namespace std"
4.3 - If/Else (Part 3) and Switch Statement (V2] / 10. Kitchen Unit Conversions Saved 20 points possible Reset to Starter Code Write a program that converts the user's number into the desired unit of measurement. The user will pick the desired unit from a menu shown below. Ask the follow-up question (the number to convert) and do the math ONLY if the user picks a valid choice from the menu. You can see the conversions / multipliers needed for this program in the output section below. Menu/Promot: Entor Le number that corresponds Lo your desired unit conversion from the choices below: [1] Tablespoon (Tbsp) to Teaspoons (Tap) [2] Ounces (O2) LO Cras (9) [3] Cups to Milliliters (ml) Enter a number: 3 Possible Input/Output (Assume user enters 1 as the # of units they wish to convert) Enter the number of tablespoons: There are 2 teaspoons in 1 tablespoons Enter the number of ounces: There are 28.35 grams in 1 ounces Enter the number of cups: There are 236.6 ml in 1 cups Invalid choice. Please run the program again. Notes and Hints 1) What programming structure is best for menus? Use that! Save Grading 4 codecnn Run Tests 5 Full Screen New
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
