Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programming language is c++ Question 5 Write a program that displays the following menu: Provide two numbers: X Y Select your option: A. Power of

image text in transcribed
programming language is c++
Question 5 Write a program that displays the following menu: Provide two numbers: X Y Select your option: A. Power of a number given its index B. Square root of a number C. Log - base 10 D. Modulus of two numbers E. Help F. Exit Please Enter your choice (1-4): I Constrains: a) You code should handle lower and upper case input (use a function to do this) b) You can use the functions in cmath or any other library indicate them) c) You can only receive float/double from input. The options that need integer you will have to convert handle d) In option A, the second number has to be transformed into an int, since it controls the power index; c) In option D, you should use only integers f) Option B, C and D should only work for positive values regardless the input; g) Option C should provide log (base 10) only for values different than 0. h) The program keeps running until option F is selected i) Option E should show a help message about how to use cach option in your code j) 5 Test cases - one for each operation You are required to use one function per operation, switch and do while statement

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

The following information relates to DFW Corporation:

Answered: 1 week ago