eval(input("enter the launch angle (in degrees)") eval(input("enter the initial velocity (in meters/sec)") eval(input("enter the initial height (in meters)") eval(input("enter the time interval between position calculations")return , , , def main()anglevelh time getinputs(cball projectile(anglevelh while cball gety(> cball update(timeprint("\ndistance traveled{ : fmeters format(cball xpos) data processing with class the projectile example shows how useful class can be for modeling real-world object that has complex behavior another common use for objects is simply to group together set of information that describes person or thing for examplea company needs to keep track of information about all of its employees their personnel system might make use of an employee object that contains data such as the employee' namesocial security numberaddresssalarydepartmentetc grouping of information of this sort is often called record let' try our hand at some simple data processing involving university students in typical universitycourses are measured in terms of credit hoursand grade point averages are calculated on point scale where an "ais pointsa "bis pointsetc grade point averages are generally computed using quality points if class is worth credit hours and the student gets an " ,then he or she earns ( quality points to calculate student' grade point average (gpa)we divide the total quality points by the number of credit hours completed suppose we have data file that contains student grade information each line of the file consists of student' namecredit-hoursand quality points these three values are separated by tab character for examplethe contents of the file might look something like thisadamshenry computewellsusan dibblebitdenny jonesjim smithfrank our job is to write program that reads through this file to find the student with the best gpa and print out his/her namecredits-hoursand gpa we can begin by creating student class an object of type student will be record of information for single student in this casewe have three pieces of informationnamecredit-hoursand quality points we can save this information as instance variables that are initialized in the constructor