Write a program which uses a while loop to sum the squares of integers (starting from...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program which uses a while loop to sum the squares of integers (starting from 1) until the total exceeds 200. Print the final total and the last number to be squared and added. Q2. Write a program which finds the factorial of a given number. E.g. 3 factorial, or 3! is equal to 3 x 2 x 1; 5! is equal to 5 x 4 x 3 x 2 x 1, etc.. Your program should only contain a single loop. Q3. Write a program which prompts the user for 10 floating-point numbers and calculates their sum, product and average. Your program should only contain a single loop. Write a program which uses a while loop to sum the squares of integers (starting from 1) until the total exceeds 200. Print the final total and the last number to be squared and added. Q2. Write a program which finds the factorial of a given number. E.g. 3 factorial, or 3! is equal to 3 x 2 x 1; 5! is equal to 5 x 4 x 3 x 2 x 1, etc.. Your program should only contain a single loop. Q3. Write a program which prompts the user for 10 floating-point numbers and calculates their sum, product and average. Your program should only contain a single loop.
Expert Answer:
Answer rating: 100% (QA)
Here are the solutions to your questions python Q1 tot... View the full answer
Related Book For
Intermediate accounting
ISBN: 978-0077647094
7th edition
Authors: J. David Spiceland, James Sepe, Mark Nelson
Posted Date:
Students also viewed these programming questions
-
With at least three hundred words, please: Compare and contrast sampling distributions, interval estimation and hypothesis testing.
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
What type of isomers are exhibited by [Fe(en) 3 ]Cl 2 (en = ethane-1,2-diamine)? no isomers are possible. cis and trans isomers fac and mer isomers optical isomers
-
Blaine Corporation is considering replacing a technologically obsolete machine with a new state-of-the-art numerically controlled machine. The new machine would cost $180,000 and would have a...
-
What are the elements of a security program, according to NIST SP 800-14?
-
Elsie Vinton Laboratories is evaluating the purchase of five new MRI machines for its labs at various locations in Vancouver for \($9,000,000,\) which will increase the company's before-tax profit by...
-
Contrast the buying process for the DOD with buying process used by Target Corporations procurement of laundry detergent from P&G for resale in Target Stores. What aspects of those buying processes...
-
Perform the stated operation on the following functions: f(x) = 2x g(x) = x+1 (fog)(-2)
-
The soil mass in Figure P9-13 is loaded by a force transmitted through a circular footing as shown. Determine the stresses in the soil. Compare the values of r using an axisymmetric model with the ...
-
Honey plc is a UK company which has two forthcoming US dollar transactions, a $3,500,000 receipt from a US customer and a payment of $5,019,400 to a US supplier. These transactions are expected to...
-
How does the implementation of sophisticated employee recognition and reward systems contribute to talent retention and overall job satisfaction in highly competitive industries?
-
what ways does remote work and hybrid work arrangements alter traditional paradigms of workforce management and employee supervision ?
-
Assume Baker Co . has a beginning inventory of $ 2 0 , 0 0 0 , purchases of $ 4 0 , 0 0 0 , and cost of goods sold of $ 3 3 , 0 0 0 . What is Baker\'s ending inventory?
-
Wendell s Donut Shoppe is investigating the purchase of a new $ 3 4 , 1 0 0 donut - making machine. The new machine would permit the company to reduce the amount of part - time help needed, at a...
-
What are the implications of international labor law variations on multinational corporations' HR policies and practices, and how can companies navigate these complexities effectively ?
-
Class: Research Methods of Psychology Prompt: Answer the questions w/ . Do NOT use ChatGPT/AI Software to answer the questions, or you will be REPORTED ! GO INTO DETAIL! (+ Paragraphs for EACH...
-
Do the three planes x + 2x + x 3 = 4, X X 3 = 1, and x + 3x = 0 have at least one common point of intersection? Explain.
-
At the end of 2012, Majors Furniture Company failed to accrue $61,000 of interest expense that accrued during the last five months of 2012 on bonds payable. The bonds mature in 2026. The discount on...
-
On June 30, 2013, Fly-By-Night Airlines leased a jumbo jet from Boeing Corporation. The terms of the lease require Fly-By-Night to make 20 annual payments of $400,000 on each June 30. Generally...
-
[This is a variation of Exercise 5-3 focusing on journal entries.] Charter Corporation, which began business in 2013, appropriately uses the installment sales method of accounting for its installment...
-
Fullerton Bank quotes an ask rate of $.190 for the Peruvian currency (new sol) and a bid rate of $.188. Determine the bid/ask percentage spread.
-
What is the value of a put option if the underlying stock price is $60, the strike price is $65, the underlying stock volatility is 25 percent, and the risk-free rate is 5 percent? Assume the option...
-
Stetson Bank quotes a bid rate of $.784 for the Australian dollar and an ask rate of $.80. What is the bid/ask percentage spread?
Study smarter with the SolutionInn App