0% found this document useful (0 votes)
23 views2 pages

Python Programming Problem Set

The document outlines a problem set consisting of four programming tasks. The tasks include creating a calculator for addition, formatting output for a jobseeker's app, developing a calculator with multiple operations, and estimating a user's weekly food expenditure. Each problem specifies the required output format and example inputs.

Uploaded by

jasmin.marcilla
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Python Programming Problem Set

The document outlines a problem set consisting of four programming tasks. The tasks include creating a calculator for addition, formatting output for a jobseeker's app, developing a calculator with multiple operations, and estimating a user's weekly food expenditure. Each problem specifies the required output format and example inputs.

Uploaded by

jasmin.marcilla
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like