Create a new file name condition_quiz.py. Add a comment with your name and the date. Prompt the...

60.1K

Verified Solution

Question

Programming

  1. Create a new file name condition_quiz.py.

  2. Add a comment with your name and the date.

  3. Prompt the user to enter the cost. Convert the input to afloat.

  4. Prompt the user for a status. Convert the status to aninteger

  5. Compute the special_fee based on the status.

If the status is 0, the special_fee will be 0.03 of thecost.

Else if the status is 1, the special_fee will be 0.04 of thecost.

Else if the status is 2, the special_fee will be 0.06 of thecost.

Else if the status is 3 or 4, the special_fee, the special_feewill be 0.07 of the cost.

Otherwise, the special_fee will be 0.10 of the cost.

  1. Compute the total_cost as the cost plus the special_fee. Printout the total_cost with two decimal places of precision.

Answer & Explanation Solved by verified expert
4.0 Ratings (629 Votes)
SolutionSince there is no name specified so the comment in the code hasbeen left emptyPython 3 Code Name Date 8 October 2020 Prompt    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students