Write a programme that will read a number within the range of 1 to 10 from...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a programme that will read a number within the range of 1 to 10 from the user. Then, the programme will print all numbers from 1 to 10 excluding the number entered by the user. For instance, if the user input 5, then all numbers from 1 to 10 will be printed, except for number 5. Write a programme that will read a number within the range of 1 to 10 from the user. Then, the programme will print all numbers from 1 to 10 excluding the number entered by the user. For instance, if the user input 5, then all numbers from 1 to 10 will be printed, except for number 5.
Expert Answer:
Answer rating: 100% (QA)
import javautilScanner public class Main public static void mainStri... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these databases questions
-
Within the range of recommended values of the spring index, C, determine the maximum and minimum percentage difference between the Bergstrsser factor, KB, and the Wahl factor, KW.
-
On a scale of 1 to 10 (10 is high), how well do you think Fitbit handled the Fitbit Force situation? After reading this feature, if you were shopping for a wearable fitness tracker, would you be more...
-
A box has numbers from 1 to 10. A number is drawn at random. Let X1 be the number drawn. This number is replaced, and the ten numbers mixed. A second number X2 is drawn. Find the distributions of X1...
-
4. Apple Inc. is a US-based technology company that plans to invest in a new research and development center in Europe and aims to raise the required funds as follows: < < - - A bond issue of...
-
The accounting records of JetAway Airlines reveal the following for the year ended September 30, 2008 (amounts in thousands: a. Prepare a comparative balance sheet for JetAway Airlines as of...
-
Son Corporation, an 80 percent-owned subsidiary of Pin Corporation, sold equipment with a book value of $300,000 to Pin for $500,000 at December 31, 2011. Separate income tax returns are filed, and a...
-
Describe why you should itemize deductions as opposed to taking the standard deduction.
-
Kelly Pitney began her consulting business, Kelly Consulting, P.C., on April 1, 2014. The accounting cycle for Kelly Consulting for April, including financial statements, was illustrated on pages...
-
Boeing just signed a contract to sell a Boeing 737 aircraft to Air France. Air France will be billed E50 million which is payable in one year. The current spot exchange rate is $1.1/E and the...
-
A rotating step shaft is loaded as shown, where the forces F A and FB are constant at 600 lbf and 300 lbf, respectively, and the torque T alternates from 0 to 1800 lbf in. The shaft is to be...
-
1. [40%] UFS is a manufacturer of furniture. It currently manufactures four products using the same machines and workforce (at the same workstations). UFS is interested in developing its capacity...
-
9. Three point-like charges are placed at the following points on the x-y system coordinates (q1 is fixed at x = -1.00 cm, 92 is fixed at y = +2.00 cm, and q3 is fixed at x = +3.00 cm. Find the...
-
At the beginning of the year, Golden Gopher Company reports a balance in Supplies of $430. During the year, Golden Gop purchases an additional $2,600 of supplies for cash. By the end of the year,...
-
Solve the following equation for x to five-figure accuracy. Round your answer to 2 decimal places.) 4x (1.205) + X $4,200 +x= 1.203 1.202 x= SA $
-
In wandering, a grizzly bear makes a displacement of 1521 m due west, followed by a displacement of 3267 m in a direction 37.0 north of west. What are the : The magnitude of the displacement from...
-
A projectile with mass 6 kg is fired from a catapult at an enemy's castle. The position of the projectile's location is recorded at six different times. All distances have been measured in meters. 1...
-
Let X1, . . . , Xn be i.i.d. Poisson(). Show that the family of distribution of the statistic T = Pn i=1 Xi is complete without using the Open Set Condition Theorem
-
Consider a game of poker being played with a standard 52-card deck (four suits, each of which has 13 different denominations of cards). At a certain point in the game, six cards have been exposed. Of...
-
David and Darlene Jasper have one child, Sam, who is 6 years old. The Jaspers reside at 4639 Honeysuckle Lane, Los Angeles, CA 90248. David's Social Security number is 577-11-3311, Darlene's is...
-
Deborah purchases a new $30,000 car in 2012 to use exclusively in her business. If Deborah does not elect to expense or take bonus depreciation in 2012 and holds the car until it is fully...
-
Steve Drake sells a rental house on January 1, 2012, and receives $130,000 cash and a note for $55,000 at 10 percent interest. The purchaser also assumes the mortgage on the property of $45,000....
-
You are required to prepare a purchases ledger control account from the following for the month of June. The balance of the account is to be taken as the amount of creditors as on 30 June. 19X6 June...
-
Prepare a sales ledger control account from the following: 19X5 May 1 Debit balances Totals for May: Sales journal Cash and cheques received from debtors Discounts allowed Debit balances in the sales...
-
Prepare a sales ledger control account from the following information for July 19X9, carrying down the balance at 31 July: 19X9 July 1 July 31 Sales ledger balances Sales journal 9,700 99,280 Bad...
Study smarter with the SolutionInn App