Compile and run the following program. What results do you get? Explain the results in your...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Compile and run the following program. What results do you get? Explain the results in your own words. #include<iostream> #include<cmath> using namespace std; int main() { } short x, y, z; system ("color f0"); // white background x=15200; y=x*2; z=y*2; cout<<x<<endl; cout<<y<<endl; cout<<z<<endl; system("PAUSE"); return 0; // To hold the screen Compile and run the following program. What results do you get? Explain the results in your own words. #include<iostream> #include<cmath> using namespace std; int main() { } short x, y, z; system ("color f0"); // white background x=15200; y=x*2; z=y*2; cout<<x<<endl; cout<<y<<endl; cout<<z<<endl; system("PAUSE"); return 0; // To hold the screen
Expert Answer:
Answer rating: 100% (QA)
The image shows a piece of C code that is intended to be compiled and run When this program is run it will likely not produce the expected results due ... View the full answer
Related Book For
Essentials Of Statistics For The Behavioral Sciences
ISBN: 9781464107771
3rd Edition
Authors: Susan A. Nolan
Posted Date:
Students also viewed these programming questions
-
A classic physics problem states that if a projectile is shot vertically up into the air with an initial velocity of 139 feet per second from an initial height of 136 feet off the ground, then the...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Correct the errors in the lines of code shown in Figure 4-34. (The code contains eight errors.)
-
Find the lengths of the curves. The curve r = a sin 2 (/2), 0 , a > 0
-
In 2014, Henry and his wife, Wendy, made the gifts shown below. All gifts are of present interests. What is Wendy's gift tax payable for 2014 if the couple elects gift splitting and Wendy's previous...
-
1.How much of a restaurant's revenue is spent on food and labor costs? 2. What is a restaurant budget? Explain why Restaurant Managers need a restaurant Budget to manage costs efficiently. 3. Define...
-
A cash receipts journal is provided in the Working Papers. Work independently to complete the following problem. David Rice and Tanya Taylor agree to form a partnership on July 1 of the current year....
-
The following comparative income statement (in thousands of dollars) for two recent years was adapted from the annual report of Speedway Motorsports, Inc., owner and operator of several major motor...
-
What are your thoughts on Cultural Tourism? 2. How important is it for a destination, country, or region to take part in cultural tourism? 3. What are some plans do you think local authorities must...
-
Bug-Off Exterminators provides pest control services and sells extermination products manufactured by other companies. Following is the company's unadjusted trial balance as of December 31, 2021....
-
The following stock price information has been collected for stock XYZ: Closing price End of year 2023 2022 2021 $127 $119 $123 2020 2019 $118 $121 XYZ has a correlation with the market portfolio of...
-
The Unconventional Franchise Model behind Chick-Fil-A's Success" WSJ -- URL: https://www.youtube.com/watch?v=grkHcEyZu04 Approaching the end of the term, you have learned the struggles faced and the...
-
Standard working hours for fulltime employee are 38hrs per week. Fulltime employee work between 8:30 AM and 5:06 PM with one hour unpaid lunch. Casual employees work up to 30hrs per week on any day...
-
Is Tesla's market value justified? How has Tesla been able to become a key player in an established industry such as the automotive sector? How concerned should Tesla's competitors be? Is the...
-
Weller Company's budgeted unit sales for the upcoming fiscal year are provided below. Budgeted unit sales 1st Quarter 2nd Quarter 3rd Quarter 4th Quarter 26,000 27,000 19,000 24,000 The company's...
-
Monique is paid solely by commission on a bi-weekly pay period basis. She has been employed for 5 years and her employment has been terminated. How many pay periods of insurable hours would you...
-
Consider a 2-D Build&Hold well profile. The KOP depth is 7,000 ft and the vertical depth and horizontal departure at the end of the curve are 10,000 ft and 1,500 ft, respectively. Find the...
-
Use integration by parts to evaluate the following. Check your answer by taking the derivative. x2e-xdx
-
Numeric results for several independent-samples t tests are presented here. Decide whether each test is statistically significant, and report each result in the standard APA format. a. A total of 73...
-
Do the data in the graph below show a linear relation, a nonlinear relation, or no relation? Explain. 6.00 5.00 4.00 3.00 2.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00
-
Explain the distinction between the terms independent samples and paired samples as they relate to t tests.
-
Discuss the idea that as society changes so does accounting.
-
What do you consider to be the main differences between fi nancial and management accounting?
-
Classify the following as an income, an expense, an asset or a liability: (a) Friend owes business money (b) Football clubs gate receipts (c) Petrol used by a car (d) Photocopier (e) Revenue or Sales...
Study smarter with the SolutionInn App