Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Assembly Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 16th, 2005, 11:48 AM
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!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling the BACK button by writing jsp code sumon_24_feb JSP Basics 3 July 14th, 2006 12:41 AM
Writing Client Side Script from Code-Behind code sajid_pk Classic ASP Databases 1 January 18th, 2005 12:53 AM
Code Writing Conventions richard.york PHP FAQs 0 April 5th, 2004 08:23 PM
assistance writing code for a javascript arrray elogics Classic ASP Basics 1 December 30th, 2003 05:24 PM
Writing VBA Code for DOS Commands dgarcia1128 Access VBA 7 August 3rd, 2003 08:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.