Python Programming and Scripting Language Projects



Objectives

Students will:
(1.)

May you please:
(1.) Review these examples.
(2.) Verify the calculations.
(3.) Verify the accuracy of the calculators.

English Language → Mathematics → Computer Science for the 2018 Summer Period (June - September) Residential Power Rates by Georgia Power

Information in English: Plain Information

                Basic Service:          $10.00 
                Tier                    Usage                   Cost per KWh
                1st tier                up to 650KWh            $0.056582
                2nd tier                next 350KWh             $0.093983
                3rd tier                over 1000KWh            $0.097273 
            

Information in Mathematics: Piecewise Function

$ c(p) = \begin{cases} 0.056582p + 10; & \quad 0 \leq p \leq 650 \\[3ex] 0.093983p - 14.31065; & \quad 650 \lt p \leq 1000 \\[3ex] 0.097273p - 17.60065; & \quad p \gt 1000 \end{cases} $



Information in Computer Science: Power Consumption and Monthly Bill Statement: Summer Bill Calculator

Please test the calculator and see the output.
Complete all fields. Then, click "Bill Statement".

  • Power Consumption

KWh

KWh

in


  • Monthly Bill Statement


English Language → Mathematics → Computer Science for the 2018 Winter Period (October - May) Residential Power Rates by Georgia Power

Information in Mathematics: Piecewise Function

$ c(p) = \begin{cases} 0.056582p + 10; & \quad 0 \leq p \leq 650 \\[3ex] 0.048533p + 15.23185; & \quad 650 \lt p \leq 1000 \\[3ex] 0.047641p + 16.12385; & \quad p \gt 1000 \end{cases} $



Information in Computer Science: Power Consumption and Monthly Bill Statement: Winter Bill Calculator

Please test the calculator and see the output.
Complete all fields. Then, click "Bill Statement".

  • Power Consumption

KWh

KWh

in


  • Monthly Bill Statement


Main

Project Requirements

Minimum Requirements for Beginning Python: Console Application

May you please review these requirements?
These are the minimum requirements. Please be creative.

(1.) Please use appropriate naming for your project application.
The application should display at least the same output of my calculator.
That implies that you should test my calculator to see the output.
Your application may include more information.

(2.) The application should be a console application.

(3.) The Input/Output feature should be used.

Error Handling
(4.) Alert the user/Display an appropriate error message to the user, if the Final Reading is less than the Initial Reading.

(5.) Alert the user/Display an appropriate error message to the user, if the Initial Reading is negative.

(6.) Alert the user/Display appropriate error message to the user, if the Final Reading is negative.

(7.) Alert the user/Display appropriate error message to the user, if the Tax is negative.

(8.) Use only tax in percent. Do not worry about tax in decimal.

(9.) Make sure your executable file runs by itself outside the project folder.
If it does run, include all these: (documentation of all your Math work and the .exe file) in OneDrive, create a shareable link, and post the link in the Midterm Project Drafts forum of the course on Blackboard or send to me via email.
You may also upload them directly if you prefer.
I shall review and provide feedback.
If your submission works well, I shall ask you to submit the Project folder. The Project folder is the folder that is created when you create a new project.
When you submit it, I shall review and provide feedback.

If it does not run, then you need to fix it.
If you cannot fix it and you have reviewed the resources, please attend the Office Hours/Live Sessions so I can help you.

(10.) When you are done (everything works well), please zip the entire project: (documentation of the Math, executable file that runs by itself outside the Project folder, and the Project folder) into one folder; and submit the zipped folder (.zip only) in the actual Midterm Project forum of the Canvas course.

Minimum Requirements for Beginning Python: Desktop Application

May you please review these requirements?
These are the minimum requirements. Please be creative.

(1.) Please use appropriate naming for your project application.
The application should display at least the same output of my calculator.
That implies that you should test my calculator to see the output.
Your application may include more information.

(2.) The application should be a desktop application.

(3.) Set the MinimumBox property of the form to True
We want to accommodate users with laptop/desktop smaller screen sizes too.
They should have the ability to adjust your application to fit their screen sizes.

(4.) The Input/Output feature should be used.

