The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 4 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
keep in order and word document. tip included in price.
6.) Complete the following tasks:a. Design a class namedStockTransactionthat holds a stock symbol (typically one to fourcharacters), stock name, and price per share. Include methods to set and get the values for eachdata field. Create the class diagram and write the pseudocode that defines the class.b. Design an application that declares twoStockTransactionobjects and sets and displays theirvalues.c. Design an application that declares an array of 10StockTransactionobjects. Prompt the userfor data for each object, and display all the values.d. Design an application that declares an array of 10StockTransactionobjects. Prompt the userfor data for each object, and then pass the array to a method that determines and displays the twostocks with the highest and lowest price per share.7.) Complete the following tasks:a. Design a classnamedPizza.Data fields include a string field for a topping (such as pepperoni)and numeric fields for diaeter in inches (such as 12) and price (such as 13.99). Include methodsto get and set values for each these fields. Create the class diagram and write the pseudocode thatdefines the class.b. Design an application that declares twoPizzaobjects and sets and displays their values.c. Design an application that declares an array of 10Pizzaobjects. Prompt the user for data foreach Pizza, then display all the values.d. Design an application that declares an array of 10Pizzaobjects. Prompt the user for a toppingand diameter for eachPizza,and pass each object to a method that computes the price andreturns the completePizzaobject to the main program. Then display all the Pizza values. A 12-inch pizza is $13.99, a 14-inch pizza is $16.99, and a 15-inch pizza is $19.99. Any other enteredsize is invalid and should cause the price to be set to 0.8.) Complete the following tasks:a. Design a class namedBaseballGamethat has fields for two team names and a final score foreach team. Include methods to set and get the values for each data field. Create the class diagramand write the pseudocode that defines the class.b. Design an application that declares threeBaseballGameobjects and sets and displays theirvalues.c. Design an applicationthat declares an array of 12BaseballGameobjects. Prompt the user fordata for each object, and display all the values. Then pass each object to a method that displaysthe name of the winning team or “Tie” if the score is a tie.
Attachments:
-----------