Magic 8 Ball is a toy developed in the 1950s and used for fortune-telling or advice-seeking. A
Question:
Magic 8 Ball is a toy developed in the 1950s and used for fortune-telling or advice-seeking. A player asks or thinks of a yes-or-no question such as, Will I be rich someday? The player then turns the ball over to see one of 20 randomly chosen responses, for example, It is certain or Very doubtful. Create a program that simulates the toy by allowing a user to type a question; the user then receives one of 20 random responses. Allow the user to keep asking questions until the user types in a sentinel value.
Save the program as Magic8Ball.java.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 70% (17 reviews)
import javautil public class Magic8Ball public static void mainString args int nu...View the full answer
Answered By
Ashington Waweru
I am a lecturer, research writer and also a qualified financial analyst and accountant. I am qualified and articulate in many disciplines including English, Accounting, Finance, Quantitative spreadsheet analysis, Economics, and Statistics. I am an expert with sixteen years of experience in online industry-related work. I have a master's in business administration and a bachelor’s degree in education, accounting, and economics options.
I am a writer and proofreading expert with sixteen years of experience in online writing, proofreading, and text editing. I have vast knowledge and experience in writing techniques and styles such as APA, ASA, MLA, Chicago, Turabian, IEEE, and many others.
I am also an online blogger and research writer with sixteen years of writing and proofreading articles and reports. I have written many scripts and articles for blogs, and I also specialize in search engine
I have sixteen years of experience in Excel data entry, Excel data analysis, R-studio quantitative analysis, SPSS quantitative analysis, research writing, and proofreading articles and reports. I will deliver the highest quality online and offline Excel, R, SPSS, and other spreadsheet solutions within your operational deadlines. I have also compiled many original Excel quantitative and text spreadsheets which solve client’s problems in my research writing career.
I have extensive enterprise resource planning accounting, financial modeling, financial reporting, and company analysis: customer relationship management, enterprise resource planning, financial accounting projects, and corporate finance.
I am articulate in psychology, engineering, nursing, counseling, project management, accounting, finance, quantitative spreadsheet analysis, statistical and economic analysis, among many other industry fields and academic disciplines. I work to solve problems and provide accurate and credible solutions and research reports in all industries in the global economy.
I have taught and conducted masters and Ph.D. thesis research for specialists in Quantitative finance, Financial Accounting, Actuarial science, Macroeconomics, Microeconomics, Risk Management, Managerial Economics, Engineering Economics, Financial economics, Taxation and many other disciplines including water engineering, psychology, e-commerce, mechanical engineering, leadership and many others.
I have developed many courses on online websites like Teachable and Thinkific. I also developed an accounting reporting automation software project for Utafiti sacco located at ILRI Uthiru Kenya when I was working there in year 2001.
I am a mature, self-motivated worker who delivers high-quality, on-time reports which solve client’s problems accurately.
I have written many academic and professional industry research papers and tutored many clients from college to university undergraduate, master's and Ph.D. students, and corporate professionals. I anticipate your hiring me.
I know I will deliver the highest quality work you will find anywhere to award me your project work. Please note that I am looking for a long-term work relationship with you. I look forward to you delivering the best service to you.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Create a Web page named magic.html that simulates the functionality of a Magic 8 Ball. Your page should look similar to the one in Figure 9.10, with a text box for entering a yes-or-no question, and...
-
In Chapter 9, you created a magic.html page that simulated the behavior of a Magic 8-Ball. As written, your page completely ignores the user's question while randomly selecting from a list of...
-
a. You created an application named DrugTests that produces a list of randomly selected employees who will be tested each week for the next 52 weeks. Now modify the program to include a count and...
-
A particle of mass m moves in a certain plane P due to a force F whose magnitude is constant and whose vector rotates in that plane with a constant angular velocity . Assuming the particle to be...
-
Dagwood has come to you with a pressing problem. In November 2005, he purchased an office building that he has rented out to various businesses. On May 2 of the current year, a fire swept through the...
-
What advantages does preventive maintenance have over breakdown maintenance?
-
Using information from the preceding question, suppose Copies R Us sold the machine for $5,000. What is the result of this disposal transaction? a. Gain of $2,000 b. Loss of $2,000 C. Gain of $3,000...
-
A cooling coil consists of a bank of aluminum (k = 237 W/m K) finned tubes having the core configuration of figure and an inner diameter of 13.8 mm. The tubes are installed in a plenum whose square...
-
Give an example of an organization that has developed a unique and valuable position in an industry outside of the airline industry, and give two or three examples of activities that they utilize to...
-
Suppose a publishing company wants to hire an intern to help the company catch up with its paperwork over the summer. Who would be affected by this decision? What would be the benefits or harm to...
-
Create an application containing an array that stores eight integers. The application should call five methods that in turn (1) Display all the integers, (2) Display all the integers in reverse...
-
a. Write an application that accepts up to 20 Strings, or fewer if the user enters a terminating value. Store each String in one of two listsone list for short Strings that are 10 characters or fewer...
-
Figure 4.9 gives a portion of a title-by-title analysis for the song "We've Got It Goin' On" by the Backstreet Boys. The ratings information given in this figure is the same type given in Figure 4.8...
-
What do aggregate demand and supply curves look like in Ethiopia (real world)? Provide me the graphical representation to back up AD and AS curves.
-
The following cost data for the month of May were taken from the records of the Terrence Manufacturing Company: ( CIA adapted ) Depreciation on factory equipment $ 1 , 3 0 0 Depreciation on sales...
-
The following is the post-closing trial balance for the Whitlow Manufacturing Corporation as of December 31, 2023. Account Title 3 Cash Accounts receivable Inventory Equipment Accumulated...
-
2-dz zdz - Evaluate along the curve Y=x
-
Mock cash flow statement for Big Rock Candy Mountain Mining Co. for fiscal 2020. Assuming net income of 24875, depreciation expense of 28995, and change in inventory of -652, please fill in the total...
-
Repeat Prob. 14106 for hot-water flow of a district heating system at 100°C. 500 m Oil 30 cm 3 m/s 45 cm 800 m
-
DC has unused FTC carryover from 2017 in the separate category for GC income as the result of income generated by a foreign branch. The income was foreign source general category income. In 2018 the...
-
Which of the following is not an advantage of creating a class that inherits from another class? a. You make it easier for anyone who has used the original class to understand the new class. b. You...
-
Employing inheritance reduces errors because _________. a. The new classes have access to fewer data fields b. The new classes have access to fewer methods c. You can copy and paste methods that you...
-
A class that is used as a basis for inheritance is called a _________. a. Derived class b. Subclass c. Base class d. Child class
-
Given that 8g(x)+7x sin(g(x)) = 8x + 41x - 42 and g() = 0, find g(). d' (33) =
-
In order to develop the model of a production system that contains a milling machine, we gathered the processing times of 1,000 parts that got processed from it. These data values were used directly...
-
Purpose of Conducting Financial Analysis Financial analysis is the process of evaluating businesses, projects, budgets, and other finance-related transactions to determine their performance and...
Study smarter with the SolutionInn App