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

Login to view and/or buy answers.. or post an answer
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

Similar orders to I need help writing a program
7
Views
0
Answers
Nested imbalanced design of expriment using Box-Adjusted wald-type test
I need to provide statistical analysis of a nested design non-balanced design of experiment. I am hoping to have the implementation in either R, SPSS, or both. I will need the answers to be provided as shown in the attached file (Project.docx), and also wo...
27
Views
0
Answers
CMPT 200 Coding Homework
Write a class called Fraction that can store a rational number (reminder: those numbers that can be expressed in the form a/b, where a and b are integers are rational numbers). For example, a variable with a value of ½ would be created using oneHalf ...
14
Views
0
Answers
Artificial Inteligence System Technique
This is a Master Degree course and I have attached example questions, there are 5 questions and only 3 need to be answered. We will get the actual questions on the day of the exam and they need to be completed within 2 hours, which means the expert has to ...
18
Views
0
Answers
Simulating Networks
Here are the details of first assignment for Computer Networks class. This is a pretty basic assignment with very little work but you will have to do initial setup for virtual box on your machine. Here are the details on how to do the setup: Download virt...