Problem Set 01
Problem 1
Create a calculator (addition) wherein the output shows the entire mathematical expression.
Example output: 5.0 + 3.0 = 8.0
Problem 2
Your friend is working on an app for jobseekers. She sends you this bit of code:
name = "Pepito Manaloto"
age = 24
skill1 = "python"
level1 = "beginner"
skill2 = "java"
level2 = "veteran"
skill3 = "programming"
level3 = "semiprofessional"
lower = 20000
upper = 30000
print("my name is ", name, " , I am ", age, "years old")
print("my skills are")
print("- ", skill1, " (", level1, ")")
print("- ", skill2, " (", level2, ")")
print("- ", skill3, " (", level3, " )")
print("I am looking for a job with a salary of", lower, "-", upper, "pesos per month")
The program should print out exactly the following:
Problem 3
Create a calculator that outputs exactly the following using 2 input variables:
For input(example):
x = 27
y = 15
Output:
27 + 15 = 42
27 - 15 = 12
27 * 15 = 405
27 / 15 = 1.8
Problem 4
Write a program that estimates a user's typical food expenditure. The output must be exactly the
following:
How many times a week do you eat at the student cafeteria? 4
The price of a typical student lunch? 30
How much money do you spend on groceries in a week? 400
Average food expenditure:
Daily: 74 pesos
Weekly: 520 pesos