Problem Definition: Write A Program That Would Calculate And Display The Results For The Multiplication Table For Values Ranging From 1 To 100

581 words - 3 pages

CMIS102 Homework Assignment 3

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 ...view middle of the document...

Call Calculation Module

End Program

Calculation Module

Declare ROWNUM, COLUMNNUM as Integers

// For each iteration of ROWNUM

For (ROWNUM=1; ROWNUM‹=10;ROWNUM++)

//For each iteration of COLUMNUM

For (COLUMNNUM=1; COLUMNNUM‹=10;COLUMNNUM++)

//Display the calculation

Write ROWNUM*COLUMNNUM+ “ “

End For

//program ends here at the end Calculation Module

End Calculation Module

[pic]

[pic]

C. Program Comments and Test Data – Following the directions in the assignment, include your test data and expected results in this section.

Table 1. Include your test data table here

The program doesn’t require user input. It will be tested here by running it once. The expected output would be the 10 rows and 10 columns.

|Input |Output |
|Nothing |1 2 3 4 5 6 7 8 9 10 |
| ...

Other Papers Like Problem Definition: Write a Program That Would Calculate and Display the Results for the Multiplication Table for Values Ranging from 1 to 100

How Far Do You Agree That the Most Important Reason for Wolsey’s Fall from Power Was His Failure to Gain a Divorce for Henry Viii?

957 words - 4 pages . From this we can see that Wolsey’s alienation from the ‘common’ people did not cause his fall, but something else. Henry did blame the Amicable Grant on Wolsey to save face, but he did not dismiss him. I would argue that the divorce caused Wolsey’s fall rather than the alienation of the people, since Henry’s needs were paramount to anything else. What’s more, Henry’s care for Wolsey as a friend was apparent, due to the fact that he only ordered

Principles of Corporate Finance How to Calculate Present Values Richard A. Brealey Stewart C. Myers Franklin Allen Slides by Matthew Will & A. Gledson de Carvalho Mcgraw Hill/Irwin Copyright © 2003 by...

2876 words - 12 pages Assume that the cash flows from the construction and sale of an office building is as below. Given a 7% required rate of return, create a present value worksheet and show the net present value. Year 0 Year 1 Year 2 − 150,000 − 100,000 + 300,000 McGraw Hill/Irwin Copyright © 2003 by The McGraw-Hill Companies, Inc. All rights reserved 3- 15 Present Values Example - continued Assume that the cash flows from the construction and

Examine Reasons for the Changes in Family Size and Structure in the Last 100 Years

1036 words - 5 pages Examine reasons for the changes in family size and structure in the last 100 years. (24 marks) Recent decades have seen some major changes in family patterns. Changes in partnership include fewer first marriages, more divorces, re-marriages, and cohabitation. There are also more births outside of marriage, lone parents, reconstituted families, and same sex families. Reasons for these changes vary from individualism, to secularisation and

Frenzy In The Markets As Oil Heads For $100 A Barrel

675 words - 3 pages The article is about the record high prices of oil and the reasons behind the price mechanism on the world market from oil. Two main reasons are pointed out in the article, namely increased demand for oil and reduction in the supply.Demand is the total amount of goods and services that consumers want and are willing to buy at any price over a period of time. There are several factors that can influence demand: price, availability and price of

To What Extent Is This Definition of Masculinity Applicable to the Central Male Character in ‘a View from the Bridge’ by Arthur Miller and ‘Freedom’ by Jonathan Franzen?

2323 words - 10 pages ; Eddie represents the judgmental views of masculinity. His character is unable to bear Rodolpho’s attitude and appearance as it attacks Eddie’s individual definition of masculinity. “He’s like a weird…with that wacky hair…he’s like a chorus girl” Eddie unloads his feelings and disapproval regarding Rodolpho and his conduct to Catherine and Alfieri who is used as a guidance counsellor for Eddie to discuss his worries, “I see it in his eyes; he’s

The Economic Problem for Governments, Businesses and Individuals - Year 7

605 words - 3 pages want one. This is the economic problem. You want 2 billion dollars but it is very unlikely that you will get it. You want the coolest thing in the world. The economic problem is that you have unlimited wants and limited needs. Business Businesses; they want what is best for their workers. They might want to give them free access to the downstairs gym. A small company may want to buy a large company! Businesses want to be rich. That is

Write An Essay Accounting For The Difference In Othello's Responses To The Challenges Of Brabantio's And Iago's Attacks On His Person And Marriage To Desdemona

1300 words - 6 pages "Othello deals soberly and confidently with Brabantio's direct attack on his Person and marriage to Desdemona but goes to pieces when Iago mounts a similar but indirect attack" Write an essay accounting as fully as you can for the difference in Othello's responses to each challenge.Both Brabantio and Iago had attacked Othello's Person and marriage to Desdemona. Although the attacks were similar, the way the attacks were carried out by Brabantio

Topic: a Drastic Change Was Made to the Primary School Curriculum in 1999. 1. Explain the Rationale Behind the Need for Changes to the Curricula. 2. What Immediate and Long Term Impact Do These...

1494 words - 6 pages Education course to encourage pupils to grow spiritually, thus displaying good Christian values and attitudes in relating to others. The poignant reason for this change is that many students do not go to either Sabbath or Sunday schools where they can learn about Jesus and His love for man. Some students do not know a verse from the Bible and are able to repeat same without being embarrassed. This addition will eliminate the type of religious

Some Read Between the Lines That Dunkirk for Britain Was a Triumph Because the Soldiers Escaped and Survived the Incident at Dunkirk to Fight Another Day

528 words - 3 pages Some read between the lines that Dunkirk for Britain was a triumph because the soldiers escaped and survived the incident at Dunkirk to fight another day; this can be seen in interpretations of source B1. Its written by a military historian who interprets Dunkirk as ‘a miracle’ he then goes on to say ‘Hundreds of troops were rescued from the German advance in a nick of time- it seemed like a victory just getting the troops back to fight another

As a Director Discuss the Effects That You Would Like to Create Through Your Presentation of the Brief Relationship Between Lady Agatha and Mr Hopper

757 words - 4 pages and his steps should become lighter, showing that the confidence he first arrived with was, in fact a front and that he seeks approval from Lady Agatha, making him nervous. As his first conversation is with the Duchess he would speak with ease, trying to impress the Duchess as in the victorian era a man needed to have approval from both the mother and the father before being allowed to marry the daughter. I would like Hopper’s gaze to flicker to

Assess the Arguments and Evidence for the View That Britain Is Becoming a Secular Society

1001 words - 5 pages importance of religion is largely reflected in statistics relating to religious institutions and participation. For example, in Britain from the mid-19th century to the 1960s church attendance had fallen from 40% of the population to 10-15%. Church rituals such as weddings and baptisms had also declined, which then led Wilson to conclude that Britain had become a secular society. Since then, churchgoing has continued to decline with 6.3% of the

Related Essays

Case Analysis   1. Would Enterprise’s Approach To Human Resource Management Work In Other Industries?       A. I Think That Enterprise’s Approach To Human Resource Management Would Very Well Work In A...

4643 words - 19 pages Case Analysis   1. Would Enterprise’s approach to human resource management work in other industries?       a. I think that Enterprise’s approach to human resource management would very well work in a lot of industries. One example of an industry that would benefit from this type of human resource management would be fast food industries. It allows people who may not have graduated in the top of their class and who may not have had the best

Calculate The Total Price To Purchase All The Components Required To Build A State Of The Art Gaming Computer From Components Available On The Internet

798 words - 4 pages Case Of MonitorChoice Case “A”: Set MonitorCost = 185 Break Case “V”: Set MonitorCost = 135 Break Case “L”: Set MonitorCost = 245 Break Default: Write “Invalid selection” // For selections that aren’t on the determined cases End Case Hierarchy Chart: C.    Program Comments and Test Data – Following the directions in the assignment, include your test data and expected results in this section. Table 1. Include your test

Calculate The Usable Area In Square Feet Of House. Assume That The House Has A Maximum Of Four Rooms, And That Each Room Is Rectangular

576 words - 3 pages ): “Finding the Sale Price of Items in a Department Store”, provide your analysis for the following problem statement: You need to write a program that will calculate the number of square feet (living space) in a 4-room house. 1.1. Your analysis should be clearly written and demonstrate your thought process and steps used to analyze the problem. 1.2. Be sure to include what is the required output? 1.3. What is the necessary

Intention And The Search For Definition: A Marriage Of Doctrinal Inconsistency And Incoherent Desires

2854 words - 12 pages definition pursued by the courts in a number of leading judgments. The cases which will be discussed shall be separated into two distinct categories. First, there exists the chronological development of those cases which debate the term intention and seek to rationalise and interpret it for the purpose of establishing certainty within the criminal law. Second, there are those cases which highlight the courts departure from the need to ensure doctrinal