A company decided to hire new employees. However, the ages of the new employees should be...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A company decided to hire new employees. However, the ages of the new employees should be between 21 and 31 (inclusive). Write a Java program that: Prompts the user to enter the name and the age (as an integer) of a new employee. Then displays a message to the user if he/she is eligible to join the company. Your program should follow (exactly) the format of the following samples: Sample Input: Enter the name of a new employee: Rami Saleh Sample Input: Enter the name of a new employee: Adel Sami Enter his/her age: Enter his/her age: 34 25 Sample Output: Rami Saleh can join the company Sample Output: Adel Sami cannot join the company A company decided to hire new employees. However, the ages of the new employees should be between 21 and 31 (inclusive). Write a Java program that: Prompts the user to enter the name and the age (as an integer) of a new employee. Then displays a message to the user if he/she is eligible to join the company. Your program should follow (exactly) the format of the following samples: Sample Input: Enter the name of a new employee: Rami Saleh Sample Input: Enter the name of a new employee: Adel Sami Enter his/her age: Enter his/her age: 34 25 Sample Output: Rami Saleh can join the company Sample Output: Adel Sami cannot join the company
Expert Answer:
Related Book For
Quantitative Methods for Business
ISBN: 978-0324651751
11th Edition
Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey cam
Posted Date:
Students also viewed these programming questions
-
Write a Java program that prompts the user for the page size used in a virtual memory system; this will be a power of two between 512 (2^9) and 16384 (2^14), inclusive. Your program should check the...
-
Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and print the middle-valued string. For example, if the three strings were "abcd", "wxyz",...
-
Write a program that prompts the user to enter the name of an ASCII text file and displays the frequency of the characters in the file.
-
Given the sprinkler system layout in Figure A, calculate the flow and pressure required at point RN#1 (point B in Figure B) without considering the impact of velocity pressures. Note that RN#1 (point...
-
The United States wheat market is shown in Figure 17P-3. Suppose the U.S. wants to protect its wheat industry by imposing a tariff of $1/bushel on foreign wheat, which currently sells at world price...
-
Determine the missing manufacturing cost data for Morton Company are presented below. Case A Case B $65,400 76,000 81,600 Case C Direct materials used Direct labor Manufacturing overhead Total...
-
Rank in order, from largest to smallest, the equivalent capacitance (C eq ) A to (C eq ) c of circuits A to C. 3 F 3 F 3 F 3F 3 F A. B. C.
-
Design Inc., in Newport, Rhode Island, entered into a contract with Buenavista, S.A. in Barcelona, Spain, to buy 1,000 sheets of stained glass. The contract contained a delivery clause that read FOB...
-
Please read my peer's novel story and give your opinions based on Suha's response (3rd-page) to the novel story. It should be a meaningful response to one ogna's observation/question/post for the...
-
A 1600 kg car is traveling over a hill that has a radius of curvature of 25 m. The car is slowing down as it goes over the hill. It slows down at a constant rate from a speed of 25 m/s to a speed of...
-
Omicron plc, an all-equity company, is investing in a project which will deliver a net present value of 10m. Omicron is planning to finance the project by borrowing 75m at a rate of 15%. The costs of...
-
Thanks Timothy for your input and discussing the concept of the risk-return trade-off. Under what specific circumstances can risk magnify a company's earnings in a positive way? Is it also possible...
-
1.10 Identify and discuss the circumstances where issues related to contract execution are outside of your scope of authority as an auctioneer.
-
Briefly explain what is meant by the following terms used in structuring financial products?
-
Description Amount Explanation Sales 200,000 Cost of goods sold 40,000 25,000 fixed + 18,000 variable Operating expenses 33,000 19,000 fixed + 13,000 variable Compute operating income using the...
-
Information for Computing Product Cost Description Amount Direct labor 20,000 Office supplies used 2,500 Direct materials used in production 35,000 Indirect factory labor (factory janitors) 4,500...
-
Dingo Corp is planning to pay out an annual dividend of $7 in perpetuity starting 8 years from now. If the market requires a return of 5.2% compounded quarterly on this investment, how much would a...
-
Write each fraction as a percent. 7 50
-
The J&B Card Shop sells calendars depicting a different Colonial scene each month. The once-a-year order for each years calendar arrives in September. From past experience, the September-to-July...
-
A mathematical programming system named SilverScreener uses a 0-1 integer programming model to help theater managers decide which movies to show on a weekly basis in a multiple-screen theater...
-
Open the file Foster Rev. Select cells B6:E8 and name these cells Shipping-Cost. Select cells B19:E21 and name these cells Units-Shipped. Use these names in the sum-product function in cell C14 to...
-
Go to www.kellogs.com, and examine the brands offered by Kelloggs. Using the BCG growth-share matrix, classify 10 brands as stars, question marks, cash cows, or dogs. Find at least one product you...
-
Discuss how a new brand manufacturer would go about defining their market segments and then begin to target them.
-
Diff Eyewear is a successful business built around a socially conscious mission. The company makes and sells stylish eyewear with comparable quality but a significantly lower price than luxury...
Study smarter with the SolutionInn App