Question: programming C++ Problem 1 Write programs that ask to add a number entered by user. Ask the user to continue to add another number. Problem

Problem 1 Write programs that ask to add a number entered by user. Ask the user to continue to add another number. Problem 2 Write a program that asks the user to enter 8 integers of an array. The program must count and write how many integers are greater than or equal to 5. Problem 3 Write a program to get 8 numbers from the user. Then the program will determine the smallest number and largest number of an array. Problem 4 Using two-dimensional arrays, write a program which multiplies an axb matrix of integers by a cxd matrix of integers. Ask the user to enter a value for first matrix and second matrix. The multiple the matrix. (Hint: discrete structure class) FIRST (2x2) MATRIX: Insert a value for first line : 34 Insert a value for second line: 57 SECOND (2x2) MATRIX: Insert a value for first line: 11 Insert a value for second line: 2 2 I 3 5 4 7 TIMES 1 1 N EQUALS 11 19 11 1 Programming ll with C++ (CSNB244) - Lab 6 Lab Assignment (Carry Marks 5%) There is a fruit shop name "Only Fresh Fruit Shop". This shop sells the following fruits and grouped by 2 different groups Fruit Name Price per kg (RM) Sunkist Orange 2.00 Strawberry 22.00 Papaya 5.00 Star fruit 6.00 Kiwi 10.00 This shop has requested you to provide a program to calculate and provide the details (receipt) of the purchase. You are required to use structure, pointer, and array to develop this program. You may refer to the following figure to get as a sample of output. You may also work in a group of 2 students per group. C:\WINDOWS\system32\cmd.exe - 1|| Melcome to Only Fresh Fruit Shop Today's fresh fruit (Price per kg) 9- Sunkist Orange RM2 1- Strawberry RM22 2- Papaya RMS 3- Star fruit RM6 1- Kiwi RM18 Enter fruit code (-1 to stop):1 Strawberry Enter weight (kg):10 Enter fruit code (-1 to stop):8 Sunkist Orange Enter weight kg) :3 Enter fruit code (-1 to stop):2 Papaya Enter weight (kg):5 Enter fruit code (-1 to stop):-1 Receipt Strawberry RM228 Sunkist Orange RM6 Papaya RM25 TOTAL = RM251 Press any key to continue You are required to show and explain this program to you lecturer on the next lab session
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
