Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Solve This Rroject as Required!! : CS111- Programming 1 Mini Project, Winter 2022-2023/ 2nd Term 1444H Project Description The aim of CS111 mini project

Please Solve This Rroject as Required!! :

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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. 3. 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 outline 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. 5. Performing the required tasks correctly and accurately is worth 50% of project grade. 6. Remember that plagiarism will not be tolerated, and a zero mark will be given. Each report 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 spaces - 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. 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. Max Profit Stock Exchange Company buys and sells shares of stocks. It issues equity shares for the corporations Apple Inc, Microsoft, and Alphabet Inc. You are responsible for implementing an application to help Max Profit run their business. Your application must include a class named "InvestmentPortfolio" that shows a summary of client's investment portfolio or the full details of stock 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 symbol. b. A string data field named "name" for the stock's name. c. A double data field named "previousClosingPrice" that stores the stock price for the previous day. d. A double data field named "currentPrice" that stores the stock price for the current time. e. A String array data field named "clientNames" that stores the clients' last names. f. A String array data field named ""clientIDs" that stores the client ID (5-digit length) g. 3 int arrays named aaplShare, msftShare, and googlShare respectively to store the share of every stock for each client. 4. Write the header and bodies of the following methods: (25pts) a. method getClientsInfo, method is called to fill the arrays: clientNames[], clientiDs[], aaplShare[], msftShare[], and googiShare[] (3pts) b. method displayStockStatus 0 which has the parameters stockSymbolsList: String array, stockNameList: String array, previousClosingPrice: float array, and currentPrice: float array. The method displays the status of the stocks as shown in the sample run. (10pts) c. method displayEquitySummary which computes and displays the value of share equity of the stocks owned by each client. It takes the parameters: stockSymbolsList: String array, and currentPrice: float array. (10pts) d. method getChangePercent0 that returns the percentage changed from previous closing prices to current prices with the format (00.00%). Note: The percent change formula is as follows: (2pts) Change Percent =prevoiusclosingpricecurrentpriceprevoiusclosingprice100 5. 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 "stockNameList" with the values "Apple Inc.", "Microsoft", and "Alphabet Inc." c. A single dimensional float array named "previousClosingPrice" with the values $0.40, $25.99 and $148. d. A single dimensional float array named "currentPrice" with the values $141.52,$257.22, and $95. e. An int variable named serviceID. 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 serviceID. (4pts) c. Calling methods in main. (4pts) d. For loops to read from the created arrays, when necessary, in the methods. (Included in methods worth) e. For loops to print the contents of the arrays formatted properly, when necessary, in 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 followed 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 getChangePercent() function. If the client inserts 0 , then the program will be closed. Sample Run: To show equity summary, please enter 1. Fo show stock portfilo, please enter 2. To exit the program, please enter of To show equity sumary, please enter 1 . To exit the program, please enter is. cilent Partfilo Sumarw Te ahow equity aumary, please enter 1. To shou stock portidio, please enter z. To exit the pregram. please enter a Error: Inwalid entry. To shou equity sumary, please enter 1. To ahow atock portfilo, please enter 2. Hessagei Program ended Starter Code import java.util.Scanner; Starter Code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions