General information/requirements/grading rules
Adhere to the naming conventions discussed in class for variable names, program name and function names
Use meaningful names for variables
If there are two words in the variable use first word lowercase and first letter of second wordupper case i.e., firstName or underscore between 2 words i.e first_name
Include appropriate comments in the code
Output should be displayed exactly as mentioned against each problem
Indent the lines of code appropriately
1.numeric.py (20 Points)
Write a program that prompts the User to enter a number between the range of 1 through 10. The program should display the Roman Numeral version of that number. If the number is outside the the range of 1 through 10, the program should display the error message. The output should display the data in table as shown below:
Hints:
Prompt user to enter a number.
Use a ‘if /elif’ to verify if the number entered is within the range and display output accordingly.
If the number is out of range, display the following error message : ”Error: Invalid Number’.
Output should look like:
Number Roman Numeral
1 I
2 II
3 III
4 IV
5 V
6 VI
7 VII
8 VIII
9 IX
10 X
dollar.py (30 Points)
Write a program that finds number of Dollars, quarters, dimes, nickels, pennies given an amount.
Hints:
Prompt user to enter an amount
Find number of one dollars (remember to convert total amounts to pennies)
Find number of quarters in the remaining amount
Find number of dimes in the remaining amount
Find number of nickels in the remaining amount
Find number of pennies in the remaining amount
Display results
Expected Output:
Your amount 10.63 consists of
10 dollars
2 quarters
1 dimes
0 nickels
3 pennies
3. dates.py (20 Points)
Design a program that asks the user to enter a month (in numeric form), a day, and a 2 digit year. The program should then determine whether the month * day is equal to the year. If so, it should display a message saying the date is magic. Otherwise, it should display a message saying the date not magic.
Hint:
Prompt user to the month, day, and year in two digit format
Verify the month input if it is between 1 and 12. Display error message otherwise.
Verify the day input if it is between 1 and 31. Display error message otherwise.
Verify the year input if it is between 0 and 99. Display error message otherwise.
If the inputs are valid, evaluate the magic date.
Expected output:
If user enters a month as 7, day as 3, year as 21, the it should display as follows:
The date is 7 / 3 / 21This is a magic date.
4. leapYear.py (30)
Write a program that asks the User to enter a year. The program should display the number of days in February that year. Use the following criteria to identify leap years:
1. Determine whether the year is divisible by 100. If it is, then it is a leap year and if only if it is also divisible by 400. For example,
2000 is a leap year but 2100 is not.
2. If the year is not divisible by 100, then it is a leap year and if only if it is also divisible by 4. For example,
2008 is a leap year but 2009 is not.
Hints:
Prompt user to enter a year
Use nested if to verify if the year is divisible by both 100 & 400
determine if the leap year is ‘True or False’
Use Else to o verify if the year is divisible by 4 (if year %4 == 0: )
determine if the leap year is ‘True or False’
Now use IF and Else to print if the year entered is a leap year or not.
Output
If entered 2008, the output should display: That is a leap year. February has 29 days.
If entered 2009, the output should display: That is not a leap year. February has 28 days.
Why Work with Us
Top Quality and Well-Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Free Unlimited Revisions
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.
Prompt Delivery and 100% Money-Back-Guarantee
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.