This assignment is due by Thursday, May 16, 2019, 11:59 PM.
As with all assignments, this must be an individual effort and cannot be pair programmed. Any debugging assistance must be provided in accordance with the course collaboration policy.
Do not forget to complete the following labs with this set: L2A
.
· Instructions · Rubric · Submission ·
Make it look pretty!
Enter the mass: 9.3
The force is: 40.269
Enter the width: 4
Enter the height: 2
The area is: 8
------------ Equation #01 Newton's 2nd Law ------------ Enter the acceleration: 4.33 Enter the mass: 9.3 ------------ Equation #12 Area ------------ Enter the width: 4 Enter the height: 2 /----------------------------------------------------------------\ |Equation # | Equation Name | Major | Variable | Value | >----------------------------------------------------------------< | 01 | Newton's 2nd Law | Physics | Acceleration | 4.330 | | | | | Mass | 9.300 | | | | | Force | 40.269 | >----------------------------------------------------------------< | 12 | Area | Math | Width | 4.000 | | | | | Height | 2.000 | | | | | Area | 8.000 | \----------------------------------------------------------------/
You'll need to use a combination of I/O manipulators and turn settings on/off to accomplish this task. Do not make the table by outputting spaces. Instead, be sure to be setting an appropriate width for each column. For instance, the following is incorrect:
cout << "| 12 | Area |";
// format equation column cout << "12"; // format name column cout << "Area";
Grading Rubric
Your submission will be graded according to the following rubric.
Points | Requirement Description |
2 | All code submitted properly. |
2 | All labs completed and submitted L2A |
2 | Programming Lab 2 completed. |
2 | Assignment compiles |
6 | Equation information printed to screen. |
6 | Table matches formatting specifications. |
3 | I/O Manipulators used and no spaces are hard coded. |
3 | I/O Manipulators used and no dashes are hard coded. |
6 | (1) Comments used (2) Coding style followed (3) Appropriate variable names, constants, and data types used (4) Instructions followed |
32 | Total Points |
This assignment is due by Thursday, May 16, 2019, 11:59 PM.
As with all assignments, this must be an individual effort and cannot be pair programmed. Any debugging assistance must be provided in accordance with the course collaboration policy.
Do not forget to complete the following labs with this set: L2A
.
Submission
Always, always, ALWAYS update the header comments at the top of your main.cpp file. And if you ever get stuck, remember that there is LOTS of help available. The following instructions are copied from How to Submit Homework.
Submission Instructions
- File and folder names are extremely important in this process.
Please double-check carefully, to ensure things are named correctly.
- The top-level folder of your project must be named
Set2
- Inside
Set2
, create 2 sub-folders that are required for this Set. The name of each sub-folder is defined in that Set (e.g.L2A
, andA2
). - Copy your
main.cpp
into the subdirectories ofSet2
(steps 1-2), zip thisSet2
folder (steps 3-4), and then submit the zipped file (steps 5-11) to Canvas. - For example, when you zip/submit
Set2
, there will be 2 sub-folders calledL2A
, andA2
inside theSet2
folder, and each of these sub-folders will have a file calledmain.cpp
and nothing else.
- The top-level folder of your project must be named
- Using Windows Explorer (not to be confused with Internet Explorer), find the file
named
"main.cpp"
located inside the folder for the particular lab or homework assignment you will submit.
STOP: Are you really sure you are viewing the correct assignment's folder?
- Now, for A2, right click on the
main.cpp
to copy the file. Then, return to theSet2/A2
folder and right click to paste the file. In other words, put a copy of your homework'smain.cpp
source code into theSet2/A2
folder.
Follow the same steps for L2A, to put a copy of your lab'smain.cpp
into theSet2/L2A
folder.
STOP: Are you sure yourSet2
folder now has all your code to submit?
- Now, right-click on the
"Set2"
folder.- In the pop-up menu that opens, move the mouse
"Send to..."
and expand the sub-menu. - In the sub-menu that opens, select
"Compressed (zipped) folder"
.
STOP: Are you really sure you are zipping aSet2
folder with sub-folders that each contain amain.cpp
file in it?
- In the pop-up menu that opens, move the mouse
- After the previous step, you should now see a
"Set2.zip"
file.
- Now visit the Canvas page for this course
and click the
"Assignments"
button in the sidebar.
- Find Set2, click on it, find the
"Submit Assignment"
area, and then click the"Choose File"
button.
- Find the
"Set2.zip"
file created earlier and click the"Open"
button.
STOP: Are you really sure you are selecting the right homework assignment? Are you double-sure?
- WAIT! There's one more super-important step. Click on the blue
"Submit Assignment"
button to submit your homework.
- No, really, make sure you click the
"Submit Assignment"
button to actually submit your homework. Clicking the"Choose File"
button in the previous step kind of makes it feel like you're done, but you must click the Submit button as well! And you must allow the file time to upload before you turn off your computer!
- Canvas should say "Submitted!". Click "Submission Details" and you can download the zip file you just submitted. In other words, verify you submitted what you think you submitted!
"Set2"
folder
and only the "Set2"
folder, this zip folder must have several sub-folders, you must name all these folders correctly, you must submit the correct zip file for this
homework, and you must click the "Submit Assignment"
button. Not doing these steps is like bringing your
homework to class but forgetting to hand it in. No concessions will be made for
incorrectly submitted work. If you incorrectly submit your homework, we will not be able to
give you full credit. And that makes us unhappy. This assignment is due by Thursday, May 16, 2019, 11:59 PM.
As with all assignments, this must be an individual effort and cannot be pair programmed. Any debugging assistance must be provided in accordance with the course collaboration policy.
Do not forget to complete the following labs with this set: L2A
.