Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE MATLAB!!! This task is based on your completed work in Credit Task 1 (question 2) and Distinction Task 1. You will design a game

USE MATLAB!!!image text in transcribed

This task is based on your completed work in Credit Task 1 (question 2) and Distinction Task 1. You will design a game interface in a MATLAB program named HDTask1.m. In this game, an animation should be created to display the flying trajectories of the ball shot from a fixed initial height and fixed initial velocity at release. The game player will attempt to adjust the release angle (shooting angle) of the ball to hit a board placed at the ground. Once the ball hits the board, the player will score one point. Then, the board will be randomly re-located to another position for the player to attempt another round. The specific design requirements are given below: Initial height of ball at release is fixed at 1.5 m. Initial velocity of ball at release is fixed at 4 m/s. Board length is of 0.5 m and located at height 0 horizontally. Diameter of ball is approximately one-third of the board length. The ball should be at rest on the board for at least 0.5 second once hit. The should be randomly a range by ball for board re-located within reachable the each new round. Scores should be displayed. The player could adjust the shooting angle in command window and command the action of shooting. The program should have a command for player to exit the program. The program should handle exceptions such as when player enters an invalid shooting angle, etc. The program should not crash MATLAB during running line, good reliability). You may add additional functions to your program to make it funny. This task is based on your completed work in Credit Task 1 (question 2) and Distinction Task 1. You will design a game interface in a MATLAB program named HDTask1.m. In this game, an animation should be created to display the flying trajectories of the ball shot from a fixed initial height and fixed initial velocity at release. The game player will attempt to adjust the release angle (shooting angle) of the ball to hit a board placed at the ground. Once the ball hits the board, the player will score one point. Then, the board will be randomly re-located to another position for the player to attempt another round. The specific design requirements are given below: Initial height of ball at release is fixed at 1.5 m. Initial velocity of ball at release is fixed at 4 m/s. Board length is of 0.5 m and located at height 0 horizontally. Diameter of ball is approximately one-third of the board length. The ball should be at rest on the board for at least 0.5 second once hit. The should be randomly a range by ball for board re-located within reachable the each new round. Scores should be displayed. The player could adjust the shooting angle in command window and command the action of shooting. The program should have a command for player to exit the program. The program should handle exceptions such as when player enters an invalid shooting angle, etc. The program should not crash MATLAB during running line, good reliability). You may add additional functions to your program to make it funny

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

What is behind that?

Answered: 1 week ago

Question

2 What people-related issues do you foresee?

Answered: 1 week ago

Question

' Which areas are you most dependent on to get your work done?

Answered: 1 week ago

Question

What could we do to develop our working relationship?

Answered: 1 week ago