Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Vector Practice.pdf C++ Lab: Using Vectors Coach Blue wants to keep track of the total, average and max weight of the players on his wrestling

image text in transcribed
image text in transcribed
Vector Practice.pdf C++ Lab: Using Vectors Coach Blue wants to keep track of the total, average and max weight of the players on his wrestling team. He asks you to write a program that will prompt the user ( Coach Blue ) for all 12 players weights. He does not need to you store any additional information (other than the weights). The program should then output for him, the total weight, the average weight and the maximum weight. Specifications The weights should be stored in a vector of doubles The vector's doubles must be output on one line, each number followed by a space. Also output the total weight. Also output the average of the vector's elements. Also output the max vector element. Sample output: Enter weight : Enter weight 2: 1875 Enter weight 3: 198 3 Enter weight 4: 134.8765 Enter weight 5: 203 Enter weight 6: 156.8 Enter weight 7: 180.4 Enter weight 8: 1788988 Enter weight 9: 123.2 Enter weight 10: 198 Enter weight 11: 201 2456 Enter weight 12: 125 You entered:124 5 187.5 1983 134.876 203 156.& 188.4178.891 123.2 198 201 346 125 Total weight: 2011.81 Average weight 167.651 Max weight 203 Upload your lab report(in .pdf file format ONLY), Make sure you have entered all required information, including a screenshot of a(n) successful/unsuccessful run of your lab. Lab Report Report Format: Your report should follow the below format. Make sure to include all sections. You can review the grading rubric for this report below. Assignment/Problem Description: What were you required to implement? This is a word-for-word reiteration of the problem given to you. Discussion: Solution/Program Description:A brief description of what your program does, including how your program works. For example, you might state whether your solution is recursive or iterative. Pseudocode or Flowchart: Include your program design materials: either your pseudocode or your flowchart (or both). Major Implementation Issues:What were the most difficult parts of your program to implement? Screenshots: Be sure to provide a screenshot of a successful run of your program. If you were not able to successfully complete your lab, you should embed a screenshot of the unsuccessful run (compiler errors). Known Bugs and/or Errors: List all the known bugs and/or errors of your program, After extensively testing your program, you should be aware of (nearly) every issue it has. How does your program handle bad Input? How does your program handle edge cases? This section is a space for full disclosure; what's wrong with your program? ("No known bugs" is NOT a correct answer and will NOT receive points) Lessons Learned: What went well What you would do differently next time General Tips It is expected that you use as much formal language as you can. There should be no emphasis placed on 'expressing yourself" or "keeping it interesting a programming lab report is not a narrative, In a lab report, it is important to get to the point. Be descriptive enough that your audience can understand the problem and your solution, but strive to be concise. Focus on the work accomplished rather than the process used to complete the work

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

Students also viewed these Databases questions

Question

3 5 6 .

Answered: 1 week ago

Question

Define the goals of persuasive speaking

Answered: 1 week ago