View Single Post
  #1 (permalink)  
Old November 16th, 2005, 11:48 AM
jumpin_hunk jumpin_hunk is offline
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help me writing code

I would appreciate if anybody would like to help me developing the code for the following program.
Thanks
Jumpin

Allow the user to type in a 3x3 table of three digit positive numbers. Store the values in a word array in memory named ARRAY. Be specific when you ask for each row of numbers.

Display the 3x3 array of numbers.

Ask the user which row he would like to see. Display the requested row as a row. Use words to describe the particular row you are displaying. Ask the user which column he would like to see. Display the requested column as a column. Use words to describe the particular column you are displaying. Ask the user if he would like to see other rows and columns. Continue displaying and asking until the user says no, he does not want to see anymore!!

Sample output: (I will underline what the user types in!)

This program allows you to enter a 3x3 table of three digit numbers.
Please enter your three numbers for row 1
123
-134
Sorry, you must key in 3 digit positive numbers. Try again
134
156

Please enter your three numbers for row 2
211
22
Sorry, you must key in 3 digit positive numbers. Try again
222
233

Please enter your three numbers for row 3
321
345
389

Here is the 3x3 table of values you submitted:
123 134 156
211 222 233
321 345 389

Which row would you like to be displayed? 2
Your second row is:
211 222 233

Which column would you like to be displayed? 2
Your second column is:
134
222
345

Do you want to see other rows and columns? (Y/N) Y

Which row would you like to be displayed 3

Your third row is:
321 345 389

Which column would you like to be displayed 2
Your second column is:
134
222
345

Do you want to see other rows and columns? (Y/N) N
GOODBYE!