Write a program that displays the following information:? Your name? Your address, with city, state, and ZIP? Your telephone number? Your college major? Q2.? A customer

 

Online Python:

==========================================

Week 3: Assignment 

Compete the following questions.  

Submission 

  • Python Code 
  • Screenshot of the running program  

Q1. Write a program that displays the following information: 

Your name 

Your address, with city, state, and ZIP 

Your telephone number 

Your college major 

Q2. 

A customer in a store is purchasing five items. Write a program that asks for the price of each item, then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 7 percent. 

Q3. Write the following code and submit the screenshot of the running program. 

# Get the user’s name, age, and income. 

name = input(‘What is your name? ‘) 

age = int(input(‘What is your age? ‘)) 

income = float(input(‘What is your income? ‘)) 

# Display the data. 

print(‘Here is the data you entered:’) 

print(‘Name:’, name) 

print(‘Age:’, age) 

print(‘Income:’, income) 

Q4. Write the following code and submit the screenshot of the running program. 

# This program gets an item’s original price and 

# calculates its sale price, with a 20% discount. 

# Get the item’s original price. 

original_price = float(input(“Enter the item’s original price: “)) 

# Calculate the amount of the discount. 

discount = original_price * 0.2 

# Calculate the sale price. 

sale_price = original_price – discount 

# Display the sale price. 

print(‘The sale price is’, sale_price) 

    



 
Online Python:


==========================================
Week 3: Assignment 
Compete the following questions.  
Submission 

Python Code 
Screenshot of the running program  

Q1. Write a program that displays the following information: 
Your name 
Your address, with city, state, and ZIP 
Your telephone number 
Your college major 
Q2. 
A customer in a store is purchasing five items. Write a program that asks for the price of each item, then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 7 percent. 
Q3. Write the following code and submit the screenshot of the running program. 
# Get the user’s name, age, and income. 
name = input(‘What is your name? ‘) 
age = int(input(‘What is your age? ‘)) 
income = float(input(‘What is your income? ‘)) 
# Display the data. 
print(‘Here is the data you entered:’) 
print(‘Name:’, name) 
print(‘Age:’, age) 
print(‘Income:’, income) 
Q4. Write the following code and submit the screenshot of the running program. 
# This program gets an item’s original price and 
# calculates its sale price, with a 20% discount. 
# Get the item’s original price. 
original_price = float(input(“Enter the item’s original price: “)) 
# Calculate the amount of the discount. 
discount = original_price * 0.2 
# Calculate the sale price. 
sale_price = original_price – discount 
# Display the sale price. 
print(‘The sale price is’, sale_price) 

    Why Choose Us

    • 100% non-plagiarized Papers
    • 24/7 /365 Service Available
    • Affordable Prices
    • Any Paper, Urgency, and Subject
    • Will complete your papers in 6 hours
    • On-time Delivery
    • Money-back and Privacy guarantees
    • Unlimited Amendments upon request
    • Satisfaction guarantee

    How it Works

    • Click on the “Place Your Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
    • Fill in your paper’s requirements in the "PAPER DETAILS" section.
    • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
    • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
    • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.