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: 66% (15 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...
-
When 0.08 g of liquid X was vaporised at 100 C, 23 cm 3 of vapour was formed. The atmospheric pressure was 1.02 10 5 Pa. Calculate the relative molecular mass of liquid X. (R = 8.31 J K 1 mol 1 )
-
Figure P3.4 shows a graph of position as a function of time for an object moving along a horizontal surface. At which of the labeled points is the object speeding up? Data from Figure P3.4 x (m) 60...
-
Bella Company is considering purchasing new equipment for $450,000. It is expected that the equipment will produce net annual cash flows of $50,000 over its 10-year useful life. Annual depreciation...
-
The Fellsway Bank is considering placing ATM machines in the town centers of some of the following six communities: Arlington, Belmont, Cambridge, Winchester, Stoneham, and Melrose. The bank would...
-
CableTech Bell Corporation (CTB) operates in the telecommunications industry. CTB has two divisions: the Phone Division and the Cable Service Division. The Phone Division manufactures telephones in...
-
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...
-
This question is based on successful execution of the following command: CREATE VIEW changename AS SELECT customer#, lastname, firstname FROM customers WITH CHECK OPTION; Assume that the only...
-
Hala Company produces shirts for men. The following budgeted and actual amounts are for 2014: Requirement Prepare a performance report for Hala Company for the year. Cost Direct materials Direct...
-
Cintya Company purchased 6,000 units of raw material on account for $17,600, when the standard cost was $18,000. Later in the month, Cintya Company issued 5,600 units of raw materials for production,...
-
The Oliver Company manufactures products in two departments: Mixing and Packaging. The company allocates manufacturing overhead using a single plantwide rate with direct labor hours as the allocation...
-
Jaber, a law firm, employs activity-based costing (ABC.) The following budgeted data for each of the activity cost pools is provided for the year 2014. During 2014 the firm experienced 660 research...
-
Freddie Company, a division of Dorie Company, produces automotive batteries. Freddie sells the batteries to its customers for $92 per unit. The variable cost per unit is $55, and fixed costs per unit...
-
Will free trade and perfect competition lead to an equalization of wage rates internationally? Explain
-
At 31 December 20X9, the end of the annual reporting period, the accounts of Huron Company showed the following: a. Sales revenue for 20X9, $ 2,950,000, of which one- quarter was on credit. b....
-
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
-
In 2023, Mary Jane and her husband Peter, both architects, come to your accounting firm to seek help. They tell you, "We are concerned we're paying more tax than we owe. Our last accountant said we...
-
look up the cost of copper and the cost of zinc. How much is one penny worth in raw material?
-
What is tax planning? define its impacts and how it was implimented?
Study smarter with the SolutionInn App