Knowee
Questions
Features
Study Tools

write an algorithm in pseudocode, to print 50 names and 50 ID-numbers that have been stored in an 2D array

Question

Write an algorithm in pseudocode, to print 50 names and 50 ID-numbers that have been stored in an 2D array.

🧐 Not the exact question you are looking for?Go ask a question

Solution

Sure, here is a simple pseudocode to print 50 names and 50 ID-numbers from a 2D array:

1. Start
2. For i = 0 to 49
3.     Print "Name: ", array[i][0]
4.     Print "ID: ", array[i][1]
5. End For
6. Stop

In this pseudocode:

  • We start a loop from 0 to 49, which gives us 50 iterations (Step 2 and 5).
  • In each iteration, we print the name and ID-number from the 2D array (Step 3 and 4).
  • The name is assumed to be stored in the first column (index 0) and the ID-number in the second column (index 1) of the 2D array.
  • We stop the program after printing all the names and ID-numbers (Step 6).

This problem has been solved

Similar Questions

Construct a Pseudocode to take three numbers and print largest and smallest among them.

Given a 2D integer array size (4, 5) with name input_?Print elements of highlighted matrix Output Format :

Write a program to read and store n+ve numbers in array and search a number k provided by the user using a. Linear Searchb. Binary Search

A multidimensional integer array is initialized in the code editor. Print the elements by row starting from the first row going down to the last row.

Predict the output of the following pseudo-codeInteger x = 1, y = 2, z = 3x = y + zz = x – yz = z + xz = y + zy = y + zPrint x, y, z1 2 34 6 85 12 108 6 10

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.