Question: only 3,5 and 7 needed III. Overview & Requirements: Write a C program that evaluates the equations provided below. All equations should be placed in
only 3,5 and 7 needed III. Overview & Requirements: Write a C program that evaluates the equations provided below. All equations should be placed in a single project! The program must prompt the user for 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, except for the plaintext_character, encoded_character, offset, and variable a are floating-point values. The plaintext_character and encoded_character variables are characters, and the offset and a variable are integers. PI, G must be defined as a constant macros (#defined 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 of a cylinder: volume_cylinder - Pl" radius2 height 3. Character encoding: encoded_character = offset + (plaintext_character - 'a') + 'A' (note: what happens if plaintext_character is lowercase?) 4. Gravity: force = G * mass1 * mass2 / distance, where G is the gravitational constant with value 6.67 10-11 5. Resistive divider: vout = r2 / (r1 + r2) vin 6. Distance between two points: distance = square root of ((x1 - x2)2 + (y1 - y2)) (note: you will need to use sqrt() out of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
