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

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

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