ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 4 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 26 May 2017 My Price 8.00

Gain experience using strings, arrays, functions and their interactions

C project! I'm stuck. Need someone to complete. i've done the first half of the project the remaining part is kind of physics and math!

 

Assignment objectives:Gain experience using strings, arrays, functions and their interactionsGain experience using File Input/OutputGain experience using structuresGain experience using modular programming (functions)Reinforce knowledge of previous programming topicsContinue to refine C programming skills by following the C coding standardLearn to apply "C" programming to problem solvingProblem Description:Your are to create a text base game to try and hit a target in two dimensional plane (X,Y) using acannon ball.The program will randomly create 5 targets (5 sets of X,Y) and display the set on screen. Theseare the coordinates of the targets such that:500 < X < 5000 (meter) and 500< Y < 5000(meter)Player will have 3 chances to hit any of the 5 square targets which is 10 X 10 meters by enteringthe initial velocity and initial angle. The coordinate of the target is at the center of the target.If the player hits a target, the program will display the name and the number of tries and messageindicating that the player won and the time it took to hit the target (time of flight for the hit try),and the target number with beeps for indication that a target was hit. If the player did not hit anytarget in 3 tries, the program will display the initial angles and the initial velocities that wereneeded to hit each target and list them on the screen.Regardless of win or lose, the program must record the target numbers and their coordinates in afile with the players name (a name fromnamepass.txt,below), for exampleleia.txtThe game can be played only if the user has the correct name and correct ID. The list of namesand ID’s are given in a text file callednamepass.txt, such as belowleia 12345darth 23456r2d2 34567solo 45678jabba 56789yoda 67890.Game Requirements:1.You must use array of structures for targets for each game. The members of the structureare: target # (1 to 5), coordinate of the target (X,Y)2.The player must enter a correct name and ID (innamepass.txtfile)to get access to thegame3.Player can choose to play again4.Use random number generator for X and Y of each target5.Must save the result in a fileMore requirements, In addition to our standards:1.The main function must do very little other than calling other functions and passingparameters to those functions.

Attachments:

Answers

(11)
Status NEW Posted 26 May 2017 02:05 AM My Price 8.00

-----------

Attachments

file 1495764341-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)