?
Solved

Multiplication Table in Raptor

Posted on 2011-09-24
2
Medium Priority
?
2,082 Views
Last Modified: 2013-11-24
Can someone guide me through this please.  This has to be done in Raptor.

1. Provide your analysis for the following problem statement: You need to write a program that would calculate the results for the multiplication table up from 1 to 100. (For example, 1X1, 1X2, 1X3 … 1X10, 2X1, 2X2 …. 10X2 … 10x10). Your program should print the output for each step and output a new line after 10 items. So the example output would be something like this Notice a new line appears after 10 steps:
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 … 20

10 20 30 … 100
      
To write the new lines you can just use code similar to : write “new line”. Hint: You will probably use a nested repetition loop.
0
Comment
Question by:bcg_81
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 42

Accepted Solution

by:
pcelba earned 1000 total points
ID: 36592563
You cannot suppose we'll solve your home work for you. This would really be very bad approach how to learn something...

In addition to this you are asking in dBase forum which has nothing related to Raptor. You should ask in Miscellaneous programming or in Algorithm etc.

OTOH, the dBase (or FoxPro or Clipper) code for your task is very simple:
 
FOR lnI = 1 TO 10
  ?
  FOR lnJ = 1 TO 10
    ?? lnI * lnJ
  NEXT
NEXT

Open in new window

Older dBase versions do not know FOR - NEXT loop and you have to use DO WHILE loop:
lnI = 1
DO WHILE lnI <= 10
  lnJ = 1
  ?
  DO WHILE lnJ <= 10
    ?? lnI * lnJ
    lnJ = lnJ + 1
  ENDDO
  lnI = lnI + 1
ENDDO

Open in new window


Raptor solution should probably be of same complexity (means very easy) and it your responsibility to read Raptor manuals and write such trivial code.
0
 

Author Closing Comment

by:bcg_81
ID: 36938308
Thanks.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question