Translate

PP_Exercise_Fundamentals in Python

Task One

The University dean of students needs a simple program to keep track of player statistics for an inter-faculty basketball game. You are tasked is to write a Python program that will help the organizing committee track the performance of students being tracked by international scouts.

Create a digital scoreboard to store the following: student name, faculty, points scored, assists, rebounds, and 3 pointers (create variables)

Assign dummy values for each of the variables

Calculate player efficiency score using the formula

Efficiency Score=(Points Scored×2)+Assists

Print a summary of player stats to indicate:

Player Name:        Faculty       Points scored        Assists        Rebounds and 3Pointers

1.     After calculating and printing the initial stats, imagine a scenario where the player's coach realizes the assists were miscounted and should be 10 instead of the original value. Update the Assists variable and then recalculate and print the new Efficiency Score.

Task 2: Personal Budget Calculator

Create a simple budget tracking tool that will help in personal budgeting. The program should:

1.     Store personal income.

2.     Store the following expenses (Use dummy values):

o    Water bill

o    Food

o    Transportation

o    Airtime

3.     Calculate the total expenses

4.     Calculate the balance at end of the month

5.     Write a simple check using a boolean variable to determine if 15% of the monthly salary can be saved.

6.     Print out a statement at the end of the month.

 

No comments:

Post a Comment