In this project you will demonstrate your knowledge of decision making blocks such as if statements.
Building on everything you have learned so far in this class, the objectives of this project are to demonstrate understanding of the following:
Given the knowledge that there are 60 seconds in a minute, 60 minutes in an hour, and 24 hours in a day, you will prompt the user for the for the number of hours, minutes, and seconds as integer inputs, and your program will output the converted time so that the larger units are as large as possible. The possible output units are days, hours, minutes, and seconds.
Make a note of the following:
Refer to the sample runs below for how to format your output. Note that the time values are indented 4 spaces.
Examples of a sample run:
Welcome to the Time Conversion Calculator!
Enter a number of hours: 1
Enter a number of minutes: 2
Enter a number of seconds: 3
Your time conversion is:
1 hour
2 minutes
3 seconds
Goodbye!
Welcome to the Time Conversion Calculator!
Enter a number of hours: 0
Enter a number of minutes: 0
Enter a number of seconds: 0
Your time conversion is:
No time units to report.
Goodbye!
Welcome to the Time Conversion Calculator!
Enter a number of hours: 30
Enter a number of minutes: 20
Enter a number of seconds: 1000
Your time conversion is:
1 day
6 hours
36 minutes
40 seconds
Goodbye!
This project has three hidden test cases, that will not give you any type of feedback. If you are not able to pass the hidden test cases, make sure that your program is set up to use any input. It is likely you are hard-coding some part of your program if you are not able to pass the hidden test cases. Do not get frustrated. Instead, be sure to ask questions in class, in the helproom, or using Piazza.
Each project for this class must be your own individual effort. While we encourage discussion and collaboration for readings, activities, and labs, you are not allowed to work as a team for this, or any, project. If you discuss the project with other students, make sure you are just discussing the projects in general, and NOT sharing code. Verbally discussing a project with other students is encouraged, but the discussion should not be turned into an implementation. It is considered academic dishonestly if you share a project solution with another student. Simply showing your solution to another student almost guarantees a zero score as past experience shows that a student who asks to “look at” your solution will copy parts of it or pass it along to someone else.
Getting a solution from the internet through sites such as Chegg, or using code that was posted on reddit, is a guaranteed way to be flagged for plagiarism. We use an algorithm similar to turnitin for writing which compares student coding solutions to detect plagiarism. Many beginning programmers imagine that there are only one or two ways to solve a programming problem, so they believe they won’t get caught if they use the same solution as someone else. This is the same as believing that plagiarizing a short story but changing the character’s names will not be detected. Do not take the risk.
The penalty for plagiarism on a project is a score of 0 on the project, a further 5% is deducted from your final grade, and an Academic Dishonesty Report will be filed. Repeat offenses will result in a 0 as your final grade in the class. Instead of searching for questionable help on the internet for your problems, we encourage you to post your questions to Piazza.
While you are able to develop your Python code in your zyBook, you will benefit from using Spyder, which is the IDE (Integrated Development Environment) that we will use in this class. Spyder has a great debugging tool and is available in all of the campus labs. You can install Spyder on your personal machines and we have provided instructions on how to do so in D2L. After you finish your development in Spyder, you will submit your project in your zyBook.
For help with your projects, you can attend the help rooms, go to office hours, post on Piazza, and ask questions during class.
As a reminder, there are only 4 projects, the projects make up 15% of your final grade, you are not allowed to collaborate on projects, you are not allowed to drop a project, and late work will not be accepted.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
23 | 24 | 25 | 26 | 27 | 28 | 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 | 1 | 2 | 3 | 4 | 5 |
Get Free Quote!
403 Experts Online