Question: this is project CS111- Programming 1 Mini Project. Winter 2022-2023/2nd Term 1444H Project Description The aim of cs111 mini project is to assess the students'

 this is project CS111- Programming 1 Mini Project. Winter 2022-2023/2nd Term
1444H Project Description The aim of cs111 mini project is to assess
the students' knowledge gained from lectures and self-study through living the experience
of working within teams to present the syntax and semantics of Java
this is project

CS111- Programming 1 Mini Project. Winter 2022-2023/2nd Term 1444H Project Description The aim of cs111 mini project is to assess the students' knowledge gained from lectures and self-study through living the experience of working within teams to present the syntax and semantics of Java language as well as data types and libraries offered by the language, and to develop skills in designing, implementing, and testing simple programs in the language using an integrated development environment. Students should work in groups ( 23 students maximum in each group) to accomplish the tasks stated below in "Required Tasks". Members in each group should work equally and ethically in their project and communicate effectively and professionally with their colleagues. Their participation will be assessed through project reports. Remember that poor peer evaluation affects your final mark. Submission instructions 1. You should work in groups (up to three students). 2 The submission deliverables include cover page, the source code, and the output. . The deadline for submission is Week 12, Sat, Feb 25, by 11:59 pm through Blackboard. 4. Make sure your source code includes "Programming Style and Documentation", as oulline below. Grading policy 1. The mini project is worth 7% of your total course grade. 2 Submission on time is worth 5% of project grade. 3. Absence of syntax errors is worth 30% of project grade. 4. Producing the desired output is worth 15% of project grade. s. Performing the required tasks correctly and accurately is worth 50% of project grade. - Remember that plagiarism will not be tolerated, and a zero mark will be given. Each repont will be examined through plagiarism detection systems. Programming Style and Documentation Students are expected to follow the Programming Style recommendations given in class and in the text. For example (but not limited to): - Indent statements between braces a 3 or 4 spaces - Indent after the first line of a statement a 3 or 4 spoces - Use single blank lines to separate sections of the program - Align opening and closing braces - Use descriptive identifier naming conventions - Include appropriate comments throughout the program. References: 1 Class lectures handouts and worked out examples discussed in lecture classes. 2. The course main and recommended reference textbooks provided in the Course Card document. 1 The Intemet. 2. The course main and recommended reference textbooks provided in the Course Card document. a. The Internet. Required Tasks Max Profit Stock Exchange Company buys and sells shares of stocks. It issues equity shares for the corporations Apple lnc, Microsoft, and Alphtabet Inc. You are responsible for implementing an application to help Max Profit run their basiness. Your application must include a class named "InvestmentPortfolio" that shows a sumarmary of client's investment portfolio or the full details of slock status with the change percent in the stocks" prices. You should do the following tasks: 1. Use the starter code found in this file. 2 For simplicity, the total number of the clients is 5. 3. Create the following variables: (9pts) a A string data field named "symbol" for the stock"s symbel. b. A string data field named "name" for the stock's name. c. A doable data field named "previousClasingPrice" that stores the stock price for the previous day. d. A double data field named "current?rice" that stores the stock price for the current time. e. A String array data field named "clientNames" that stores the clients" last names. ff A String array data field named "clientIDs" that stores the client ID (5-digit length) F. 3 int arrays named aaplShare, msttShare, and googlShare respectively to stooe the share of every stack for each client. 4. Write the header and bodies of the following metheds: (25.pts) a method geCClientinfod method is called to fill the arrys: clientNames[h, clientiDs[1, aapiShare[], msttSharc[], and googiShare[] (3pts) th method displayStack. Statuse 0 which has the parameters stockSymbolsL ist: String array, stockNamel.ist. String array, previousClosingPrice: float array, and currentPrice: float array. The method displays the status of the stocks as shown in the sample run. (10pts) 5. method divplayEquirySummary which conrputes and displays the value of share equity of the stocks owned by cach client. It takes the paramelers: slockSymbolstist: String array, and currentPrice: float array, (10pts) a method gerChangePercento that retums the percentage changed from previous closing prices to curient prises with the format (00,00%). Nose: The percent change formula is as follows: (2pts) s Create the following local variables: (5pts) a A single dimensional string array named "stockSymbolsList" with the values "AAPL", "MSFT". and "GOOGL" b. A single dimensional string array named "stock Namel ast" with the values "Apple lnc, ", "Microsoft", and "Alphabet Inc," c. A single dimensional float arrxy named "previousClosingPrice" with the values $0.40,525.99 and $148. a. A single dimensional float array named "currentPrice" with the values $141.52,$257.22, and $95. c. An int variable named servicelD. 6. Use the following three programming fools (but not limited to): (11pts) a A do-while loop to show a menu to the usec. (3pts) b. A switch statement to select the required service and store it in servic a. Use the following three pregramming tools (but not limited to): (11pts) a A do-while loop to show a menu to the user. (3pts) b. A switch statement to select the required service and store it in servicelD. (4pts) c Calling methods in main. (4pts) d. For loops to read from the created amays, when necessary, in the methods. (Included in methods worth) c. For loops to print the contents of the arrays formanted properly, when necessary, is the methods, (Included in methods worth) 7. Using your Netbeans or eclipse IDE, prompt the user to: a. For each client, enter the last name of the client followod by the ID(5 digits), the share of AAPL. MSFT, and GOOGL. b. Enter the service id. If the operator enters 1, then the share equity values for each client will be shown. If the operator enters 2, then the stock status summary will be shown with calling getChangePercente) function. If the client inserts 0 , then the program will be closed. Sample Run: Starter Code import java,util.Scanner; public class InvestmentPortfohio static Scanner input = new Scanner(System.in); public static void main(String[] args) f y - / f+0 * method displayStockStatus displays the status of the stocks - (aparam stockSymbolsList: String array - @param stockNameList: String array - (a) param previousClosingPrice: float array - @param currentPrice: float array - / private static void displayStockStatus0 (aparam previousClosingPrice: float array (a) param currentPrice: float array \% private static void displayStockStarus0 " method displayEquitySummary displays the value of share equity of the stocks owned by each client - @param stockSymbolsList - @param currentPrice */ private static void displayEquitySummary0 I 1 /** " method gerClientsinfo) fills the arrays: clientNames[], clientIDs[]. * aaplShare[], msftShare[], and googlShare[] */ public static void getClientsInfo0 \{ 3 /* **/ i** - method getChangePercent() calculates and returns the percentage changed from previousClosingPrice to currentPrice -@param currentPrice - @param previousClosingPrice public static float getChangePercent 0 L 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!