Search results for 'ECO Clothesline database from Chapter 4.'
-
Programming with Microsoft VB 2017 Diane Zak Chapter 10 Fence Solution
Regular Price: $7.00
Special Price $5.00
Programming with Microsoft VB 2017 Diane Zak Chapter 10 Fence Solution
In this exercise, you create an application that can be used to calculate the cost of installing a fence around a rectangular area. Create a Windows Forms application. Use the following names for the project and solution, respectively: Fence Project and Fence Solution. Save the application in the VB2017\Chap10 folder:
a. Use Windows to copy the Rectangular.vb file from the VB2017\Chap10 folder to the Fence Project folder. Then, use the Project menu to add the file to the project.
b. Modify the Rectangular class to use the Double (rather than Integer) variables.
c. Add a method named GetPerimeter to the Rectangle class. The method should calculate and return the perimeter of a rectangle. To calculate the perimeter, the method will need to add together the length and width measurements and then multiply the sum by 2.
d. Create the interface shown in Figure 10-41 and then code the application. Save the solution and then start and test the application.
Learn More -
PRG/421 Week 3 Java 3.21 LAB: Plant information (ArrayList)
Regular Price: $6.00
Special Price $3.00
PRG/421 Week 3 Java 3.21 LAB: Plant information (ArrayList)
Given a base Plant class and a derived Flower class, complete main() to create an ArrayList called myGarden. The ArrayList should be able to store objects that belong to the Plant class or the Flower class. Create a method called printArrayList(), that uses the printInfo() methods defined in the respective classes and prints each element in myGarden. The program should read plants or flowers from input (ending with -1), adding each Plant or Flower to the myGarden ArrayList, and output each element in myGarden using the printInfo() method.
Ex. If the input is:
plant Spirea 10
flower Hydrangea 30 false lilac
flower Rose 6 false white
plant Mint 4
-1the output is:
Learn More
Plant Information:
Plant name: Spirea
Cost: 10
Plant Information:
Plant name: Hydrengea
Cost: 30
Annual: false
Color of flowers: lilac
Plant Information:
Plant name: Rose
Cost: 6
Annual: false
Color of flowers: white
Plant Information:
Plant name: Mint
Cost: 4 -
PRG/421 Week 3 Java 3.5 LAB: Exception handling to detect input String vs. Integer
Regular Price: $6.00
Special Price $3.00
PRG/421 Week 3 Java 3.5 LAB: Exception handling to detect input String vs. Integer
The given program reads a list of single-word first names and ages (ending with -1), and outputs that list with the age incremented. The program fails and throws an exception if the second input on a line is a String rather than an Integer. At FIXME in the code, add a try/catch statement to catch java.util.InputMismatchException, and output 0 for the age.
Ex: If the input is:
Lee 18
Lua 21
Mary Beth 19
Stu 33
-1then the output is:
Learn More
Lee 19
Lua 22
Mary 0
Stu 34 -
IT 140 Higher/Lower Game Pseudocode Project One
Regular Price: $8.00
Special Price $5.00
IT 140 Higher/Lower Game Pseudocode Project One
Higher/Lower Game Description
Your friend Maria has come to you and said that she has been playing the higher/lower game with her three-year-old daughter Bella. Maria tells Bella that she is thinking of a number between 1 and 10, and then Bella tries to guess the number. When Bella guesses a number, Maria tells her whether the number she is thinking of is higher or lower or if Bella guessed it. The game continues until Bella guesses the right number. As much as Maria likes playing the game with Bella, Bella is very excited to play the game all the time. Maria thought it would be great if you could create a program that allows Bella to play the game as much as she wants.For this assignment, you will be designing pseudocode for a higher/lower game program. The higher/lower game program uses similar constructs to the game you will design and develop in Projects one and Two.
1) Review the Higher/Lower Game Sample Output for more detailed examples of this game. As you read, consider the following questions:
What are the different steps needed in this program? How can you break them down in a way that a computer can understand?
What information would you need from the user at each point (inputs)? What information would you output to the user at each point?
When might it be a good idea to use "IF" and "IF ELSE" statements?
When might it be a good idea to use loops?2) Create a pseudocode that logically outlines each step of the game program so that it meets the following functionality:
Prompts the user to input the lower bound and upper bound. Include input validation to ensure that the lower bound is less than the upper bound.
Generates a random number between the lower and upper bounds
Prompts the user to input a guess between the lower and upper bounds. Include input validation to ensure that the user only enters values between the lower and upper bound.
Prints an output statement based on the guessed number. Be sure to account for each of the following situations through the use of decision branching:
What should the computer output if the user guesses a number that is too low?
What should the computer output if the user guesses a number that is too high?
What should the computer output if the user guesses the right number?
Loops so that the game continues prompting the user for a new number until the user guesses the correct number.OPTIONAL: If you would like to practice turning your designs into code, check out the optional 9.1 LAB: Higher/Lower Game in zyBooks. This step is optional but will give you additional practice turning designs into code, which will support your work in moving from Project One to Project Two.
Learn More -
PRG/421 Week 4 Java 4.15 LAB: Ticketing service (Queue)
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 4 Java 4.15 LAB: Ticketing service (Queue)
Given main, complete the program to add people to a queue. The program should read in a list of people's names including "You" (ending with -1), adding each person to the peopleInQueue queue. Then, remove each person from the queue until "You" is at the head of the queue. Include print statements as shown in the example below.
Ex. If the input is
Zadie Smith
Tom Sawyer
You
Louisa Alcott
-1the output is
Learn More
Welcome to the ticketing service...
You are number 3 in the queue.
Zadie Smith has purchased a ticket.
You are now number 2
Tom Sawyer has purchased a ticket.
You are now number 1
You can now purchase your ticket! -
PRG/421 Week 4 Java 4.14 LAB: Student grades (HashMap)
Regular Price: $7.00
Special Price $3.00
PRG/421 Week 4 Java 4.14 LAB: Student grades (HashMap)
Given a HashMap pre-filled with student names as keys and grades as values, complete main() by reading in the name of a student, outputting their original grade, and then reading in and outputting their new grade.
Ex: If the input is
Quincy Wraight
73.1the output is
Learn More
Quincy Wraight's original grade: 65.4
Quincy Wraight's new grade: 73.1 -
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.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