8. Implement a two-dimensional grid with a one-dimensional array. a) Implement an empty array of four integers. b) Request four unique integers between 0 and 3 inclusive from the console and store them into the array in the order in which they were input. c) Implement a print function that displays the array as two-dimensional "index by value" grid where every index is a column and every value a row coordinate of 'X'. All other values should be expressed as a " Output Example Enter 4 row values (from 0 to 3): 3 0 2 1

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 3PP: (Numerical) Given a one-dimensional array of integer numbers, write and test a function that...
icon
Related questions
Question
8. Implement a two-dimensional grid with a one-dimensional array.
a) Implement an empty array of four integers.
b) Request four unique integers between 0 and 3 inclusive from the console
and store them into the array in the order in which they were input.
c) Implement a print function that displays the array as two-dimensional
"index by value" grid where every index is a column and every value a row
coordinate of 'X'. All other values should be expressed as a "
Output Example
Enter 4 row values (from 0 to 3): 3 0 2 1
Transcribed Image Text:8. Implement a two-dimensional grid with a one-dimensional array. a) Implement an empty array of four integers. b) Request four unique integers between 0 and 3 inclusive from the console and store them into the array in the order in which they were input. c) Implement a print function that displays the array as two-dimensional "index by value" grid where every index is a column and every value a row coordinate of 'X'. All other values should be expressed as a " Output Example Enter 4 row values (from 0 to 3): 3 0 2 1
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr