c++ programming

profileMunira.aiq
Assignment2CS125-SEM392.docx

Assignment 2 CS125

The aim is to write a C++ program to perform the following:

Display a menu having the following options:

1: Compute the scalar product of two arrays A(N) and B(N)

2: Compute S= (min+max)/sum of an array A(N)

3: Compute the difference of two matrices

4: input N floats, compute their squares, and store them in a file

A. Define what are the functions we can use, with the input and output for each one.

B. Draw the flowchart of each function and the flowchart for the main function

C. Write the corresponding C++ program.