Java Programming 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} $



Student: Mr. C, where is the Information in English?
Teacher Good question.
Let us do a little critical thinking.
Go ahead and write it. 😊


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 Java: 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 Java: Desktop Application

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

(1.) Please use appropriate name 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 Blackboard course.

Minimum Requirements for Advanced Java: Desktop Application

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

(1.) Please use appropriate name 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.

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 Blackboard course.



Main

Students Projects

These are some of the nice projects done by my students.
Some of them are Midterm Projects while some are Final Projects.
Because of FERPA (Federal Educational Rights and Privacy Act) laws, only the first names of my students are written.
No worries, these files are safe to run. 😊

Beginning Java: Functional Programming Approach

Console Applications

Directions to Run:
Console Application 1

Console Application 2

Console Application 3

Console Application 4

Console Application 5

Console Application 6

Console Application 7



(1.) Alabama Power: Standard Rate Plan - Family Dwelling : Winter (Oct - May) by Elisa
As at today: 12/09/2020, the verifiable website for this application is: Residential Pricing - Standard Family Dwelling Rate | Alabama Power
(https://www.alabamapower.com/residential/residential-pricing-and-rates/standard-family-dwelling-rate.html)

The calculator is based on old rates:

                    Summer (June-Sept)
                    Base Charge: $14.50 
                    First 1000 kWH: $0.100511
                    Over 1000 kWH: $0.10304
                
Alabama Power increased their rates
(https://www.al.com/news/2020/12/alabama-power-rates-to-climb-2-percent-next-year.html)

Beginning Java: Functional Programming Approach

Desktop Applications

(1.) Georgia Public Service Commission: Winter Rate (October - May) by Rachel
As at today: 04/20/2021, the verifiable website for this application is: Georgia Power Bill Calculator: Winter Rate (October - May)
(http://www.psc.state.ga.us/calc/electric/GPcalc.asp)
Georgia Power Rates
Georgia Power Winter

(2.) Alabama Power: Standard Rate Plan — Family Dwelling : Monthly Rate Schedule : Winter (Oct - May) by Serina
As at today: 12/24/2021, the verifiable website for this application is: Standard Rate Plan — Family Dwelling | Alabama Power
(https://www.alabamapower.com/residential/residential-pricing-and-rate-plans/standard-rate-plan-family-dwelling.html)
Alabama Power Rates

(3.) Alabama Power: Standard Rate Plan - Family Dwelling : Summer (June - Sept) by Cody
As at today: 03/21/2021, the verifiable website for this application is: Residential Pricing - Standard Family Dwelling Rate | Alabama Power
(https://www.alabamapower.com/residential/residential-pricing-and-rates/standard-family-dwelling-rate.html)
The calculator is based on old rates:

                    Winter (Oct-May)
                    Base Charge: $14.50 
                    First 750 kWH: $0.100511
                    Over 750 kWH: $0.088511
                
Alabama Power increased their rates
(https://www.al.com/news/2020/12/alabama-power-rates-to-climb-2-percent-next-year.html)

Advanced Java: Object-oriented Programming Approach

Desktop Applications

(1.) Alabama Power: Standard Rate Plan - Family Dwelling : Summer (June - Sept.) by Linda
As at today: 03/21/2021, the verifiable website for this application is: Residential Pricing - Standard Family Dwelling Rate | Alabama Power
(https://www.alabamapower.com/residential/residential-pricing-and-rates/standard-family-dwelling-rate.html)
The calculator is based on old rates:

                        Winter (Oct-May)
                        Base Charge: $14.50 
                        First 750 kWH: $0.100511
                        Over 750 kWH: $0.088511
                    
Alabama Power increased their rates
(https://www.al.com/news/2020/12/alabama-power-rates-to-climb-2-percent-next-year.html)

(2.) $2020-2021$ Federal Tax: Single Filing Option by Edward
As at today: 05/10/2021, the verifiable website for this application is: IRS.com (This is NOT IRS.gov)
(https://www.irs.com/articles/2020-federal-tax-rates-brackets-standard-deductions/)

(3.) Tuition Rates - Tuscarawas Central Catholic Junior/Senior High School by Linda
As at today: 05/10/2021, the verifiable website for this application is: Tuscarawas Central Catholic JSHS - New Philadelphia, OH
(https://www.tccsaints.com/tuition-rates)
Tuscarawas Central Catholic JSHS



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


Main

Resources

Java Tutorials by Oracle (Free)

Java Tutorial: W3schools.com (Free)

Java Documentation: Oracle (Free)

AP Computer Science Java Quick Reference

Java SE Developer Community

LinkedIn Learning (Kent State University)

O'Reilly Online Learning
For Kent State University students, Select your Institution > Choose “Not Listed? Click here.”
Enter your Kent State University email address and click Let’s Go


Tutorials, Exercises, and Solutions from W3Resource (Free)

Java Programming Exercises and Solutions from W3Resource (Free)

SoloLearn (Free)

Java for Programmers: Udacity (Free)

Wikibooks: Java Programming (Free)

Stack Overflow: Question and Answer Forum for Computer Science

Lynda.com from LinkedIn Learning (Start for Free. Then, not free)

Codecademy (Start for Free. Then, not free)



Main

References

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

Farrell, J. (2019). Java Programming. Cengage Learning.

Java Documentation. (n.d.). Oracle Help Center. https://docs.oracle.com/en/java/ ‌

Java Notes for Professionals Book. (n.d.). Books.Goalkicker.Com. Retrieved June 30, 2020, from https://books.goalkicker.com/JavaBook/

AP Computer Science A Past Exam Questions. (2019, May 4). AP Central. https://apcentral.collegeboard.org/courses/ap-computer-science-a/exam/past-exam-questions



Main