Answered step by step
Verified Expert Solution
Question
1 Approved Answer
do this c programming using while and if statments and switch only and pls explain everything and dont use any void because we didnt take
do this c programming using while and if statments and switch only and pls explain everything and dont use any void because we didnt take it in class yet
Using c programing Create a program that presents the following menu to the user: 1) Print author info 2) Enter multiplication 3) Enter power 4) Multiplication Table 0) Exit Option 1 prints the author's (your) name and student Id Option 2 asks the user to enter two integers, and then calculates the result of multiplying the two numbers together (you may not use the multiplication operation, or division operation/in your program Option 3 asks the user to enter two integers, and then calculates the first number raised to the power of the second number Option 4 ask the user to enter an Integer, print a multiplication table ranging from 00 to num num When the option is finished, prompt the user to make a new selection. Don't exit until the user enters option 0 Hints: For table: start off just "drawing" a single character such as, then what can you do to make it a row of *s, then how do you make it a grid of 's. Then think about how to use that code for a multiplication table. Consider elementary school math, what is multiplication? It is repeated addition, so you have a base unit of work of adding a value, you then repeat that base unit of work some number of times. What tool do we have that lets us repeat some segment of code? A loop, so use a loop to repeat the step of adding numbers until you have the multiplication result. Example multiplication table with max value 3: 0123 00123 002 46 00369 2 Points Program Compiles 1 Point for Serious Attempt to complete assignment 3 Points Prints Multiplication Table Data 1 Point for Multiplication Header 2 Points to Calculate Multiplication 1 Point to Calculate Power (Ctrl) I
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started