Preview

Write a program that would calculate and display the results for the multiplication table for values ranging from 1 to 100.

Satisfactory Essays
Open Document
Open Document
345 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Write a program that would calculate and display the results for the multiplication table for values ranging from 1 to 100.
Problem definition: Write a program that would calculate and display the results for the multiplication table for values ranging from 1 to 100.

A. Problem Analysis – Following the directions in the assignment, clearly write up your problem analysis in this section.
In order to write this program, two variables, ROWNUM and COLUMNNUM, will be used with nested repetition loop to complete the necessary calculations. ROWNUM will be used in an outerloop and contain numbers between1-10 and COLUMNNUM will be used in an innerloop and contain numbers between 1-10. For each iteration of the outerloop, the inner loop will be executed 10 times and the product of ROWNUM*COLUMNNUM will produce the multiplication table of ROWNUM. The ROWNUM and COLUMNNUM variables will be incremented by 1in each iteration of loops. The new line will be printed to display the multiplication table for each value of ROWNUM in a separate line.
This table shows the outputs that will be generated from the calculations:
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20
3 6 9 12 15 18 21 24 27 30
4 8 12 16 20 24 28 32 36 40
5 10 15 20 25 30 35 40 45 50
6 12 18 24 30 36 42 48 54 60
7 14 21 28 35 42 49 56 63 70
8 16 24 32 40 48 56 64 72 80
9 18 27 36 45 54 63 72 81 90
10 20 30 40 50 60 70 80 90 100

B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.
The program will have two modules, the main module and the calculation module.
Main Module
//Welcome to the Multiplication Display Program
//This program will multiply numbers from 1 to 1000 and display’s them in rows and columns.
Write “Welcome to the Display Calculator”
Write “New Line”
Write “This program will show you the multiplication chart of numbers from 1 to 100.”
Call Calculation Module
End Program
Calculation Module
Declare

You May Also Find These Documents Helpful

  • Satisfactory Essays

    cout << num1 << " / " << num2 << " = " << num1/num2;…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PT1420 Unit 8 Lab 8

    • 365 Words
    • 2 Pages

    Incrementing by Values Other than 1, page 190): Display numbers starting at 0 through 10 by increments of 2. 0,2,4,6,8,10…

    • 365 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Step 2: Think of good variable names for the following pieces of data that will need to be stored with in this program.…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PT1420week5exdkinney

    • 404 Words
    • 2 Pages

    VB supports many mathematical and/or numeric functions that can make calculations and other procedures very simple, as one just have to feed in the variables, and get the output after the function processes it. One such function is:…

    • 404 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CEIS100 W5 ILab Report

    • 320 Words
    • 2 Pages

    Code—copy and paste (or type) your code below. You can also post a screenshot of the program working if you would like.…

    • 320 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Design Main program Declare Type as integer Declare 1 as string Declare 2 as string Declare 3 as string Declare 4 as string Declare 5 as string Declare Amount as real Declare MP_XRate as real Declare CD_XRate as real Declare EP_XRate as real Declare JY_XRate as real Declare FF_XRate as real Declare USD as real…

    • 762 Words
    • 12 Pages
    Good Essays
  • Powerful Essays

    Err in Health

    • 3151 Words
    • 13 Pages

    A) It is your responsibility to read the assignment carefully and make sure you understand what you need to do and what you should hand in. If you are not sure, check with your tutor.…

    • 3151 Words
    • 13 Pages
    Powerful Essays
  • Satisfactory Essays

    unit 4

    • 691 Words
    • 4 Pages

    1. Design a module named timesTen. The module should accept an Integer argument. When the module is called, it should display the product of its argument multiplied times 10.…

    • 691 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Shylock and Jessica

    • 1889 Words
    • 8 Pages

    You will need to come up with several problems/ contexts which relate to the tasks above, which you will discuss with your teacher. They should be laid out in the manner below. The more problems you come up with the better, as you are trying to find the best one.…

    • 1889 Words
    • 8 Pages
    Good Essays
  • Good Essays

    POW Free Think Football

    • 531 Words
    • 3 Pages

    Process: The first thing that I did is list the numbers 1-50 on a sheet of paper. I started at 1 and crossed off each number that were possible and circled the numbers that weren’t possible. It is impossible to get 1, 2, 4, and 7. It is possible to get 3, 5, and 8-50. So then I listed the number 51-100. I used the same method as I did before. It was possible to get every number from 51-100. Then I created a table to have all of the information together that shows how each number can be possible.…

    • 531 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    programiing

    • 923 Words
    • 4 Pages

    7: Write a program that requests two floating-point numbers and prints the value of their difference divided by their product. Have the program loop through pairs of input values until the user enters nonnumeric input.…

    • 923 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Entrepreneurship

    • 1699 Words
    • 7 Pages

    1. Identify the main overall problem(s) to be addressed in this assignment. You should present an actual…

    • 1699 Words
    • 7 Pages
    Satisfactory Essays
  • Powerful Essays

    Write a C program that reads a number from the keyboard via the scanf function, and then prints the message The number is bigger than 100 if it is. If the number is 100 or less than 100 then you should print out the message The number is not bigger than 100.…

    • 3249 Words
    • 13 Pages
    Powerful Essays
  • Satisfactory Essays

    Quiero ilustrar el uso de ciclos repetitivos en PASCAL para lo cual resolveremos el siguiente ejercicio: Escriba un programa que permita mostrar en pantalla la tabla de multiplicar del 5, así:…

    • 353 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Java Programming Questions

    • 1971 Words
    • 8 Pages

    Using switch and case statements write a program to add, subtract, multiply and divide the two numbers…

    • 1971 Words
    • 8 Pages
    Good Essays

Related Topics