Displays one or more multiplication tables

Assignment Help Other Subject
Reference no: EM13316483

Last month, Mrs. Johansen began teaching multiplication to the students in her second grade class. She wants a program that displays one or more multiplication tables. A sample multiplication table is shown below. The x entries represent the number entered by the user and are called the multiplicand. The numbers 1 through 9 are called the multiplier. The y entries represent the product, which is the result of multiplying the multiplicand (x) by the multiplier (the numbers 1 through 9). Table format Sample table using a multiplicand of 2 X * 1 = y 2 * 1 = 2 X * 2 = y 2 * 2 = 4 X * 3 = y 2 * 3 = 6 X(multiplicand) * 4(multiplier) = y (product) First, analyze the problem, looking for the output first and then for the input. In this case, Mrs. Johansen wants the program to display a multiplication table. Next, plan the algorithm. Recall that most algorithms begin with an instruction to enter the input items in the computer, followed by instructions that process the input items, typically including the items in one or more calculations. In this exercise, you modify the code from Lab 8-2. If necessary, create a new project named Intermediate20 Project and save it in the Cpp7\Chap 08 folder. Enter (or copy) the C++instructions from the Lab8-2.cpp file into the source file named Intermediate 20.cpp. Change the filename in the first comment. Replace both pretest loops with posttest loops. Save and then run the program.

Reference no: EM13316483

Questions Cloud

Calculate mass of the ozone that formed in units of pounds : Summertime ground-level ozone in Charlotte (ozone pollution) can increase from 15 ppb to as much as 140 ppb in the mid-afternoon. Assume ozone affects an area of 5 km by 5 km and a shallow layer of 500m.
Corresponding increase in mass of carbon in atmosphere : Atmospheric CO2 has increased from about 280 ppm before the era of Industrialization (around the year 1880) to present-day concentration of 395 ppm, primarily because of fossil fuel combustion.
The molar enthalpy of vaporization of water : The molar enthalpy of vaporization of water at its normal boiling point of 373.15 K and 1 atm is 40.65 kJ/mol. The density of liquid water is 958.4 g/L and the density of water vapor is 0.6010 g/L . a) Use Clapeyron equation to determine the value of..
Assuming the ideal gas model : A rigid, insulated vessel is divided into two compartments connected by a valve. Initially, one compartment, occupying one-third of the total volume, contains air at 500 degree Rankine, and the other is evacuated.
Displays one or more multiplication tables : Last month, Mrs. Johansen began teaching multiplication to the students in her second grade class. She wants a program that displays one or more multiplication tables. A sample multiplication table is shown below. The x entries represent the number e..
Discuss disparities related to ethnic-cultural groups : Discuss disparities related to ethnic and cultural groups relative to low birth weight infants and preterm births. Describe the impact of extremely low birth weight babies on family and society (short and long term, including economic considerations,..
Loan payment each quarter is equal : The owner of a small business borrowed $20,809 with an agreement to repay the loan with quarterly payments over a 10 year time period. If the interest rate is 12% per year compounded quarterly, his loan payment each quarter is equal to:
Construct a graph showing the entire distribution : Using EXCEL, construct a graph showing the entire distribution for: a. Hypergeometric, where n = 4,N = 20, and D = 5 b. Binomial, where n = 15 and p = 0.05 c. Poisson, where np = 1.0
Satisfy the minimum spacing requirement : For a given beam cross section, if b=12 in and h=25 in, which of the following bar configurations does not satisfy the minimum spacing requirement? (Beam is square) A)4#9 B)5#4 C)3#11 D)None of the above

Reviews

Write a Review

Other Subject Questions & Answers

  What is the primary emphasis of object relations theorist

What is the primary emphasis of object relations theorist? Give example of this emphasis from Heinz Kohut, Otto Kemberg and Attachment Theory.

  Define and esplain the kenite hypotheses

Define and esplain the Kenite hypotheses. Why do many historians think that the worship of YHWH originated in Midian? How does the Exodus account link Jethro, priest of Midian, with Moses?

  Achieve gender equity in social policy in 20th century

Why, according to Kessler-Harris, has it been so difficult to achieve gender equity in social policy in 20th Century America?

  Definitions and parameters for hi-tech crime

Definitions and parameters for hi-tech crime (e.g., hi-tech crime types and the intended results).

  Intended brand message-advertising agency

HP’s advertising agency assembles words and illustrations into an advertisement that will  convey the company’s intended brand message. In the communication process, HP is

  Judicial philosophy guide court''s exercise judicial review

What judicial philosophy should guide the Supreme Court's exercise of judicial review? Should the Supreme Court's power of judicial review be strictly limited by a constitutional amendment?

  American view of bible

How do most Americans view The Bible, The Historical Jesus, Paul, The Kingdom of God, the protestant/catholic relationship and the role of women in the church, regardless if they are Christian or not?

  Six sigma focuses on the maximization of roi

Six sigma focuses on the maximization of ROI while addressing the question of "what does the investor want in terms of returns."

  Develop organizational charts for a construction

Develop organizational charts for a construction company that does $50 million worth of construction projects a year in 3 different scenarios. • Assume that the company does 10 projects at $5 million each

  Cultural-based tourism

How does the involvement of urban residents in art-related activity shape their experience of place or help them endure daily struggles for survival? How does cultural expression help residents to construct individual and community narratives or clai..

  Explaining the liability of employers

John Stokely is a sales executive for AAA Auto Dealers, a local automobile dealership. He often drives to the manufacturing facility, which is 150 miles from the dealership, to check on new orders.

  Consent for pediatric clinical trial participants

Assume that you are part of a medical research team, and are tasked with gaining informed consent from the potential participants.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd