1. Engineering
  2. Computer Science
  3. c programming practice question...

Question: c programming practice question...

Question details

C Programming practice question Create a simple scientific calculator program as follows: 1 Display a menu of options according to table. 2- Ask the user to enter a menu option (upper and lower case will work) 3- If menu option is not valid, display msg invalid option and repeat parts 1 and 2. (use do-while) 4 For add option ask the user to enter two numbers, store as double and display sum. 5 For subtract option ask the user to enter two numbers, store as double and display difference 6- For multiply option, same as above. 7 For divide option, same as above(test the denominator, if zero, display an appropriate msg). 8- For remainder option, ask the user to enter two integers and displays remainder. 9 For squared, ask the user to input a number and output the square of the number. 10- For square root, check if the number is negative and output appropriate msg. 11- For factorial, ask for a number an output factorial (5! 5*4*3*2 1. (use for loop) 12- For is even, display msg indicating if number is even 13- For greater integer, round the number to an integer greater than number. 14- For less integer, round the number to an integer less than number.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution