please use c++ please make a new solution, that is not yet available in the internet please only submit only after your

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

please use c++ please make a new solution, that is not yet available in the internet please only submit only after your

Post by answerhappygod »

please use c++
please make a new solution, that is not yet available in the
internet
please only submit only after your solution has been tested
correct
please only use these libraries : , , , or
I will upvote
3. Play board
game[30%]
Alice, Bruce, Cole and David are
playing a board game. The board game is a 4x4 checkerboard. Each
cell in the checkerboard represents a business, and these four
people invested different amounts of money into different
businesses. To make a better strategy, they recorded their
investment on sheets of papers, each paper contains a 2x2 array
like this:
A(Alice)
B(Bruce)
C(Cole)
D(David)
The 16 sheets are given below (From
Left to Right, Top to Bottom on the checkerboard):
Sheet 1
Sheet 2
Sheet 3
Sheet 4
3
16
9
5
13
3
9
0
13
15
18
3
13
9
4
7
Sheet 5
Sheet 6
Sheet 7
Sheet 8
20
10
14
19
14
9
12
7
16
20
13
3
1
14
3
0
Sheet 9
Sheet 10
Sheet 11
Sheet 12
1
12
1
4
17
20
20
10
17
3
0
11
17
14
5
3
Sheet 13
Sheet 14
Sheet 15
Sheet 16
1
1
2
15
9
3
8
16
1
1
5
12
9
12
1
4
Suppose each cell of the checkerboard
has a value, which equals the total amount of money they invested
into this business. You are required to write a program based on
the following instructions:
#include
using namespace std;
int main () {
int matrix[2][2] = {{1,2},{3,4}};
int len = sizeof(matrix)/sizeof(int);
//total numbers of elements
for (int i=0;i
cout <<
*(matrix[0]+i) << ' '; //matrix[0] is the address of
first element
}
cout << endl; //output 1 2 3
4
return 0;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply