Friday, August 30, 2019

Junior 1 Homework

Class:  Information Technology
Date Administered: August 30, 2019
Date Due:  Next IT Class
Submission Format:  Hardcopy (printed)
To be graded.  10 points each

Instructions:  Write structured algorithms for the following problems:  (simple algorithms)

1.  The cost to go to Altun Ha are as follows:  $5.00 for Belizean and $10.00 for non-Belizeans.  Write an algorithm that calculates and shows the total for a group going to Altun Ha.

2. Write an algorithm that asks the user to enter the diameter of a circle.  The algorithm should calculate and show the circumference of a circle using the formula circumference = 2 Pi R

3. Write an algorithm that prompts the user to enter the name and age of three friends.  The algorithm should find and show the average age of the friends.

4.  Write an algorithm that asks the user to enter a number and store in X.  The algorithm should find and show the square and cube of the number.

No comments:

Post a Comment