Convert the following C++ program into Pep/9: #include using namespace std; const int amount = 20000;...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Convert the following C++ program into Pep/9: #include <iostream> using namespace std; const int amount = 20000; int num; int sum; int main() { cin>>num; sum = num + amount; cout << "sum = " << sum << endl; return 0; Convert the following C++ program into Pep/9: #include <iostream> using namespace std; const int amount = 20000; int num; int sum; int main() { cin>>num; sum = num + amount; cout << "sum = " << sum << endl; return 0;
Expert Answer:
Answer rating: 100% (QA)
Heres a corrected C code and an explanation for a possible Pep9 equivalent focusing on the calculati... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
(a) Use the following text to derive distributions for rat and chased. Use a five-word window, including open- and closed- class words, ignore case, punctuation and sentence boundaries and weight...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
This question concerns lexical grammars. (a) Tree Adjoining Grammars contain two types of elementary tree. (i) What are these trees called? [1 mark] (ii) If one were building a grammar for English...
-
In Power Bi please:I have a data table in the following format:DateSoccerBasketballBaseball2022 November9856602022 December10154612023 January10457642023 February100506 1 answer
-
The owner of the Petreno Pharmaceuticals Company is evaluating the expected annual sales for a new line of facial care products and estimates that there is a 60 percent chance that the product line...
-
For a r.v. X, show that É|X| for some fixed constant c > 0. E P(|X| 2 nc) < =D1
-
Harold Fail owned a plot of land in Georgia known as Ebenezer Landing, where he operated a public boat ramp and parking lot. In 1999, Fail and Steve Bodiford entered into an oral agreement...
-
The following information is available for Cole Bowling Alley at December 31, 2014. Prepare a classified statement of financial position; assume that $13,900 of the notes payable will be paid in2015....
-
If the trend towards authoritarianism continues and more democracies move towards the totalitarian side of the spectrum, how could that affect the international political system?
-
Harper Morgan owns White Mountain Assessments in Laconia, New Hampshire. The standard workweek is 40 hours. For the weekly payroll ending September 9, 2022, checks dated September 14, 2022, complete...
-
List 10 sources of applicants that organizations turn to when recruiting. For each source, identify needs specific to the source, as well as pros and cons of using the source for recruitment.
-
Women entrepreneurship in India: A case study of Jaishree Kabra of Kothari Silk: A lot of adapted analogue of entrepreneurship that would fit into the rural development context, argued here, is the...
-
A short summary of the podcast for this chapter (taken from Financial Decoder) "Financial planning is an ongoing, iterative process. But it always starts with identifying and defining goals. Why are...
-
Suppose two bidders compete for a single indivisible item (e.g., a used car, a piece of art, etc.). We assume that bidder 1 values the item at $v1, and bidder 2 values the item at $v2. We assume that...
-
We targeted followers for our second product in the Vodite Market. Its name was NUA. We were not the only team who targeted them. (Followers- These individuals represent the bulk of potential...
-
Some of the broad strategies to optimize energy efficiency in existing building involve the use of Energy Control Measures (ECMs). Demonstrate and evaluate any THREE (3) Energy Control Measures for...
-
Storey, Inc. is considering the purchase and installation of new manufacturing equipment to replace its old, worn-out equipment. The following information is available. 1. Useful life of the new...
-
Research an article from an online source, such as The Economist, Wall Street Journal, Journal of Economic Perspectives, American Journal of Agricultural Economics, or another academic journal. The...
-
Follow the instructions for starting C++ and viewing the TryThis16.cpp file, which is contained in either the Cpp8\Chap12\TryThis16 Project folder or the Cpp8\Chap12 folder. (Depending on your C++...
-
Figure 6-40 shows a partially completed chart for a program that displays the amount of a salespersons commission. The commission is based on the salespersons sales amount, as indicated in the...
-
Rewrite the code shown in Example 3 in Figure 12-5 so it displays the contents of the prices array, column by column. Use an outer for loop and a nested while loop. HOW TO Display the Contents of a...
-
Consider two alternatives, each of which will accomplish the same EPA-mandated pollution control. Using an incremental IRR analysis, determine the preferred alternative assuming MARR is 20...
-
The production department of Zunni's Manufacturing is considering two numerically controlled drill presses; one must be selected. Comparison data is shown in the table below. MARR is 10 percent/year....
-
What do you know about the mathematical value of the annual worth of a project under each of the following conditions? a. The present worth of the project is greater than 0 . b. The present worth of...
Study smarter with the SolutionInn App