Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I can't figure out whats wrong with this code #include #include 1 2 3 4 5 6 7 8 9 10 11 12 13 14

image text in transcribedimage text in transcribed

I can't figure out whats wrong with this code

#include #include 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 double degreeInput(); double timeMaxHeight(); double heightMax(); double timeGround(); double distance Total(); double inputHeight(); double velocityInput(); void output(); int main() { double degree; double velocity; double height; double timeMax; double timeGround; double maxHeight; double totalDistance; inputHeight(); velocityInput(); degreeInput(); degree = degree Input(); velocity = velocityInput(); height = inputHeight(); X timeMaxHeight(); timeMax = timeMaxHeight(velocity, degree); heightMax(); maxHeight = heightMax(timeMax, velocity, height, degree); timeGround(); error: called object type 'double' is not a function or function pointer ground = timeGround(velocity, height, degree); distanceTotal(); totalDistance = distanceTotal(timeGround, velocity, degree); output(timeGround, timeMax, maxHeight); return 0 } double degreeInput() { double degree; //printf("nEnter angle to the horizontal (Degrees]: "); //scanf("%.1f", °ree) return (degree); } 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 double velocityInput() { { double velocity; //printf(" Enter initial velocity [m/s]: "); //scanf("%.1f", &velocity); return (velocity); } double inputHeight () { double height; //printf(" Enter height of launch [m] : "); //scanf("%.1f", &height); return height; } yruunu - LIIICUT VUIUIVELULILY, Hey, ucy CCI, distanceTotal(); totalDistance = distanceTotal(timeGround, velocity, degree); output(timeGround, timeMax, maxHeight); return @ } double degreeInput() { double degree; //printf(" Enter angle to the horizontal (Degrees]: "); //scanf("%.1f", °ree) return (degree); } double velocityInput() { double velocity; //printf(" Enter initial velocity [m/s]: "); //scanf("%.11", &velocity); return (velocity); } double inputHeight() { double height; //printf(" Enter height of launch [m] : "); //scanf("%.1f", &height); return height; } double timeMax Height (double velocity, double degree) { double timeMax; timeMax = (velocity * sin(degree * (M_PI/180)))/ 9.8; return timeMax; } double heightMax(double timeMax, double velocity, double height, double degree) { double maxHeight; maxHeight = height + velocity * sin(degree * (M_PI/180)) * timeMax - 0.5 * 9.8 * powtimeMax, 2); return maxHeight; } double timeGround ( double velocity, double height, double degree) { double ground; ground = (velocity * sin(degree * M_PI/180) + sqrt(pow( (velocity * sin(degree * M_PI/180)), 2) + 2 * (9.8) * height))/9.8; return ground; } double distanceTotal(double ground, double velocity, double degree) { double totalDistance; totalDistance = velocity * cos(degree * M_PI/180) * ground; return totalDistance; } void output (double timeGround, double maxHeight, double timeMax) printf(" -=-=-=-=-=-=-=- -=-=-=-=-=- "); printf(" Time to max height: %.2f ", timeMax); printf(" Maximum height reached reached: %.2f ", maxHeight); printf(" Time to hit ground: %.2f ", timeGround); return

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_2

Step: 3

blur-text-image_3

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

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

How is yield to maturity related to the concept of rate of return?

Answered: 1 week ago