Wednesday, 28 October 2015
PRG 421 Version 10 ( ORIGINAL WORK )
PRG 421 Version 10 ( ORIGINAL WORK )
PRG/421 V10
PRG-421 Java Programming II
WEEK 1
|
Write a 200- to 300-word short-answer response for the following:
|
Write a 200- to 300-word short-answer response for the following:
|
Write a 200- to 300-word short-answer response for the following:
|
A city is sponsoring a run to support local charities and would like an application to track the pledges. The result will be a database that holds data on individuals, total pledges obtained, and the charity for which the donation is designated.
Design and implement a GUI-based program to accept a participant’s name, the amount pledged, and the designated charity’s name. The program will store these data for later retrieval. The project will be completed in several stages, with the first deliverable due in Week Two.
|
Design, implement, test, and debug a GUI-based version of a “Hello, World!” program.
Create a JFrame that includes a JLabel that reads “Hello, World!” Use a layout manager of your choice.
Include an Exit button to close the program.
Submit assignment per the APA template that will be provided, to include cover page, description of code, flowchart or pseudocode, code with header data, and finally a screen shot of your code executing on your computer. Please submit your assignment as YourLastNameWk1.doc and YourLastNameWk1.java. Ensure that your code executes prior to submittal.
|
WEEK 2
|
Write a 200- to 300-word short-answer response for the following:
|
Write a 200- to 300-word short-answer response for the following:
|
Develop a project plan for the fundraiser program due in Week Five.
Submit the project plan to your facilitator.
|
For this assignment, you will choose from the following options:
Read the instructions in the University of Phoenix Material: GUI Components Program located on the student website and select one option to complete the assignment.
Submit assignment per the APA template that will be provided, to include cover page, description of code, flowchart or pseudocode, code with header data, and finally a screen shot of your code executing on your computer. Please submit your assignment as YourLastNameWk2.doc and YourLastNameWk2.java. Ensure that your code executes prior to submittal.
|
WEEK 3
|
Write a 200- to 300-word short-answer response for the following:
|
Write a 200- to 300-word short-answer response for the following:
|
Write a 200- to 300-word short-answer response for the following:
|
Create a GUI-based program to accept name of donor, name of charity, and amount of pledge from the user.
Display a list of entries in a JTextArea or JTable.
Submit the .java source file for this program.
|
This is a two-part assignment.
Part 1
Design, implement, test, and debug a program with a JFrame that allows the user to enter a series of contacts’ names, ages, e-mail addresses, and cell phone numbers, and creates a file from the entered data. Validate the age entry to ensure that it is numeric and between 0 and 120. Include information for three to five contacts.
Part 2
Design, implement, test, and debug a program that reads the file you created by the list in Part 1 and displays the records in a JFrame. You may either display all entries in the list at once or display them one at a time; the user interface is up to you. Protect against not being able to open the file.
Submit assignment per the APA template that will be provided, to include cover page, description of code, flowchart or pseudocode, code with header data, and finally a screen shot of your code executing on your computer. Please submit your assignment as YourLastNameWk3.doc and YourLastNameWk3.java. Ensure that your code executes prior to submittal.
|
WEEK 4
|
Write a 200- to 300-word short-answer response for the following:
|
Write a 200- to 300-word short-answer response for the following:
|
Write an applet that includes a pie chart.
Use a news article with statistics that are good candidates for a pie chart: for example, political candidate preferences; percentages of those for, against, or undecided about a ballot measure; and so forth.
Cite the source for your input statistics.
Submit the applet along with an HTML file to launch it. Submit assignment per the APA template that will be provided, to include cover page, description of code, flowchart or pseudocode, code with header data, and finally a screen shot of your code executing on your computer. Please submit your assignment as YourLastNameWk4.doc, YourLastNameWk4.html andYourLastNameWk4.java. Ensure that your code executes prior to submittal.
|
WEEK 5
|
Conduct an Internet search for JavaDB tutorial. You may choose to use either a text-based or a video tutorial. Follow the steps in the tutorial to learn how to use JavaDB.
Modify one of the demo programs with the JavaDB download to create and manipulate your own database.
Write a 200- to 300-word description of the challenges you encountered.
Post the source code of your program.
|
Write a 200- to 300-word short-answer response for the following:
|
Write a program to create a database from the data in the sequential file you created in Week Four.
Modify the GUI to connect to this database and add entries to it and read entries from it. Entries read from the database should be displayed in the JTextArea or JTable.
Test and debug this final program.
Submit the .java source file or files.
|
Sunday, 25 October 2015
CIS/115 iLab 5 of 7
CIS/115 iLab 5 of 7
Scenario:
Your algorithm will keep track of a customer’s purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a FOR loop on this lab is not allowed. Let’s keep the rules simple.
1) Accept the dollar value of each item purchased from the user until the user is finished.
2) When purchases are complete, enter a sentinel value of -1 (indicating the user has finished).
3) If more the item purchased is 50.00 or more, give your customer a 10% discount on their item purchased.
4) Display all of the purchases to the customer with the original price and the discount price.
Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing.
Lab Steps:
Preparation:
1. Complete the IPO Model in a Word document.
2. Complete the pseudocode in the same Word document as the IPO.
3. Complete the flowchart in Visual Logic and print screen the flowchart in the same Word document as the IPO and pseudocode.
4. Complete the execution/run of the flowchart and print screen your outputs in the same Word document as the IPO, pseudocode and flowchart.
CIS/115 iLab 4 of 7
You have been asked to design a program that will allow a teacher to calculate the percentage and the final grade for students in a class. The program will prompt the teacher to enter the student’s first and last name and the number of points the student received. The program shall only accept scores between 0 and 1,000 points (including 0 and 1,000), with 1,000 points being the maximum number of points. If the input value is within the valid range, the program will display a "good score" message; otherwise, the program will display an error message and then terminate the program. The program shall then calculate the score percentage, and then determine the grade based on the percentage using the following grade criteria:
| Score Percent Range | Grade |
| 90-100 | A |
| 80-89 | B |
| 70-79 | C |
| 60-69 | D |
| 0-59 | F |
The program will then display the student’s first name, last name, number of points, calculated percentage, and the final grade.
The program shall have an initial prompt informing the user of the program's purpose, and a program termination message.
CIS/115 iLab 4 of 7
You have been asked to design a program that will allow a teacher to calculate the percentage and the final grade for students in a class. The program will prompt the teacher to enter the student’s first and last name and the number of points the student received. The program shall only accept scores between 0 and 1,000 points (including 0 and 1,000), with 1,000 points being the maximum number of points. If the input value is within the valid range, the program will display a "good score" message; otherwise, the program will display an error message and then terminate the program. The program shall then calculate the score percentage, and then determine the grade based on the percentage using the following grade criteria:
| Score Percent Range | Grade |
| 90-100 | A |
| 80-89 | B |
| 70-79 | C |
| 60-69 | D |
| 0-59 | F |
The program will then display the student’s first name, last name, number of points, calculated percentage, and the final grade.
The program shall have an initial prompt informing the user of the program's purpose, and a program termination message.
CIS/115 iLab 6 of 7 (PERFECT SCORE)
CIS/115 iLab 6 of 7
SCENARIO
Your algorithm will keep track of a customer’s purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a for-loop on this lab is not allowed. Let’s keep the rules simple.
Accept the dollar value of each item purchased from the user until the user is finished.
When purchases are complete, enter a sentinel value of -1 (Make certain you do not include the -1 sentinel value in your total).
Keep track of the total dollar amount of all fireworks purchased.
Keep a tally of the number of items purchased.
If more than 20 items were purchased, give your customer a 10% discount on the total purchases.
Once purchases are complete, display the total number of items purchased, the average price of the items, the total of all fireworks purchased, any discount if applicable, and the total of all fireworks purchased minus the discount.
Be sure to THINK about the logic and design first (IPO chart and/or pseudocode), then code the Visual Logic command line processing.
Deliverables
IPO Chart
Pseudocode
Flowchart
Output screenshots
CIS/115 iLab 2 of 7
CIS/115 iLab 2 of 7
Your goal is to solve the following simple programming exercise. You have been contracted by a local antique store to design an algorithm determining the total purchases and sales tax. According to the store owner, the user will need to see the subtotal, the sales tax amount, and the total purchase amount. A customer is purchasing four items from the antique store. Design an algorithm where the user will enter the price of each of the four items. The algorithm will determine the subtotal, the sales tax, and the total purchase amount. Assume the sales tax is 7%.
Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing. Display all output using currency formatting (built-in Visual Logic function).
Advanced (optional): Use a constant for the 7% sales tax.
Deliverables
Total Purchases IPO Model
Total Purchases Pseudocode
Total Purchases Flowchart
Total Purchases Output Sample
Subscribe to:
Posts (Atom)