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

  Create a timeline for lives of artists in this unit project

Create a timeline for the lives of the artists in this Unit Project.

  What is different about high-tech industries

What is different about high-tech industries? Were all industries high tech?

  Initial value problem

Consider the initial value problem y'= -2xy , y(0) ? 2 . Apply Euler’s method to approximate this solution on the interval (0,0.5) with step size h=0.1. Apply the improved Euler method with step size h=0.1. Then solve the equation and compare the app..

  Divinity of jesus and doctrine of trinity

What proof is there that supports that Jesus is God? I do not quite understand how the Trinity fits into this discussion. How do critics e.g., non-Christians react to the Doctrine of the Trinity? Provide evidence for your position.

  Discuss why domestic violence police discretion

Discuss why domestic violence police discretion could lead to a death. Also, what was learned from the 1984, results of the Minneapolis Domestic Violence Experiment? Now, do you feel all reports of domestic violence should result in an arrest? Why or..

  Bimodal-trimodal or multimodal

According to the VARK Learning Styles Inventory, were you single preference, bimodal, trimodal, or multimodal? How will the study strategies for your results help you be a better online learner?

  Communicable disease chain

How can communicable diseases be broken at a link within the communicable disease chain? Are there steps that a nurse can take to facilitate this process? Give a specific example.

  Question on sociological perspectives

The functionalist, conflict, and interactionist perspectives can all be employed in analyzing social institutions. What are the strengths and weaknesses in each perspective's analysis of those institutions?

  Find the resolution of microscope with index of refraction

Find the resolution of a microscope with an index of refraction of 1.2 and a cone angle of 80º that is operated at a wavelength of 770nm

  What techniques would you employ-policy analyst

You are a policy analyst in a city where a card club/casino is being proposed. The city has become polarized over the thought of the project, which has not yet been submitted to the city council.

  Does the patagonia experience prove

Does the patagonia experience prove that anyone can do business with principles, or are there business realities that make it hard for others to copy this principled mangement model?

  What are some factors that contribute to stress

What are some factors that contribute to stress? Of these factors, which ones can organizations manage? What are some organizational approaches to reduce stress in the workplace?

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