Search results for 'dbm 502 week 3 individual assignment'
-
PRG/421 Week 4 Java 4.13 LAB: Grocery shopping list (LinkedList)
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 4 Java 4.13 LAB: Grocery shopping list (LinkedList)
Given a ListItem class, complete the main() using the built-in LinkedList type to create a linked list called shoppingList. The program should read items from input (ending with -1), adding each item to shoppingList, and output each item in shoppingList using the printNodeData() method.
Ex. If the input is
milk
bread
eggs
waffles
cereal
-1the output is
Learn More
milk
bread
eggs
waffles
cereal -
PRG/421 Week 4 Java 4.6 LAB: Zip code and population (generic types)
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 4 Java 4.6 LAB: Zip code and population (generic types)
Define a class StatePair with two generic types (Type1 and type2), a constructor mutators, accessors, and a printinfo() method. Three ArrayLists have been pre-filled with StatePair data in main():
• ArrayList<StatePairInteger, String>> zipCodeState: Contains ZIP code/state abbreviation pairs
• ArrayList<StatePair<string, String>> abbrevstate: Contains state abbreviation/state name pairs
• ArrayList<StatePair<string. Integer>> state Population Contains state name/population pairsComplete main() to use an input ZIP code to retrieve the correct state abbreviation from the ArrayList ZipCodeState. Then use the state abbreviation to retrieve the state name from the ArrayList abbrevState. Lastly, use the state name to retrieve the correct state name/population pair from the ArrayList state Population and output the pair.
Ex If the input is:
21044the output is:
Learn More
Maryland: 6079602 -
PRG/421 Week 4 Java 4.5 LAB: What order? (generic methods)
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 4 Java 4.5 LAB: What order? (generic methods)
Define a generic method called checkOrder() that checks if four items are in ascending, neither, or descending order. The method should return -1 if the items are in ascending order, 0 if the items are unordered, and 1 if the items are in descending order.
The program reads four items from input and outputs if the items are ordered. The items can be different types, including integers, Strings characters, or doublesEx. If the input is
bat hat mat sat
63.2 96.5 100.1 123.5the output is
Learn More
Order: -1
Order: -1 -
PRG/421 Week 5 Java 5.21 LAB: Sorting user IDs
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 5 Java 5.21 LAB: Sorting user IDs
Given a main() that reads user IDs (until -1), complete the quicksort() and partition() methods to sort the IDs in ascending order using the Quicksort algorithm, and output the sorted IDs one per line.
Ex. If the input is:
kaylasimms
julia
myron1994
kaylajones
-1the output is:
Learn More
julia
kaylajones
kaylasimms
myron1994 -
PRG/421 Week 5 Java 5.20 LAB: Descending selection sort with output during execution
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 5 Java 5.20 LAB: Descending selection sort with output during execution
Write a void method selectionSortDescendTrace() that takes an integer array, and sorts the array into descending order. The method should use nested loops and output the array after each iteration of the outer loop, thus outputting the array N-1 times (where N is the size). Complete the main() to read in a list of up to 10 positive integers (ending in -1) and then call the selectionSortDescendTrace() method.
If the input is:
20 10 30 40 -1then the output is:
Learn More
40 10 30 20
40 30 10 20
40 30 20 10 -
PRG/421 Week 5 Java 5.10 LAB: Number pattern
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 5 Java 5.10 LAB: Number pattern
Write a recursive method called printNumPattern() to output the following number pattern.
Given a positive integer as input (Ex: 12), subtract another positive integer (Ex: 3) continually until 0 or a negative value is reached, and then continually add the second integer until the first integer is again reached
Ex. If the input is:
12
3the output is:
Learn More
12 9 6 3 0 3 6 9 12 -
PRG/421 Week 5 Java 5.9 LAB: All permutations of names
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 5 Java 5.9 LAB: All permutations of names
Write a program that lists all ways people can line up for a photo (all permutations of a list of Strings). The program will read a list of one-word names (until -1), and use a recursive method to create and output all possible orderings of those names, one ordering per line.
When the input is:
Julia Lucas Mia -1then the output is (must match the below ordering):
Learn More
Julia Lucas Mia
Julia Mia Lucas
Lucas Julia Mia
Lucas Mia Julia
Mia Julia Lucas
Mia Lucas Julia -
ITSD424 Unit 4 Famous Favorite Subs
Regular Price: $10.00
Special Price $8.00
ITSD424 Unit 4 Famous Favorite Subs
Continuing from the last assignment..
Learn More
Assignment Details
Update the GUI application you have developed so far by adding a Java application to store the order just made by the customer in a file and present a file confirmation message using files and streams. You may accomplish this by outputting the sub order information to a file. Finally, you will read this file to display the order confirmation information.
• Output user-entered data to a destination file using the file class.
• Input data from a source file using the file class.
• Use FileWriter class and PrintWriter class to output an order confirmation.
Order Information
Beverage: xxxx
Sub bread: bbbbbbb
Sub type: ttttttttttttt
Sub size: ssssssss
Customer Information
Name: fffffff lllllll
Address: aaaaaaaaaa
City: ccccc
State: ss
Zip: zzzzz
Phone: nnn-nnn-nnnn
Input File: SubOrder.txt -
ITSD424 Unit 3 Famous Favorite Subs
Regular Price: $10.00
Special Price $8.00
ITSD424 Unit 3 Famous Favorite Subs
Continuing from the last assignment.
Assignment DetailsPart 1
Modify your Java application so that it is an easy-to-use GUI application where all of the interaction is performed on one screen. You will now take the individual components and translate them to a single interactive GUI interface using the following GUI components, container, the event listeners, and event subclasses to enhance your application as a more GUI-appropriate interface:
• GUI components
• Container
• Event listeners
• Event subclasses (at least 3–4 utilized)
o ActionEvent
o ItemEvent
o FocusEvent
o KeyEvent
o MouseEvent
o WindowEvent
• ActionPerformed MethodPart 2
Learn More
For this assignment, you are being asked to make sure you are exception handling by verifying that all of the customer-entered information is valid before the order is submitted to ensure order accuracy.
The customer information that the customer must now enter that should be validated includes the following:
• Entered username (must fill in a name)
• Entered at least one sub to order
• Selected all three attributes for sub (such as bread type, sub type, and sub size)
• Entered delivery address that includes street, city, state, and zip code
• Entered telephone number xxx-xxx-xxxx
In this assignment, you are adding in error handling to make sure the customer is filling in all of the required information.
To accomplish this task, you will be utilizing the following Java classes:
• Methods in the character class and StringBuilder class to validate and manipulate characters in a string
• Try.. Catch for the exception handling of all input fields -
ITSD424 Unit 2 Famous Favorite Subs
Regular Price: $10.00
Special Price $8.00
ITSD424 Unit 2 Famous Favorite Subs
Continuing from the last assignment.
Learn More
Use vector, wrapper classes, conversion, and collection data structures by writing and implementing Java code within your application that demonstrates each of these concepts.
Hint: These may be utilized in areas of storing items in the customer order so that you can allow the customer to order more than one sub or beverage.
Refer to the sample prototype for the various item lists you will use. Feel free to add more choices to each of these lists.