Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help writing the following C Program. I will RATE your answer :) C Program For this program you will build a modular equation evaluator.
Please help writing the following C Program. I will RATE your answer :)
C Program For this program you will build a modular equation evaluator. All main and fuctions should be placed in a single project. Once again you will write a C program that evaluates the equations provided below. The program must prompt the user to select one equation (1 to 7), the inputs to the equations and evaluate them based on the inputs. All variables on the right-hand sides of the equations must be inputted by the user. All variables on the right-hand sides of the equations must be inputted by the user. All variables, except for the plaintext_character encoded_character, and variable a are floating-point values. The plaintext character and encoded character variables are characters, and the variable is an integer. PI, G must be defined as a constant macro (#de fined constants). Error checking is not required for your program. You do not need to check for faulty user input or dividing by zero 1. Newton's Second Law of Motion: force-mass acceleration 2. Volume ofa cylinder: volume-cylinder = PI * radius2 * height 3. Character encoding: encodedcharacter= (plaintextcharacter- 'a') - - + 'A' (note: whathappens if plaintext character is lowercase?) 4. Gravity: force = G * mass 1 * mass 2 / distance2, where Gis the gravitational constant with value 6.67 10-11 5. Resistive divider: vout-r2 / (rl + r2) * vin 6. Distance between two points: distancesqare root of ((x1 - x2)2 + (yl - y2)2) (note: you will need to use sqrt() out of
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started