1.) Write a RAPTOR program that asks the user to enter 4 numbers. After each number,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1.) Write a RAPTOR program that asks the user to enter 4 numbers. After each number, output two numbers: double and half of the number entered by the user. Hint: In RAPTOR, multiplication is accomplished using the star ( * ) character, and division uses the slash (/). Sample run (user input in blue, master console output shown in orange): Enter a number: 1 Double your number: 2 Half your number: 0.5000 Enter a number: 4 Double your number: 8 Half your number: 2 Enter a number: 15 Double your number: 30 Half your number: 7.5000 Enter a number: 10.5 Double your number: 21 Half your number: 5.2500 1.) Write a RAPTOR program that asks the user to enter 4 numbers. After each number, output two numbers: double and half of the number entered by the user. Hint: In RAPTOR, multiplication is accomplished using the star ( * ) character, and division uses the slash (/). Sample run (user input in blue, master console output shown in orange): Enter a number: 1 Double your number: 2 Half your number: 0.5000 Enter a number: 4 Double your number: 8 Half your number: 2 Enter a number: 15 Double your number: 30 Half your number: 7.5000 Enter a number: 10.5 Double your number: 21 Half your number: 5.2500
Expert Answer:
Answer rating: 100% (QA)
Here is a sample program written in RAPTOR that asks the u... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Because Im a mistake and packaging a case of 15 bottles of wine contain nine of brand, a and six of brand b, each without labels, all the bottles look like, and have equal probability of being chosen...
-
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...
-
Problem 8: (a) Consider a spherical shell of inner radius r, outer radius r2, thermal conductivity k, and emissivity . The outer surface of the shell is subjected to radiation to surrounding surfaces...
-
Explain whether each of the following events represents (i) a shi of the supply curve or (ii) a movement along the supply curve. a. More homeowners put their houses up for sale during a real estate...
-
Suppose the Financial Times reported that Japan intended to promote inflows of foreign direct investments by reducing or eliminating bureaucratic restrictions that discouraged foreign investors...
-
Bozo Inc. manufactures two products from a joint production process. The joint process costs $110,000 and yields 6,000 pounds of LTE compound and 20,000 pounds of HS compound. LTE can be sold at...
-
Amortization of Discount Stacy Company issued five-year, 10% bonds with a face value of $10,000 on January 1, 2008. Interest is paid annually on December 31. The market rate of interest on this date...
-
Data for Virtual Gaming Systems are provided in P124A. Earnings per share for the year ended December 31, 2015, are $1.40. The closing stock price on December 31, 2015, is $28.30. In P124A, The...
-
?The cost of the purchase of a used automobile is $ 2 0 , 0 0 0 ?including HST . ?If the automobile is leased, the monthly lease payment is $ 5 0 0 ?including HST . ?The automobile is driven for a...
-
Select all that apply Objectives of a cost management system include Blank______. Multiple select question. evaluating new activities that can improve organizational performance determining the...
-
Consider the six organizational forms discussed by the authors: has any emerged as the dominant paradigm in the late199 0s/early2000s? are the forms mutually exclusive? What are some variants? ...
-
Generally accepted accounting principles are: a. A set of guidelines to aid in the financial reporting process b. A set of laws to prevent financial fraud c. A set of standards for ethical conduct d....
-
Indicate the accounting concepts, principles, or constraints that underlie each of the following independent situations: accounting entity concept, going concern concept, cost-benefit constraint,...
-
What are increases in resources that a firm earns by providing goods or services to its customers? a. Assets b. Revenues c. Expenses d. Liabilities
-
Discuss what is meant by the term tangible personal property.
-
Cost of Production ReportLui Coffee Company roasts and packs coffee beans. The processbegins by placing coffee beans into the Roasting Department. Fromthe Roasting Department, coffee beans are then 2...
-
Highland Theatre is owned by Finnean Ferguson. At June 30, 2014, the ledger showed the following: Cash, $6,000; Land, $100,000; Buildings, $80,000; Equipment, $25,000; Accounts Payable, $5,000;...
-
Inherent Risk. Microsoft and Netscape were in fierce competition for dominance of the Internet web browser and software market in 1996. Netscape entered the Internet web browser market first and...
-
Materiality. Materiality should be considered by the auditor when (a) determining the nature, timing and extent of audit procedures and (b) evaluating the effect of misstatements. Required A. Define...
-
Audit risk. The following terms are related to audit risk: 1 Audit risk 2 Inherent risk 3 Control risk 4 Detection risk 5 Inherent limitations of an audit Required For each term: A. Provide a...
Study smarter with the SolutionInn App