C Language Program
- or -
Post a project like this$30
- Posted:
- Proposals: 2
- Remote
- #2003864
- Expired
Description
Experience Level: Intermediate
Please remember it need to be get it done in 6 hours from today PST time.
Design and extend your previous program to do the following:
You should alter the instructions that appear at the beginning of each drop so that any mention to
information contained in the Planet structure is taken from there rather than hard coded as text
(print variables in your printf() function call).
The Lunar Lander program should now have an outer loop. This will allow you to simulate the lunar
landing over an over without quitting. At the end of each loop, the program should display a list of
the 10 highest scores. This should be stored in an array of High_Score. If a player manages to beat
a high score when they land, you should ask for their name and then insert their name, remaining
fuel and score into the High_Score chart.
Create a Data Structures called Planet and High_Score.
Planet should contain: Planet_Name, Fuel, Velocity, Height, Gravity, the
Maximum_Thrust of the engines and a Difficulty rating.
High_Score should contain Name, Fuel and Points.
You will have to decide the data types based on your previous program and judgement.
You can calculate the score (Points) by multiplying the remaining fuel by the planet’s difficulty
factor.
For the time being, your program will continue to use only the moon for landing.
Your program should also incorporate these functions:
float Delta_V(float, int, float*);
int Check_Status(float, float);
int Print_Scores(High_Score_t*);
void Get_High_Score(float, int, High_Score_t*);
SEOBIZ P.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
0%
Last project
11 May 2024
Pakistan
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Don't you think you learn better if you did your university homework yourself instead of hiring someone to do it for you?
SEOBIZ P.09 May 2018thats not my assignment lols. i have done my bachelors and master as well in 2010 finished my studies. my friend need that thats why i posted this.
640027
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies