Question
I am having trouble with my homework assignments. Using the Python editor and write code is all new to me. I'm taking an online class
I am having trouble with my homework assignments. Using the Python editor and write code is all new to me. I'm taking an online class so its hard to almost self teach. Any help with this assignment would be of much help!
CSC 1570, Chapter 3 Programming Exercise IMPORTANT INSTRUCTIONS: Make sure there is no syntax errors and your program produces the correct results. DO NOT forget to add the pseudocode in Python Docstring format with the general description of problem, programmer, date, and other useful information and the line comments. REFER and FOLLOW the instructions given in Python Docstring and Python Sample Programs at Course Information Documents folder. Part 1: Magic Dates The date June 10, 1960, is special because when it is written in the following format, the month times the day equals the year: 6/10/60 Design a program that asks the user to enter a month (in numeric form), a day, and a two-digit year. The program should then determine whether the month times the day equals the year. If so, it should display a message saying the date is magic. Otherwise, it should display a message saying the date is not magic. Produce the error message if the month is less than 0 or greater than 12, the day is less than 0 or greater than 31, and the year is less than 0 or greater than 99. See the sample output(s). Use the IDLE editor to write your code and save it as magic_dates_yourlastname.py. Sample Output(s) Error input(s) Enter the month in numeric form: 13 Enter the day of the month: 1 Enter the year in two digit format: 65 Error: invalid month input Enter the month in numeric form: 12 Enter the day of the month: 32 Enter the year in two digit format: 65 Error: invalid day input Enter the month in numeric form: 12 Enter the day of the month: 2 Enter the year in two digit format: 101 Error: invalid year input Non-Magic date case Enter the month in numeric form: 6 Enter the day of the month: 6 Enter the year in two digit format: 68 The date is 6 / 6 / 68 This is not a magic date. Magic date case Enter the month in numeric form: 6 Enter the day of the month: 10 Enter the year in two digit format: 60 The date is 6 / 10 / 60 This is a magic date. Part 2: Software Sales A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 1019 10% 2049 20% 5099 30% 100 or more 40% Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount and the discount rate and the total amount of the purchase after the discount. Should use format to display up to two decimal points. Use the IDLE editor to write your code and save it as shipping_charages_yourlastname.py. Sample Output(s) Run #1 Enter the number of packages purchased: 50 Discount Rate: 30% Discount Amount: $1,485.00 Total Amount: $3,465.00 Run #2 Enter the number of packages purchased: 5 Discount Rate: 0% Discount Amount: $0.00 Total Amount: $495.00 Part 3: Turtle Graphics Drawings Use the turtle graphics library to write programs that reproduce each of the designs shown in Use these constants: RADIUS = 100 STARTING_POINT_X = -250 STARTING_POINT_Y = 0 HSHIFT = 125 VSHIFT = 100 Use the IDLE editor to write your code and save it as olympic_flag_yourlastname.py. Submission Zip your Python files and submit it in the drop box by making one pos
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started