Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A Track and Field Triathlon A certain triathlon contains the following three events: Long Jump, High Jump, and Shot-put. The scoring is done as follows

image text in transcribed

A Track and Field Triathlon A certain triathlon contains the following three events: Long Jump, High Jump, and Shot-put. The scoring is done as follows For each event, the athlete gets three attempts. Each distance/height is recorded (in inches). After the three attempts, the average is taken. o For the long jump, the average is then multiplied by a factor of 7 o For the high jump, the average is then multiplied by a factor of 4 o For the shot-put, the average is then multiplied by a factor of 5. These values become the athlete's weighted scores for the events. At the end of all events, the three weighted scores are added together for a total score Write a Windows32 Assembly Language program that will accomplish the following: 1. Prompt the user for the distances/heights for each of the three attempts for each of the three events. (Assume only integers will be entered and that the integers will represent a reasonable height or distance in inches) Make sure your prompts are meaningful. 2. Average the scores for each event. (Use only integer division) 3. Multiply each event average by its factor to obtain a weighted score. (For credit, you must use multiplication and NOT repeated addition.) 4. Sum the weighted scores for a total final score. 5. Display, to the user, each event name and their score for that event (weighted score), plus their final score, all in one window. Make sure your output is mathematically correct, and that the display to the user is meaningful. A Track and Field Triathlon A certain triathlon contains the following three events: Long Jump, High Jump, and Shot-put. The scoring is done as follows For each event, the athlete gets three attempts. Each distance/height is recorded (in inches). After the three attempts, the average is taken. o For the long jump, the average is then multiplied by a factor of 7 o For the high jump, the average is then multiplied by a factor of 4 o For the shot-put, the average is then multiplied by a factor of 5. These values become the athlete's weighted scores for the events. At the end of all events, the three weighted scores are added together for a total score Write a Windows32 Assembly Language program that will accomplish the following: 1. Prompt the user for the distances/heights for each of the three attempts for each of the three events. (Assume only integers will be entered and that the integers will represent a reasonable height or distance in inches) Make sure your prompts are meaningful. 2. Average the scores for each event. (Use only integer division) 3. Multiply each event average by its factor to obtain a weighted score. (For credit, you must use multiplication and NOT repeated addition.) 4. Sum the weighted scores for a total final score. 5. Display, to the user, each event name and their score for that event (weighted score), plus their final score, all in one window. Make sure your output is mathematically correct, and that the display to the user is meaningful

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions