Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedonly 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 ) 7. General equation: y =(89 / 27). Z*x + a / (a % 2) (recall: a is an integer; the 89 and 27 constants in the equation should be left as integers initially, but explicitly type- casted as floating point values)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

Learn how volunteers differ from nonvolunteers

Answered: 1 week ago