A computer program is designed to simulate horses doing show jumping. In show jumping, horses jump over obstacles called fences. A horse successfully jumps a fence if it does not knock the fence down. The program is written using Object-Oriented Programming (OOP). The class Horse stores data about the horses. The array Horses stores objects of type Horse. (i) The program has two horses: - The horse named 'Beauty' can jump a maximum height of 150 cm and has a success percentage rate of $$\(72 \%\)$$. - The horse named 'Jet' can jump a maximum height of 160 cm and has a success percentage rate of $$\(65 \%\)$$. Write program code to: - declare the array, Horses, local to the main program with space for two Horse objects - store the two horses described in the array - output the name of both Horse objects from the array. Save your program. Copy and paste the program code into part 2(b)(i) in the evidence document. (ii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 2(b)(ii) in the evidence document.
Exam No:9618_w24_qp_41 Year:2024 Question No:2(b)
Answer:


Knowledge points:
19.1 Algorithms
20.1 Programming Paradigms
Solution:
Download APP for more features
1. Tons of answers.
2. Smarter Al tools enhance your learning journey.
IOS
Download
Download
Android
Download
Download
Google Play
Download
Download