Error Handling
(5.) Alert the user/Display an appropriate error message to the user, if the Final Reading is less than the Initial Reading.

(6.) Alert the user/Display an appropriate error message to the user, if the Initial Reading is negative.

(7.) Alert the user/Display appropriate error message to the user, if the Final Reading is negative.

(8.) Alert the user/Display appropriate error message to the user, if the Tax is negative.

(9.) Use only tax in percent. Do not worry about tax in decimal.

(10.) Make sure your executable file runs by itself outside the project folder
If it does run, include all these: (documentation of all your Math work and the .exe file) in OneDrive, create a shareable link, and post the link in the Midterm Project Drafts forum of the course on Blackboard or send to me via email.
You may also upload them directly if you prefer.
I shall review and provide feedback.
If your submission works well, I shall ask you to submit the Project folder. The Project folder is the folder that is created when you create a new project.
When you submit it, I shall review and provide feedback.

If it does not run, then you need to fix it.
If you cannot fix it and you have reviewed the resources, please attend the Office Hours/Live Sessions so I can help you.

When you are done (everything works well), please zip the entire project: (documentation of the Math, executable file that runs by itself outside the Project folder, and the Project folder) into one folder; and submit the zipped folder (.zip only) in the actual Midterm Project forum of the Canvas course.

Minimum Requirements for Advanced Python: Console Application

May you please review these requirements?
These are the minimum requirements. Please be creative.

(1.) Please use appropriate naming for your project application.
The application should display at least the same output of my calculator.
That implies that you should test my calculator to see the output.
Your application may include more information on the output.

(2.) The application should be a console application.

(3.) Input/Output feature should be used.

(4.) Class should be used.

(5.) Constructor(s) should be used.

(6.) Property/Properties should be used.
The class members: Initial Reading and the Final Reading should be private.

(7.) Method(s) should be used.

Error Handling
(8.) Alert the user/Display an appropriate error message to the user, if the Final Reading is less than the Initial Reading.

(9.) Alert the user/Display an appropriate error message to the user, if the Initial Reading is negative.

(10.) Alert the user/Display appropriate error message to the user, if the Final Reading is negative.

(11.) Alert the user/Display appropriate error message to the user, if the Tax is negative.

(12.) Use only tax in percent. Do not worry about tax in decimal.

(13.) Make sure your executable file runs by itself outside the project folder
If it does run, include all these: (documentation of all your Math work and the .exe file) in OneDrive, create a shareable link, and post the link in the Midterm Project Drafts forum of the course on Blackboard or send to me via email.
You may also upload them directly if you prefer.
I shall review and provide feedback.
If your submission works well, I shall ask you to submit the Project folder. The Project folder is the folder that is created when you create a new project.
When you submit it, I shall review and provide feedback.

If it does not run, then you need to fix it.
If you cannot fix it and you have reviewed the resources, please attend the Office Hours/Live Sessions so I can help you.

(14.) When you are done (everything works well), please zip the entire project: (documentation of the Math, executable file that runs by itself outside the Project folder, and the Project folder) into one folder; and submit the zipped folder (.zip only) in the actual Midterm Project forum of the Canvas course.

Minimum Requirements for Advanced Python: Desktop Application

May you please review these requirements?
These are the minimum requirements. Please be creative.

(1.) Please use appropriate naming for your project application.
The application should display at least the same output of my calculator.
That implies that you should test my calculator to see the output.
Your application may include more information on the output.

(2.) The application should be a desktop application.

(3.) Set the MinimumBox property of the form to True
We want to accommodate users with laptop/desktop smaller screen sizes too.
They should have the ability to adjust your application to fit their screen sizes.

(4.) Input/Output feature should be used.

(5.) Class should be used.

(6.) Constructor(s) should be used.

(7.) Property/Properties should be used.
The class members: Initial Reading and the Final Reading should be private.

(8.) Method(s) should be used.

Error Handling
(9.) Alert the user/Display an appropriate error message to the user, if the Final Reading is less than the Initial Reading.

(10.) Alert the user/Display an appropriate error message to the user, if the Initial Reading is negative.

