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

  Nature versus nurture controversy

Nurture gives the environment to actually make language a part of who we are? How so?

  Healthcare organization and traditional businesses

For many years, healthcare organizations, as well as traditional businesses, have been frustrated that high customer satisfaction scores do not necessarily lead to higher levels of profitability or sales. Explain why this inconsistency tends to ex..

  Asymmetry is most useful for enabling the owl to detect

The barn owl's right ear opens slightly upward while its left ear opens slightly downward. This asymmetry is most useful for enabling the owl to detect the ________ of a sound.

  Utilization review

Describe first the standards or criteria of each. Second how you would enforce or what incentives you would create to encourage physicians to follow those standards for each of the three areas.

  Universal human principles

In studying for my final essay exam, I am thinking there are a few things about some of the philosophers that I do not completely understand

  Calculate the mortgage constant

You borrow $75,000 for 30 years at 11% interest compounded annually. The value of the property is $100,000, PGI= $20,000, vacancy rates are 8%, and operating expenses are $81,000.

  Calculate the actual volumetric flow rate of air to furnace

Calculate the actual volumetric flow rate of air to the furnace, the composition of the off gas, and the relative humidity and dew point of the off gas. Assume complete combustion.

  Social comparison theory or social exchange theory

Choose either Social Comparison Theory or Social Exchange Theory and create an 8-10 slide PowerPoint presentation defining, describing, and providing examples of the theory. Presentation should also include at least one web site related to your theor..

  Degree of the gender roles

What degree of the gender roles we play is determined by our biology? How much is determined by our culture? How are interdependence, connectedness, social dominance, aggression, and sexually influenced by gender roles?

  Revolution despite the bloodshed

What does Benjamin F. Bache believe that Americans should support the French Revolution despite the bloodshed taking place in France?

  Compare and contrast piaget and vygotsky concepts

Compare and contrast Piaget's and Vygotsky's concepts. Why does a parent, teacher or counselor need to be aware of these two theories?

  Topics in multicultural studies

Need to know where the information came from in order to site you correctly or research more to elaborate on a topic chosen.

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