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. For the long jump, the average is then multiplied by a factor of 7 For the high jump, the average is then multiplied by a factor of 4 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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

1. Send a brief note thanking the family members for attending.

Answered: 1 week ago