23)Find the complete runtime function for the program below. #include using namespace std; int main() {...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
23)Find the complete runtime function for the program below. #include<iostream> using namespace std; int main() { int An; cout<<"how many numbers? \n"; cin>>n; for(int i=0; i<n; i++) { cout<<"enter number \n"; cin>>A; A = A *A; cout<<A<<endl;) return 0; 23)Find the complete runtime function for the program below. #include<iostream> using namespace std; int main() { int An; cout<<"how many numbers? \n"; cin>>n; for(int i=0; i<n; i++) { cout<<"enter number \n"; cin>>A; A = A *A; cout<<A<<endl;) return 0;
Expert Answer:
Answer rating: 100% (QA)
It looks like there are several syntax errors in the provided code Ill correct those errors and then ... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
Correct the errors in the lines of code shown in Figure 4-34. (The code contains eight errors.)
-
The site http://virtualpiano.net features an online player piano. If you click on the Key Assist menu just above the piano keyboard, and then Keyboard Keys, you will see that each key is labelled...
-
For selection of controls for the case-control analysis, investigators decided to use a matching process. Which variables did they choose to match on when selecting controls? For selection of...
-
In this hypothetical situation, you are responsible for shipping material that is measured as volumetric cargo - CBM, which stands for Cubic Meter, to be calculated as length X width X height. Also...
-
How much does the typical American family spend to go away on vacation each year? Twenty five randomly selected households reported the following vacation expenditures (rounded to the nearest hundred...
-
Do you agree that individual states should be able to place reasonable restrictions or waiting periods? Who should determine what is reasonable?
-
Your friend, Diane Kiefner, teaches elementary school and operates her own wilderness kayaking tours in the summers. She thinks she has been doing fine financially, but has never really measured her...
-
A new employee at an organization has trouble accurately filling out the forms they are required to complete for her/his job. It would be correct to say this is caused by a lack of motivation and...
-
You have been given a basic network that runs within the packet tracer program. The network is functioning as is. You have been asked to secure access to Server1 by making configuration changes to...
-
A linear analytical model of the automobile engine for the idle speed control system is shown in Fig. 2.245.The input of the system is the throule position that controls the rate of airflow into the...
-
Jane Smith fund in Australia currently manages four asset classes which are Australian equity, US equity, emerging market debt securities, and Australian commercial real estate. In 2021, the...
-
Consider a production function and the resource constraint Y = F(K, Lt) = AKO L and the capital accumulation equation Y = C + I + G e G = K Assume there is no population growth, so L = Lt+1= L (2)...
-
Find the debt to income ratio, the current ratio, and the emergency fund timeline. Blake's Personal Monthly Budget Sources of Income Employment Wages Interest Dividends TOTAL INCOME Sources of...
-
Zippy Co has 1,000,000 issued ordinary shares which are traded in an efficient capital market. The company has just paid dividend of $0.50 per share in 2019. Recent dividends paid by the company are...
-
On September 1, Alex Company received $3,000 in advance for 12 months of service to be provided, with the service period beginning on September 1. This $3.000 was recorded as Unearned Service Revenue...
-
2. Assume a person bends forward to lift a load "with his back" as shown in Figure P12.42a. The person's spine piv- ots mainly at the fifth lumbar vertebra, with the principal supporting force...
-
The instructions in the body of the _____________________ statement are always processed at least once during runtime. a. do while b. for c. while d. Both a and b
-
Follow the instructions for starting C++ and viewing the ModifyThis18.cpp file, which is contained in either the Cpp8\Chap12\ModifyThis18 Project folder or the Cpp8\Chap12 folder. (Depending on your...
-
Store A is having a BoGoHo (Buy One, Get One Half Off) sale. Store B is not having a sale, but sometimes its prices are much lower than at Store A. Write an algorithm that determines whether its...
-
The following figures relate to the production of product X: If the years production is 20,000 units and this product uses 25 per cent of total factory production, the unit cost for product X in...
-
A company buys and sells units of product P as follows: Under a FIFO method, the gross profit on the sold item is: A. :20. B. :24. C. :25. D. :30. 1 January buy 2 at 30 1 February 1 March buy 3 at 40...
-
If the company in 10b uses the weighted average method, the gross profit is: A. :20. B. :24. C. :25. D. :30.
Study smarter with the SolutionInn App