Read in numbers between 0-999 until the user enters-1. Print out the number in words along...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Read in numbers between 0-999 until the user enters-1. Print out the number in words along with the equivalent roman numeral. When -1 is entered, print "Done". Use Australian English grammar. Note the spelling of "four", "fourteen" and "forty". Check the instruction for Roman translation here. Sample 1/0: Enter a number between 8-999, or -1 to exit: 17 In Words: seventeen In Roman: XVII Enter a number between 0-999, or -1 to exit: 103 In Words: one hundred and three In Roman: CIII Enter a number between 8-999, or -1 to exit: 888 In Words: eight hundred In Roman: DCCC Enter a number between 8-999, or -1 to exit: 42 In Words: forty two In Roman: XLII Enter a number between 8-999, or -1 to exit: -1 Done Note: Strict grammar tells us to hyphenate compound numbers. ED expects you to just separate each word by a space. For simplicity, you should just separate each word by a space. Incremental goals Write down your incremental goals. For each goal, write down a plan. Your plan may consist of the patterns and general steps your code will follow. Do NOT try to write your entire Java solution here; that would defeat the whole purpose of the planning stage. For each goal, write down a plan. Your plan may consist of the patterns and general steps your code will follow. Do NOT try to write your entire Java solution here; that would defeat the whole purpose of the planning stage. ROMAN #1 #2 #3 # 4 #5 Incremental goals Plan Read in numbers between 0-999 until the user enters-1. Print out the number in words along with the equivalent roman numeral. When -1 is entered, print "Done". Use Australian English grammar. Note the spelling of "four", "fourteen" and "forty". Check the instruction for Roman translation here. Sample 1/0: Enter a number between 8-999, or -1 to exit: 17 In Words: seventeen In Roman: XVII Enter a number between 0-999, or -1 to exit: 103 In Words: one hundred and three In Roman: CIII Enter a number between 8-999, or -1 to exit: 888 In Words: eight hundred In Roman: DCCC Enter a number between 8-999, or -1 to exit: 42 In Words: forty two In Roman: XLII Enter a number between 8-999, or -1 to exit: -1 Done Note: Strict grammar tells us to hyphenate compound numbers. ED expects you to just separate each word by a space. For simplicity, you should just separate each word by a space. Incremental goals Write down your incremental goals. For each goal, write down a plan. Your plan may consist of the patterns and general steps your code will follow. Do NOT try to write your entire Java solution here; that would defeat the whole purpose of the planning stage. For each goal, write down a plan. Your plan may consist of the patterns and general steps your code will follow. Do NOT try to write your entire Java solution here; that would defeat the whole purpose of the planning stage. ROMAN #1 #2 #3 # 4 #5 Incremental goals Plan
Expert Answer:
Answer rating: 100% (QA)
Code Below is the code used to convert the number into words and Romans Function used to convert the number into equivalent words def inttowordsn Crea... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these programming questions
-
Why is it important for the nursing professional to have theoretical mastery and knowledge of research results to address a problem in the professional area? Why is it important for the nursing...
-
In this assignment, you are writing a program that converts common texting abbreviations to English words to allow people like yours truly can understand. For the assignment, you are provided with a...
-
Timpco, a retailer, makes both cash and credit sales (i.e., sales on open account). Information regarding budgeted sales for the last quarter of the year is as follows: Cash sales Credit sales Total...
-
Give the analysis report of Superstar Solar, Inc regarding the following requirements. Analysis of Superstar Solar, Inc.s Cost Classifications Analyze and provide examples in detail of the following...
-
A roller coaster at the Six Flags Great America amusement park in Gurnee, IL, incorporates some clever design technology and some basic physics. Each vertical loop, instead of being circular, is...
-
Jorge Michaels is the Winnipeg-based controller of SXSW Foods, a rapidly growing manufacturer and marketer of Mexican food products. Michaels is currently considering the purchase of a new cost...
-
The probability of getting a sum of 10 or 11 when a pair of dice is rolled is 5 36. Classify the statement as an example of classical probability, empirical probability, or subjective probability....
-
Methane reacts with chlorine to produce methyl chloride and hydrogen chloride. Once formed, the methyl chloride may undergo further chlorination to form methylenc chloride (CH 2 CI 2 ), chloroform,...
-
How can you (or anyone) improve time management skills? What are some strategies for effective time management? What might your employers think if you have poor time management on the job? How can...
-
Stinton Vintage Wine Company is currently family owned and has no debt. The Stinton family is considering going public by selling some of their stock in the company. Investment bankers tell them the...
-
You have become disillusioned with chemical engineering and have decided to become a rocket scientist. On your first day, your boss tells you that you are a member of the rocket fuel team and need to...
-
The firm's records indicate that Check 341 of March 1 was issued for $960 to pay the month's rent. However, the canceled check and the listing on the bank statement show that the actual amount of the...
-
Kara just graduated from college and has never had a credit card. Having a convenience user credit philosophy, what factors are most important to Kara in acquiring a credit card?
-
Prove the following relations: (C) Toct (12-312)1/2 3 (d) = ($152 + 8253 + $381).
-
Solve each of the equations/TVPs below. When you solve, indicate which method you are using (separable, linear, Bemoulli, exact) and why you chose that method. (-1499) # 1+9y2 dr dN di + N=Nte+2 no...
-
A firm extends credit to customers that the customers then collect. If the company wants to calculate how long it takes for them to receive payment on these accounts, what should they calculate?
-
1000 euro par value, 3% annual-coupon bond was issued 1.03.2015 and has 30 year maturity You purchased the bond on 20.10.2021 Market interest rate for similar securities is 2,8% Calculate following:...
-
Find the area of the surface generated by revolving the para- metric curve x = cos 1, y = sin? 1 (0 < I sa/2) about the y-axis.
-
What is it that a use case model describes?
-
When are closed questions appropriate for use in interviewing?
-
Brian F. OByrne (F, he says, stands for frozen.) owns a frozen food company and wants to develop an information system for tracking shipments to warehouses. a. Using the data from the table in Figure...
-
Suppose a bond is taxable for both federal and state purposes. Let Rb = the BTROR on the bond, tfed = the federal tax rate, and tst = the state tax rate. Determine the ATROR (i.e., after federal and...
-
Under what conditions are the Exempt Model and Pension Model equivalent? Under what conditions would one model perform better than the other? How does the \($6,500\) limitation on deductible and Roth...
-
Consider three taxpayers who are in the following tax brackets: Alice 25% Brad 35% Camille 40%
Study smarter with the SolutionInn App