Complete the following tasks:
a. design a class named stocktransaction that holds a stock symbol (typically one to four characters), stock name, and price per share. include methods to set and get the values fo reach data field. create the class diagram and write the pseudocode that defines the class.
b. design an application that declares two stocktransaction objects and sets and displays their values
c. design an application that delcares an array of 10 stocktransaction objects. prompt the user for data for each object, and then display all the values
d. design an application that declares an arrary of 10 stocktransaction objects. prompt the user for data for each object, and then pass the array to a method that determines and displays the two stocks with the highest and lowest price per share.

Solved
Show answers

Ask an AI advisor a question