Write a C++ program that displays the following menu for the

March 25, 2012 at 15:51:06
Specs: Windows Vista
2.Write a C++ program that displays the following menu for the user:
Functions menu:
1. F1= 10 X –((2/3)y)
2. F2= y +⅗ (X2)
The program should ask the user to enter the required function number( 1 or 2 ) and then reads the values of x and y to calculate the selected function.
Your program should include two functions function1 to calculate F1 and function2 to calculate F2 which are called by the main function. The calculated values result from function1 and function2 are returned to the main function to be printed. The program should be executed continuously until (-1) entered by the user ( Hint : use switch in your program and use the function pow(x,y) available in the library <cmath>). Check the following output:
Functions menu:
1. F1= 10 X –((2/3)*y)
2. F2= y +⅗ (X^2)
Enter function number(-1 to end): 1
Enter the values of x and y: 1 6
F1 = 6
Enter function number(-1 to end): 9
Wrong input!
Enter function number(-1 to end): 2
Enter the values of x and y: 5 10
F2 = 25
Enter function number(-1 to end): -1
Press any key to continue……..

plz help me solvin this,, with very simple way , im using microsot visual c++


See More: Write a C++ program that displays the following menu for the

Report •


#1
March 25, 2012 at 15:59:02
Great; homework. Show us what you got, and we'll show you where you're going wrong.

How To Ask Questions The Smart Way


Report •

#2
March 26, 2012 at 18:52:20
Create a structure chart for what you want to do. You can have more than two functions. Break it down into pieces that are easy. Create stubs for each function you have not finished yet.

Report •

Related Solutions


Ask Question