213k views
3 votes
Directions-Please pick a task that you perform on a regular basis that has to do with numbers or calculations and create an algorithm. Please don't use the examples in the link. You are to create your own. Be sure to write each step and be as detailed as possible.

Example Algorithm Ideas:
Paying a bill
Calculating your GPA
Calculating your average light bill payment
How many miles do. you drive per month
CAUTION: I NEED THE ANSWER OF TWO OF THE ABOVE ALGORITHMS IN PYTHON LANGUAGE.

User Haziq
by
8.5k points

1 Answer

2 votes

Final answer:

To create an algorithm for calculating your GPA, create a list of courses and their corresponding credit hours, assign letter grades, multiply grade points by credit hours, and calculate the GPA. To create an algorithm for calculating the average light bill payment, record the payments, add them up, and divide by the number of payments.

Step-by-step explanation:

To create an algorithm for calculating your GPA, follow these steps:

  1. Create a list of all your courses and the corresponding number of credit hours.
  2. Assign each course a letter grade, based on the grading scale used by your school.
  3. Multiply the grade points for each course by the number of credit hours.
  4. Add up all the grade points.
  5. Add up all the credit hours.
  6. Divide the total grade points by the total credit hours to calculate your GPA.

To create an algorithm for calculating your average light bill payment, follow these steps:

  1. Record your light bill payments for a specific period of time.
  2. Add up all the payments.
  3. Divide the total by the number of payments to calculate the average light bill payment.
User Bisjob
by
8.5k points