2. Write a script that will accept the sides of a triangle, let them be “a”, “b”, “c”. Based on these variable values determine if the triangle is right angled or not, by using Pythagoras theorem. Hint: if c2 = a2 + b2 then the given sides are right angled triangle else not a right-angled triangle.
3. Write a script that should prompt a user to enter his\her hourly rate, number of hours per day, number of days per week and number of weeks per year. Then the system computes the annual income. Hint: Boyce earns P35 per hour at his job. What would be his annual income be if he works 8 hours per day, 5 days per week, and 50 weeks per year .
Comments
Leave a comment