Question: This is for C++ For #2, I have a case for each letter so is there a shorter way to write this program? Please show
This is for C++ 2. The international standard letterumber mapping found on the telephone is shown below: ABC DEF GHI JKL MNO PQRS TUV WXYZ Write a program that reads a letter (case-insensitive) and displays its corresponding digit. Solve this problem using switch/case. [15 Points 3. Write a program that prints numbers from 1 to 104, each 8 numbers on a separate line, at the end of each line find the sum of its numbers. Use only one f statement inside a while loop statement. [25 Points] For example, 1 2 3 45 6 7 9 10 11 12 13 14 15 16 a sum of 100 8 a sum of 36 97 98 99 100 101 102 103 104 a sum of 804 (Hint: compare the result of modulus 8 to zero)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
