Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

item, the subtotal, # and the total. iteml =0.0 item2 =0.0 item3 =0.0 item4 =0.0 item5 =0.0 subtotal =0.0 tax =0.0 total =0.0 # Constant

image text in transcribed
image text in transcribed
item, the subtotal, \# and the total. iteml =0.0 item2 =0.0 item3 =0.0 item4 =0.0 item5 =0.0 subtotal =0.0 tax =0.0 total =0.0 \# Constant for the sales tax rate. TAx_RATE =0.23 \# Get the price of each item. \# Calculate the subtotal for 5 items subtotal = iteml + item2 + item3 + item4 + item5 \# Calculate the sales tax. \# Sabtal: A Calculate the total By Adding Subtotal Totax 2. \# Variables to hold the distances. Distance60Hours =0.0 Distance250Hours =0.0 Distance500Hours =0.0 \# Constant for the speed. SPEED =75 \# Calculate the distance the car will travel in \# 60,250 , and 500 hours. \# Print the results. print ("The car will travel the following distances:") distance60Hours,miles in 250 hours, distanceloHours, miles in 5000 hours 3. Write a script to print following pattern using loop 1 2 2 3 3 3 4 4 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visualizing Health And Healthcare Data Creating Clear And Compelling Visualizations To See How Youre Doing

Authors: Katherine Rowell ,Lindsay Betzendahl ,Cambria Brown

1st Edition

1119680883, 978-1119680888

More Books

Students also viewed these Databases questions

Question

Do not pay him, wait until I come

Answered: 1 week ago

Question

What do you think empiricists would think about god?

Answered: 1 week ago