ECE 1620 - Assignment #1 Part 1 - Due: 14, 21 Jan 2022
[10] a1/p1.txt
- survey - (1/14)
[20] Chapter 1 T/F Problems - (1/21)
[20] a1/p1.c
- modify chapter1_1.c - (1/14)
Start with a copy of program
chapter1_1.c
shown on pages 18 and 25-26 (use the Copy
button at bottom of VECR) which computes the distance
between two points.
- Compile and run to make sure it works to start with.
- Remove all of the original comments (use the VECR rmcmts link,
then Update)
- Insert a comment at the top with your name and a brief description of the
program, e.g.
// your name
// modifying chapter1_1.c
- Compile and run to make sure it still works.
- Change the initialization of x1, y1, x2, and y2 so each is multiplied by
a factor of 10100, for example x2=4 will be changed to x2=4e100.
Then Update, Compile, and Run.
Note the absurd format of the output.
- Change the format from %5.2f to %5.2g, then Update, Compile, and Run.
- Change the initialization of x1, y1, x2, and y2 so each is multiplied by
a factor of 10200, for example x2=4e100 will be changed to x2=4e200.
Then Update, Compile, and Run. Is the output correct?
optional/extra/advanced