Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Multiplication Table in Raptor

Posted on 2011-09-24
2
Medium Priority
?
2,157 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 43

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
This collection of functions covers all the normal rounding methods of just about any numeric value.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

598 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