Examen INTER oct 2015 EN.pdf

# Examen INTER oct 2015 EN.pdf - Computer Basics 1º GITI...

• 3

This preview shows 1 out of 2 pages.

Computer Basics 1º GITI, GITT, IEM, ITL Oct/2015 1 Name: Last Name: Group: FI_1 FI_3 FI_GITT_eng THE STUDENT MUST FILL OUT HIS NAME ON ALL PAGES 1. Duration: 1h30. 2. Keep all the exam sheets stapled. 3. Use of pencil is permitted. 4. Use of sentences exit, continue, break (apart from its use in switch) is not permitted. Program 1 ( pts) Program 2 ( pts) Program 3 ( pts) Total Program 1: Main program. Loops (3,5 points) A golfer has to shot repeatedly to reach the hole. The location of the hole is known, and located at the x axis between the lower limit HOLE_L and the upper limit HOLE_U, and the golfer is located initial- ly at x=0. The first time the shot will go right side. Define HOLE_L and HOLE_U as constants. The golf player will have to adjust, by try and error procedure, the initial speed (v 0 ) of the golf ball, as well and the required angle (α ) of the shot. Write a main program that will read the speed v 0 and the angle α and will calculate the new position of the ball in a loop. The speed v0 is read in m/s (do not validate it) and the angle is read in radians and must be between 0 and π/2 (validate it).

Subscribe to view the full document.

You've reached the end of this preview.
• Fall '16
• Negative and non-negative numbers, Natural number, Prime number

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern