# I need help writing a program

I attached the requirements below. C/C++ programming is to be used.

## Get Help With a similar task to - I need help writing a program

##### Additional Instructions:

Program 3 After the loss of the Gru in the Gulf of Mexico, the minions infiltrated the U.S. and setup a base in Florida. The new base is equipped with an upgraded EM field device that renders all electrical and electronic devices inoperative. The base has several fortifications that need to be dealt with using medieval type weapons. Luck favors the bold Operation bring down the castle With only the computer, used in the previous battle with the minions, still operational. Students from EEL4834 need to program it as a trajectory calculator to be used against the minion’s fortifications. Write a program as follows: Display a menu with the following options. Enter T for trajectory calculations Enter A for hypotenuse calculations Enter M for momentum calculations Enter P for circle parameter calculations Enter F for force calculations Enter X to exit. Ask the user to enter a choice from the menu and then the program needs to perform the following operations: (the options should work for both lower and upper case characters) Hints: g is the gravitational acceleration constant 9.8 Weight = mass . g - For option A ask the user for side a and side b of a right triangle. Calculate and output the magnitude of side c where c2 = a2 + b2. - For option M ask the user for the weight of the object and its velocity. Calculate and output the momentum of the object prior to impact. The momentum = mass . velocity - For option T ask the user for the distance to target ( between 10 meters and 200 meters). The device used, a catapult, has a set initial launch velocity of 50 m/s. The launch angle of the projectile is then calculated using the following formula: Angle = arcsin( g . d / v2) . the arcsin function is part of the math.h library using the syntax of asin( ). The acceleration is g and you should use 9.8 . the variable d is the distance desired and inputted by the user. Remember that the angle resulting from the formula is in radians, you have to output the result in degrees (have the program do the conversion). - For option P ask the user for the diameter of a circle. Calculate the circumference of the circle using the formula 2πr. (remember, input is the diameter) - For option F ask the user for the acceleration and the weight of the object. Calculate and output the force as f = m . a - For option X exit the program. No input validation required. Output should have a precision of 2. The program should keep on displaying the menu after each option is executed and then asking for a new option until the user enters X. If the user enters an option other than the ones listed then output a message stating, “bad input, please enter a correct option” and then redisplay the menu.

## Related Questions

Tutlance Experts offer help in a wide range of topics. Here are some of our top services:

- Math homework help
- Nursing homework help
- Statistics homework help
- Nursing coursework help
- Capstone project writing services
- Essay writers for hire
- Case study writing help
- Buy college papers online
- Buy college research papers
- College homework help
- Professional resume writing services
- Programming homework help
- Coursework writing help
- Term paper writing help
- Biology homework help
- Do my physics homework
- Dissertation data analysis help
- PhD Dissertation writing services
- Chemistry homework help

Post your project now for free and watch professional experts outbid each other in just a few minutes.