completed program should print the numbers 0 through 10, along with their values multiplied by 2...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. You should accomplish this using a for loop instead of a counter-controlled while loop. Instructions 1. Write a for loop that uses the loop control variable to take on the values 0 through 10. 2. In the body of the loop, multiply the value of the loop control variable by 2 and by 10. 3. Execute the program and verify that the output is correct. completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. You should accomplish this using a for loop instead of a counter-controlled while loop. Instructions 1. Write a for loop that uses the loop control variable to take on the values 0 through 10. 2. In the body of the loop, multiply the value of the loop control variable by 2 and by 10. 3. Execute the program and verify that the output is correct.
Expert Answer:
Answer rating: 100% (QA)
eta r cc share 12345 mainpy 1 for i in range 11 00 0 1 2 10 2 4 ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Assuming no friction, if a falling ball arrives at the floor with kinetic energy of 350 J, what is its elastic potential energy when the ball comes to a complete stop?
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Let F(z, y) = 7(z + y) i + 5 sin(y) j. Find the tine integral of F around the perimeler of the rectangie with comers (4,0). (4,2). (-1,2). (-1,0). traversed in that order.
-
Mickey Limited is a manufacturing business that uses a standard costing system. The companys flexed budget for April 20X9 is: Sales 173,340 Costs Direct materials (22,500) Direct labour (37,684)...
-
Determine by direct integration the moment of inertia of the shaded area with respect to the x axis. r= kty
-
Don Lieberman and Associates, a CPA firm, uses job order costing to capture the costs of its audit jobs. There no audit jobs in process at the beginning of November. Listed below are data concerning...
-
Provide an example for actor generalization. What is the significance of generalizing or specializing actors?
-
City Bus Corporation provides school bus transportation to public schools in Lancaster County. City Bus owns 50 buses that are garaged in three different cities within the county. The firm faces...
-
As of 1 Jan 2020, Alliance Bank has the following balance sheet and no off-balance sheet transactions or securitisation activities. Assets Liabilities and equity Cash $24 Deposits $1176 Australian...
-
First Choice Company uses the FIFO cost formula in a perpetual inventory system. Fill in the missing amounts for items (a) through (k) in the following perpetual inventory record: Inventory Balance...
-
Calculator Company makes two specialty calculators, large keys & display, swipe keys Demand is so high for the product, that they sell all that they can make of either calculator. They are limited in...
-
Why might you need to use type casting?
-
A, B and C are partners sharing profits and losses in the ratio 2 : 2 : 1. The statement of financial position of the partnership as at 30 September 2013 was as follows: The partners agreed to...
-
You are required to draw up a statement of cash flows for K. Rock for the year ending 30 June 2013 from the following information using the IAS 7 layout. Gross profit Add Reduction in allowance for...
-
Why is the size of a data type important?
-
The following trial balance has been extracted from the books of Gain and Main as at 31 March 2011; Gain and Main are in partnership sharing profits and losses in the ratio 3 to 2: In appropriating...
-
Bland Manufacturing: Address the following areas pertaining to internal controls: use your flow charts, job descriptions, and organizational charts to help you identify: Weaknesses, the potential for...
-
If you want to solve a minimization problem by applying the geometric method to the dual problem, how many variables and problem constraints must be in the original problem?
-
Joan is a self-employed attorney in New York City. Joan took a trip to San Diego, CA, primarily for business, to consult with a client and take a short vacation. On the trip, Joan incurred the...
-
In the 2012 tax year, Michelle paid the following amounts relating to her 2010 tax return: Tax deficiency..........................................$5,000 Negligence...
-
Diego, age 28, married Dolores, age 27, in 2012. Their salaries for the year amounted to $46,479 and they had interest income of $3,500. Diego and Dolores' deductions for adjusted gross income...
-
Trans Clothing Alterations began operations on 1 August 2024 and completed the following transactions during the first month. 1. Tran deposited \($18\) 000 of her personal funds in a current account...
-
Finesse Fitness was established on 1 April 2024 with an initial investment of $60000 by the owner, Daniel Hewitt. During the first few months of business, the owner employed a student studying...
-
Jason Vu offers tutoring services to first-year university students. He has set up a sole proprietorship business named JV Tutoring. Jason has collected the following information relating to his...
Study smarter with the SolutionInn App