General Requirements Plan the steps for each program by writing pseudocode at the beginning of your program. Write your pseudocode as comments immediately after your name and SPC ID# . Good pseudocode...



General Requirements



  • Plan the steps for each program by writingpseudocode
    at the beginning of your program.



  • Write your pseudocode as comments immediately after
    your name and SPC ID#. Good pseudocode isrequired
    for full points.

  • Add more comments in each program to explain what your code is doing.


  • Do not go your own way by writing a program that ignores the requirements. Solve the problem as the requirements specify.

  • Where formatted numbers are required in output,
    use
    f-strings
    as




  • Numbers in currency format
    should display two decimal places and commas to indicate thousands.

  • When done,you have to zip/compress your folderfor submitting. Do this byright-clicking on yourfolder and selecting "Send to"> "Compressed (zipped) folder".This will make azip file.
    Only zips are acceptable.Compression formats such asraror 7z will be assigned a zero grade.

  • Uploadthiszipped folder to the assignmentdrop box.

  • Before submitting, addacollaboration statement
    as described in the syllabus
    as a comment in the drop box. Submissions withoutacollaborationstatement may be assigned azero grade.



program2_1.py

Write a program that converts miles to kilometers. Look up the conversion factor and assign it to a
properly named constant
(see page 80). The program should permit the user to enter the miles perhaps with decimals,
from the keyboard.
Print the result
showing both distances
using an
f_string
with the kilometers accurate to
three decimal places.
Required Output
Enter the miles 12.75
12.75 miles is 20.519 kilometers



program2_2.py

Write a program that prompts the user to enter both the
numerator
and
denominatorof an
improper fraction.
Review the Python math operators on
page 54
anduse an f_string
to express the improper fraction as
a mixed number.
Example Output
Enter the numerator 34
Enter the denominator 7
As a mixed number that is 4 and 6/7



program2_3.py

A taxable item is available in multiple quantities. Write a program that prompts the user for the
unit price
of the item and the
number
being purchased. The sales tax rate is 7%. Store that toproperly named constant
as a decimal. Calculate and print the subtotal, the sales tax, and the total amount due. Display
commas
for numbers of 1,000 or more. Note the
apostrophe
in
item'sin the Example Output below. Your prompt should do that, too.
Example Output
Enter the item's unit price 749.99
Enter the quantity 2
The subtotal is $1,499.98
Sales tax is $105.00
Total due is $1,604.98


Feb 21, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here