(11.) Alert the user/Display appropriate error message to the user, if the Final Reading is negative.

(12.) Alert the user/Display appropriate error message to the user, if the Tax is negative.

For the requirements for Numbers (9.), (10.), and (11.)
Because the power consumption values are only nonnegative integers:
Alternatively; you may use the NumericUpDown Control
(www.docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/numericupdown-control-windows-forms?view=netframeworkdesktop-4.8)
The control will ensure that the user enters only nonnegative values (zero and positive values).

(13.) Use only tax in percent. Do not worry about tax in decimal.

(14.) Make sure your executable file runs by itself outside the project folder
If it does run, include all these: (documentation of all your Math work and the .exe file) in OneDrive, create a shareable link, and post the link in the Midterm Project Drafts forum of the course on Blackboard or send to me via email.
You may also upload them directly if you prefer.
I shall review and provide feedback.
If your submission works well, I shall ask you to submit the Project folder. The Project folder is the folder that is created when you create a new project.
When you submit it, I shall review and provide feedback.

If it does not run, then you need to fix it.
If you cannot fix it and you have reviewed the resources, please attend the Office Hours/Live Sessions so I can help you.

(15.) When you are done (everything works well), please zip the entire project: (documentation of the Math, executable file that runs by itself outside the Project folder, and the Project folder) into one folder; and submit the zipped folder (.zip only) in the actual Midterm Project forum of the Canvas course.



Main

Students Projects

Please Note: You should do at least one filing option (one or more).

First Sample: George: Federal Income Tax: 2022: Single Filing Option
The Math part is not shown here.
However, the Computer Science (Programming) part done by the same student is shown.
The program is a Python file. Please see the instructions regarding how to run it.


Federal Income Tax: 2022: Single Fling Option

Run the Python Program: 1st Approach (Strongly Preferred/Highly Recommended Approach)
(1.) Copy the code from the text file below.
I deleted his last name in the comment in the program due to FERPA laws.



(2.) Visit the Google Colab website: https://colab.research.google.com/
(3.) Log into your Google account.
(4.) Click the Insert menu tab
(5.) Click the Code cell option
(6.) Paste the code you copied.
(7.) Run the program by clicking the Play button.

Run the Python Program: 2nd Approach
(1.) Download the Python file: George-FederalTax2022 on your computer.
No worries, it is a safe file.
(2.) Visit the website: https://www.online-python.com/
(3.) Click the Open File from Disk menu tab
(4.) Open the file from your Download folder.
(5.) Run the program.

The teacher should guide each student to the successful completion of the project.
Let students know you are willing to help.


Main

Resources

The Python Tutorial: Python 3.11.2
O'Reilly Online Learning
For University ................... students, Select your Institution > Choose “Not Listed? Click here.”
Enter your ..................... school email address and click Let’s Go

Python Tutorial: W3Resource (Free)
Python Programming Exercises and Solutions from W3Resource (Free)
Python Tutorial: Tutlane (Free)
Python Tutorial: W3schools.com (Free)
The Python Community
Certified Associate in Python Programming: Certification Exam: ITExams (Free Past Questions and Answers But Requires Patience)
Python Notes for Professionals: Stack Overflow Documentation
The Python Standard Library
Programming Foundations with Python: Udacity (Free)
SOLOLEARN (Free)
Wikibooks: Non-Programmer's Tutorial for Python 3
Learn Regular Expressions: RegexOne
Online Regular Expressions Tester and Debugger: Regex 101
Stack Overflow: Question and Answer Forum for Computer Science
Open Education & Development Group (Free Course; Not Free Exam)
LinkedIn Learning: Online Training Courses & Skill Building (Start for Free. Then, not free)
Codecademy (Start for Free. Then, not free)
Tutorials, Exercises, and Solutions from W3Resource (Free)



Main

References

Chukwuemeka, S.D (2024, April 30). Samuel Chukwuemeka Tutorials: Math, Science, and Technology. Retrieved from https://conferencepresentations.appspot.com/

(2020). Goalkicker.Com. https://www.goalkicker.com/CSharpBook/PythonNotesForProfessionals.pdf



Main