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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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