Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instruction: Fix the error in the lines 32,51,19,71,72,73,74,7584,85,86,87,88,75,54,32,51 and 54. Create the program and move the lines to compile Instruction: Fix the 5 errors in

Instruction: Fix the error in the lines 32,51,19,71,72,73,74,7584,85,86,87,88,75,54,32,51 and 54.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Create the program and move the lines to compile image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Instruction: Fix the 5 errors in the lines 9,9, 43, 48 and 132 image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
17 #define win32_WINT @x0500 #include "windows.h" //#include "Wingdi.h" #include #include #include NOSSOS Cavou WN using namespace std; #define PI 3.14 #define NMAX 1000 eint main() { HITTITITITIVITTIILILIMWWWWWWWWWIIIIIIIIIIIII double G 9.81, ang 53, ve = 10, vex, voy; //Inicializar el angulo y la velocidad inicial vex - vecos (ang - PI / 180); //Velocidad inicial horizontal vy - ve sin(ang PI / 180); //Velocidad inicial vertical printf("Initial speed v: %.2f. Angle : 3.2f", ve, ang); printf("vex: %.26", Vox); printf("v@y: $2f", vay); double tFinal - 2 vy / G; //tiempo de la bala en el aire double yMax - vytFinal / 2 - 0.5 G tFinal / 2 tFinal / 2; printf("tFinal: %.2f", tFinal); OSAO 1007 Search Line ETOT LIST Entire Solution - 19 Errors A3 Wamings 00 of 1 Message Code Description $ 10 left operand must be l-value 3 03267 GetDe: identifier not found 4474printf too many arguments passed for format string CAT printt': unterminated format string in Build + IntelliSense Project Jorge Proyecto3 JorgeProyecto3 Jorge Proyectos Jorge Proyecto3 File Jorge Proyecto3.cpp Jorge Proyecto3.cpp Jorge Proyecto3.cpp Jorge Proyecto3.cpp Error List Output o Item(s) Saved VIVA slopej double Ts = 0.1; int N = (int) (tFinal / Ts); printf("Number of measures: %d ", (N + 1)); double x[NMAX + 2], y[NMAX + 2], t[NMAX + 2]; printf("t: secs. xpos. ypos. vx. vy "); for (int n = 0; n #include #include 6 using namespace std; #define PI 3.14 #define NMAX 1000 int main() { HZZZW W WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW double G 9.81, ang = 53, ve-10, vex, Vey n icializan el angulo y la velocidad Inicial vex = vecos (angPI V180); Velocidad inicial horizontal vey ve sin(ang* PI / 180); Velocidad inicia vertical printf Initial speed : 3.2f. Angle I n ve ang); printf("vex: %.20Vox); printf("vy: 2 vey) double tinal 2 vey/G; Wtiempo de abalien el aire double yua Vetrina 2 - 0.5 Fina2 Rinal 2: printf("tFinal 12 Fina) O 100% Output Show output from: Fliput geProyecto3 24 25 (Global Scope) double Ts = 0.1; int N = (int) (tFinal / Ts); printf("Number of measures: %d ", (N + 1)); double x[NMAX + 2], y[NMAX + 2], t[NMAX + 2]; printf("t: secs. xpos. ypos. Vx. vy "); for (int n = 0; n and are entered by the user on the keyboard. Move the code from lines 16 and 17 to a function called internterData (....) that returns vox and voy. 2. Move the code from lines 18 to 26 inclusive to a function called fShowinitials (...). 3. Move the code from lines 28 to 40 inclusive to a function called fComputer Trajectory (....). 4. Move the code from lines 46 to 110 inclusive to a function called fGenerateGraphic (....). As always, you should use the standard report with the pertinent chapters of introduction and flowchart algorithm, source code and photo of an example of ir Fynlorer Toolbox JorgeProyecto3 (Global Scope) // #include "Wingdi.h" #include "windows.h" #include #include #include #include "Windows.h" using namespace std; #define PI 3.14 #define win32 WINT 0x0500 #define NMAX 1000 void intEnterData(double array[], double* returnArray) NNNSBUSB ovou AWN double vo = array[@]; double ang = array[1]; double/* G = 9.81, ang = 53, VO = 10,*/ vox, voy; //Inicializar el angulo y la velocidad inicial VOX - v * cos(ang* PI / 180); //Velocidad inicial horizontal voy = vo * sin(ang * PI / 180); //Velocidad inicial vertical returnArray[0]: returnArray[1]; void fShowInitials (double initialspeed, double angle, double vox, dr 100% JorgeProyecto3 32 - (Global Scope) 1/7/double Ts =0.1; //int N =(int) (tFinal/Ts); printf("Number of measures: %d ", (noofmeasures + 1)); main Elvoid fComputerTrajectory(int n, double vox, double vy, double tFinal, double Ts, double* x, double t[NMAX + 2]; printf("t:secs. xpos. ypos. vx. vy "); for (int n = 0; n > ang; 23 124 125 126 127 128 129 130 131. 232 033 00% double param[2]; param[@] = vO; param[1] = ang; double returnArray[2]; intEnterData(param, returnArray); double vox = returnArray[@]; double voy = returnArray[1]; double tFinal = 2 * vey / G; //tiempo de la bala en el aire double yMax = v@y*tFinal / 2 - 0.5 - G tFinal / 2 tFinal / 2; 40ES. 0 0 Messages Error List Entire Solution Code 5 Errors ! 0 Warnings Description urcuytzeu preprucing GSIVE identifier "G" is undefined identifier "G" is undefined identifier "G" is undefined Build - IntelliSense Project Juryeproyectos Jorge Proyecto Jorge Proyecto3 Jorge Proyectos File Juryer Jorgep Jorge JorgePro E0020 E0020 E0020 Error List Code Definition Window Output - Ready double voy = leluitar Tayt+] double tFinal = 2 * vy / G; //tiempo de la bala en el aire double yMax = voy * tFinal / 2 - 0.5 * G* tFinal / 2. tFinal / 2; Searc O Messages * Build + IntelliSense File Project 9 List are Solution 85 Errors | 0 Warnings Code Description as E0011 unrecognized preprocessing directive E0020 identifier "G" is undefined I E0020 identifier "G" is undefined E0020 identifier "G" is undefined Error List Code Definition Window Output Jorge Proyecto3 Jorge Proyecto3 JorgeProyecto3 JoroeProvecto3 Jorge Proyecto3.cpp JorgeProyecto3.cpp Jorge Proyecto3.cpp JoroeProvecto3.co a.* 5. o te Ready O Type here to search 17 #define win32_WINT @x0500 #include "windows.h" //#include "Wingdi.h" #include #include #include NOSSOS Cavou WN using namespace std; #define PI 3.14 #define NMAX 1000 eint main() { HITTITITITIVITTIILILIMWWWWWWWWWIIIIIIIIIIIII double G 9.81, ang 53, ve = 10, vex, voy; //Inicializar el angulo y la velocidad inicial vex - vecos (ang - PI / 180); //Velocidad inicial horizontal vy - ve sin(ang PI / 180); //Velocidad inicial vertical printf("Initial speed v: %.2f. Angle : 3.2f", ve, ang); printf("vex: %.26", Vox); printf("v@y: $2f", vay); double tFinal - 2 vy / G; //tiempo de la bala en el aire double yMax - vytFinal / 2 - 0.5 G tFinal / 2 tFinal / 2; printf("tFinal: %.2f", tFinal); OSAO 1007 Search Line ETOT LIST Entire Solution - 19 Errors A3 Wamings 00 of 1 Message Code Description $ 10 left operand must be l-value 3 03267 GetDe: identifier not found 4474printf too many arguments passed for format string CAT printt': unterminated format string in Build + IntelliSense Project Jorge Proyecto3 JorgeProyecto3 Jorge Proyectos Jorge Proyecto3 File Jorge Proyecto3.cpp Jorge Proyecto3.cpp Jorge Proyecto3.cpp Jorge Proyecto3.cpp Error List Output o Item(s) Saved VIVA slopej double Ts = 0.1; int N = (int) (tFinal / Ts); printf("Number of measures: %d ", (N + 1)); double x[NMAX + 2], y[NMAX + 2], t[NMAX + 2]; printf("t: secs. xpos. ypos. vx. vy "); for (int n = 0; n #include #include 6 using namespace std; #define PI 3.14 #define NMAX 1000 int main() { HZZZW W WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW double G 9.81, ang = 53, ve-10, vex, Vey n icializan el angulo y la velocidad Inicial vex = vecos (angPI V180); Velocidad inicial horizontal vey ve sin(ang* PI / 180); Velocidad inicia vertical printf Initial speed : 3.2f. Angle I n ve ang); printf("vex: %.20Vox); printf("vy: 2 vey) double tinal 2 vey/G; Wtiempo de abalien el aire double yua Vetrina 2 - 0.5 Fina2 Rinal 2: printf("tFinal 12 Fina) O 100% Output Show output from: Fliput geProyecto3 24 25 (Global Scope) double Ts = 0.1; int N = (int) (tFinal / Ts); printf("Number of measures: %d ", (N + 1)); double x[NMAX + 2], y[NMAX + 2], t[NMAX + 2]; printf("t: secs. xpos. ypos. Vx. vy "); for (int n = 0; n and are entered by the user on the keyboard. Move the code from lines 16 and 17 to a function called internterData (....) that returns vox and voy. 2. Move the code from lines 18 to 26 inclusive to a function called fShowinitials (...). 3. Move the code from lines 28 to 40 inclusive to a function called fComputer Trajectory (....). 4. Move the code from lines 46 to 110 inclusive to a function called fGenerateGraphic (....). As always, you should use the standard report with the pertinent chapters of introduction and flowchart algorithm, source code and photo of an example of ir Fynlorer Toolbox JorgeProyecto3 (Global Scope) // #include "Wingdi.h" #include "windows.h" #include #include #include #include "Windows.h" using namespace std; #define PI 3.14 #define win32 WINT 0x0500 #define NMAX 1000 void intEnterData(double array[], double* returnArray) NNNSBUSB ovou AWN double vo = array[@]; double ang = array[1]; double/* G = 9.81, ang = 53, VO = 10,*/ vox, voy; //Inicializar el angulo y la velocidad inicial VOX - v * cos(ang* PI / 180); //Velocidad inicial horizontal voy = vo * sin(ang * PI / 180); //Velocidad inicial vertical returnArray[0]: returnArray[1]; void fShowInitials (double initialspeed, double angle, double vox, dr 100% JorgeProyecto3 32 - (Global Scope) 1/7/double Ts =0.1; //int N =(int) (tFinal/Ts); printf("Number of measures: %d ", (noofmeasures + 1)); main Elvoid fComputerTrajectory(int n, double vox, double vy, double tFinal, double Ts, double* x, double t[NMAX + 2]; printf("t:secs. xpos. ypos. vx. vy "); for (int n = 0; n > ang; 23 124 125 126 127 128 129 130 131. 232 033 00% double param[2]; param[@] = vO; param[1] = ang; double returnArray[2]; intEnterData(param, returnArray); double vox = returnArray[@]; double voy = returnArray[1]; double tFinal = 2 * vey / G; //tiempo de la bala en el aire double yMax = v@y*tFinal / 2 - 0.5 - G tFinal / 2 tFinal / 2; 40ES. 0 0 Messages Error List Entire Solution Code 5 Errors ! 0 Warnings Description urcuytzeu preprucing GSIVE identifier "G" is undefined identifier "G" is undefined identifier "G" is undefined Build - IntelliSense Project Juryeproyectos Jorge Proyecto Jorge Proyecto3 Jorge Proyectos File Juryer Jorgep Jorge JorgePro E0020 E0020 E0020 Error List Code Definition Window Output - Ready double voy = leluitar Tayt+] double tFinal = 2 * vy / G; //tiempo de la bala en el aire double yMax = voy * tFinal / 2 - 0.5 * G* tFinal / 2. tFinal / 2; Searc O Messages * Build + IntelliSense File Project 9 List are Solution 85 Errors | 0 Warnings Code Description as E0011 unrecognized preprocessing directive E0020 identifier "G" is undefined I E0020 identifier "G" is undefined E0020 identifier "G" is undefined Error List Code Definition Window Output Jorge Proyecto3 Jorge Proyecto3 JorgeProyecto3 JoroeProvecto3 Jorge Proyecto3.cpp JorgeProyecto3.cpp Jorge Proyecto3.cpp JoroeProvecto3.co a.* 5. o te Ready O Type here to search

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

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

What attracts you about this role?

Answered: 1 week ago

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago

Question

a. What is the purpose of the team?

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago