1. Homepage
  2. Programming
  3. ISOM 3029 Computer Programming Using C++ 2023/2024 Assignment 2: Financial Analysis System

ISOM 3029 Computer Programming Using C++ 2023/2024 Assignment 2: Financial Analysis System

Engage in a Conversation
MacauISOM 3029Computer Programming Using C++C++Financial Analysis System

Instructions: CourseNana.COM

ISOM 3029 - Computer Programming Using C++ 2023/2024 (First Semester) CourseNana.COM

Assignment 2 CourseNana.COM

Due date: December 8, 2023 (at noon, in FBA office) CourseNana.COM

  •   Read the Assignment Requirements posted in the UMMoodle before attempting to solve the following problems with C++ programs. CourseNana.COM

  •   Both the hardcopy and softcopy of your assignment should be submitted on time. CourseNana.COM

  •   All programs are to be compressed and uploaded to the UMMoodle under the CourseNana.COM

    “Submit Assignment 2” button. CourseNana.COM

  •   The compressed file should be named with your student number such as CourseNana.COM

    “ba12345_Ass2.zip”. CourseNana.COM

    Write a C++ program that helps a company to perform financial analysis on Net Profit Ratio (NPR), Current Ratio (CR), and Return On Assets (ROA). NPR is calculated by net profit divided by total sales, CR is calculated by current assets divided by current liabilities and ROA is calculated by net profits divided by the total assets (where total assets = current assets + fixed assets). CourseNana.COM

    Your program will produce 12 monthly records about month number, net profits, total sales, current assets, current liabilities and fixed assets to be stored in a text file named “finance.txt”. The first line of your finance file should contain strings of Month, Net_Profits, Total_Sales, Cur_Assets, Cur_Lia and Fix_Assets, being separated by a whitespace. Create a two-dimensional array named “data[1][5]” to store the month number and 5 groups of financial data for each month, and they should be written onto the finance file starting from the second line, being separated by a whitespace. The month number should be automatically generated (e.g. 1, 2, 3, 4 etc.) in your program, and the values for the other financial data should be randomly generated with the range between $0.00 to $1000.00. (Hint: You can randomly generate integers between 0 to 100000 and divide the random numbers by 100.0 to obtain a decimal value.) The amount for “Net Profits” should not exceed “Total Sales”. Create a new array named “ratios[1][3]” to store the month number and 3 financial ratios (i.e. NPR, CR and ROA) with 4 decimal places. Please be reminded to initialize all your array values to 0 upon declaration. CourseNana.COM

    An instruction will be displayed at the beginning upon program execution, requesting the user to create the 2 two-dimensional arrays mentioned above. Your program should generate the financial data to the “finance.txt” file, and calculate all the financial ratios which should be stored in another output file named “outfile.txt” at the end. That means the “outfile.txt” file should include all the financial data of the “finance.txt” file plus 3 more columns about financial ratios: “NPR”, “CR”, and “ROA”. The user could choose to perform any one of the following functions in the user menu: CourseNana.COM

    1. Show All Data : Create and show all the monthly financial data in a tabular format CourseNana.COM

    2. Show All Ratios : Create and show all the monthly financial ratios in a tabular format CourseNana.COM

  1. Show an NPR : Retrieve and show the net profit ratio (NPR) in % for a specific month requested by the user, with the month name shown CourseNana.COM

  2. Compare CR : Compare and state whether there is a rise or drop in the current ratio (CR) between two months by accepting the month numbers from the user CourseNana.COM

5. Exit CourseNana.COM

Each item from the user menu should be a separate function of its own. The function prototypes are as follows:
1. void showData(double data[rowSize][colSizeD]);
2. void showRatios(double ratios[rowSize][colSizeR]);
CourseNana.COM

3. void showNPR(const double ratios[rowSize][colSizeR], int month);
4. boolcompareCR(constdoubleratios[rowSize][colSizeR]intmonth1,intmonth2); CourseNana.COM

Sample Input & Output: CourseNana.COM

Welcome to the Financial Analysis System!
Create your financial data and financial ratios arrays now? Y/N: Y
Financial data and financial ratios arrays are successfully built!
Financial Analysis System
+++++++++++++++++++++++++++++++++
1. Show All Data
2. Show All Ratios
3. Show an NPR
4. Compare CR
5. Exit
+++++++++++++++++++++++++++++++++
Please enter your choice (1-5): 1

Month Net_Profits Total_Sales Cur_Assets Cur_Lia Fix_Assets =================================================================== CourseNana.COM

1 100.23 900.43 2 199.02 343.56 3 333.33 510.54 ... ...... CourseNana.COM

12 90.10 323.33 =================================================================== All financial data are stored in the “finance.txt” file! CourseNana.COM

Financial Analysis System
+++++++++++++++++++++++++++++++++
1. Show All Data
2. Show All Ratios
3. Show an NPR
4. Compare CR
5. Exit
+++++++++++++++++++++++++++++++++

184.53 33.23 330.23 23.44 99.40 100.25 CourseNana.COM

89.33
92.23
733.56

83.34 3.45 CourseNana.COM

CourseNana.COM

Please enter your choice (1-5): 2

Month NPR CR ROA ================================================ CourseNana.COM

5.5531 0.3659 14.0883 0.4710 0.9915 0.4001 CourseNana.COM

  1. 1  0.1113 CourseNana.COM

  2. 2  0.3464 CourseNana.COM

  3. 3  0.6528 CourseNana.COM

... ...... CourseNana.COM

12        0.2786
================================================
Financial Analysis System
+++++++++++++++++++++++++++++++++
1. Show All Data
2. Show All Ratios
3. Show an NPR
4. Compare CR
5. Exit
+++++++++++++++++++++++++++++++++
Please enter your choice (1-5): 3
Please enter the month number : 1
The NPR for January is 11.13%.
Financial Analysis System
+++++++++++++++++++++++++++++++++
1. Show All Data
2. Show All Ratios
3. Show an NPR
4. Compare CR
5. Exit
+++++++++++++++++++++++++++++++++
Please enter your choice (1-5): 5
Thank you very much!

24.1565 0.2986 CourseNana.COM

All financial data and ratios are successfully stored in the “outfile.txt” CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
Macau代写,ISOM 3029代写,Computer Programming Using C++代写,C++代写,Financial Analysis System代写,Macau代编,ISOM 3029代编,Computer Programming Using C++代编,C++代编,Financial Analysis System代编,Macau代考,ISOM 3029代考,Computer Programming Using C++代考,C++代考,Financial Analysis System代考,Macauhelp,ISOM 3029help,Computer Programming Using C++help,C++help,Financial Analysis Systemhelp,Macau作业代写,ISOM 3029作业代写,Computer Programming Using C++作业代写,C++作业代写,Financial Analysis System作业代写,Macau编程代写,ISOM 3029编程代写,Computer Programming Using C++编程代写,C++编程代写,Financial Analysis System编程代写,Macauprogramming help,ISOM 3029programming help,Computer Programming Using C++programming help,C++programming help,Financial Analysis Systemprogramming help,Macauassignment help,ISOM 3029assignment help,Computer Programming Using C++assignment help,C++assignment help,Financial Analysis Systemassignment help,Macausolution,ISOM 3029solution,Computer Programming Using C++solution,C++solution,Financial Analysis Systemsolution,