Create a method to calculate monthly interest

Assignment Help Management Information Sys
Reference no: EM132287965

QUESTIONS

Note: In each question, assume that the user enters correct inputs. You can drag and drop components.

UPLOAD

• AccountSavings.java

• Person.java

• PersonTest.java

• YourFirstNameYourLastName.zip / YourFirstNameYourLastName.rar

1. Create a class AccountSavings. The class has two instance variables: a double variable to keep annual interest rate and a double variable to keep savings balance. The annual interest rate is 5.3 and savings balance is $100.

• Create a method to calculate monthly interest.

• Create a method to run two threads. Use anonymous classes to create these threads. The first thread calls the monthly interest calculation method 12 times, and then displays the savings balance (the balance in 12nd month). After that, this thread sleeps 5
seconds.

The second thread calls the monthly interest calculation method 12 times, and then displays the savings balance (the balance in 12nd month). Before the main thread ends, these two threads must be completed.

• Add your main method into the same class and test your threads. After these two threads are executed, the savings balance must remain same.

2. Create a class Person. A person has a first name and a last name. Create a constructor for the person. Use the interface Runnable to create a thread from the class Person. This thread displays a message that the given person is started to work (display his/her first name and last name). Then, the thread sleeps 5 seconds. And then, the thread displays that the given person is completed its job (display his/her first name and last name).

Then, create a class PersonTest. Use executor services to create a thread pool with a size of 3. Then, submit 4 Person threads. In the main thread, display a message that the all tasks are submitted, and display that all tasks are done.

Reference no: EM132287965

Questions Cloud

Demographic changes in the labor pool : Find a research paper, essay or video on a topic related to either workforce diversity, equity, and inclusion, or demographic changes in the labor pool.
Soft drink manufacturing in australia : Soft Drink Manufacturing in Australia - produced for business purposes, that summarizes a longer report or proposal or a group of related reports
Methods for groups participating in decision making : Analyze different methods for groups participating in decision making.
What does the term inflation describe : What does the term ‘Inflation' describe? What constitutes a ‘business cycle'? (Through which phases does an economy pass in the course of one cycle?
Create a method to calculate monthly interest : Create a class AccountSavings. The class has two instance variables: a double variable to keep annual interest rate and a double variable.
Outline the cost of goods sold and pricing : Outline the cost of goods sold and pricing. Explain the marketing strategy behind the pricing.
Develop a analysis of the international economy : Develop a minimum 1,050-word analysis of the international economy in which you do the following: As a team, choose three countries from the list below.
Digital strategy addresses consumers needs : How will you ensure your digital strategy addresses consumers’ needs?
Your first item online to be compliant with regulations : What are few things you need to make sure you understand before selling your first item online to be compliant with regulations?

Reviews

Write a Review

Management Information Sys Questions & Answers

  Describe the routing and switching infrastructure

Describe the routing and switching infrastructure and the routing protocols used in the environment. Illustrate the secure routing and switching infrastructure topology through the use of graphical tools in Microsoft Word or Visio, or an open sourc..

  Dbms and database environment

DBMS and database environment - Explain whether database management software is required to create the database environment.

  Suggest a significant benefit of interoperability

Elaborate on the trend of interoperability of health care management information systems - Determine a significant challenge that health care organizations will face when creating an interoperable system.

  Examine three elements of cyberbullying

The truth of the matter is that this number is probably much higher due to underreported instances of intentional death.

  Describe the types and effects of computer crime

Describe the types and effects of computer crime and identify preventive measures. How did participating in discussions help your understanding of the subject matter? Is anything still unclear that could be clarified

  How government can play a powerful role in shaping

How government can play a powerful role in shaping the development of a new technology in its earliest research stage?

  Create a competitive advantage through inventory management

Discuss how information technology can help to create a competitive advantage through inventory management.

  Challenges associated with requirement elicitation

What are some of the challenges associated with requirement elicitation - How does an iterative approach help that process?

  How an enterprise has successfully employed advantage obtain

Businesses are always striving to "win," as the course textbook points out in Chapter 1. One highly competitive marketplace is that of the commercial airline.

  Define the scope and boundaries of the plan

You are an information technology (IT) intern working for Health Network, Inc. (Health Network), a fictitious health services organization headquartered.

  What kind of data would you find helpful in populating

Write a paper that details how you would create a data system to reach potential customers .

  What are the research questions that motivate the study

What does the author claim is the significance of the study?How did the authors demonstrate that there is not a ready solution to the problem?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd