[Solved]Q1 Write Program Using Looping Constructs Adds Even Numbers 16 26 Inclusive Q2 Write Progr Q37078665
Q1. Write a program usinglooping constructs that adds up all the evennumbers from
16 through 26 inclusive.
Q2. Write a programthat accepts 10 individual values of gallons, oneat a time, and converts
each value entered to its liter equivalent beforethe next value is requested.
Using looping construct.
Promptthe user each time to enter the gallons. Your program then computesto
convert it into liters.
NOTE: 1 US gallon = 3.79Liters
Q3. Write aprogram that reads the letter codes Ato Z and prints the corresponding.
telephone digit. Use a sentinel controlled loopfor your program structure.
******************************************************************************
Note: Use any of thefamiliar looping constructs ( for, while, ordo-while) to program.
For loops areideally suited when you know beforehand how many iterations torun.
While loops anddo-while are suited for all other scenarios whereit’s not possible to
know the number of iterations theprogram needs to do. Example – error validation techniques.
Do while loopsare best used in menu-based programs.
Finally, you can always becreative to use and mix any of these loops together to plan anddesign
your algorithmic thinking.
Note: Useappropriate error validation checks for user input.
COMMENT yourcode
Expert Answer
Answer to Q1. Write a program using looping constructs that adds up all the even numbers from 16 through 26 inclusive. Q2. Write a… . . .
OR

