Questions
Create a SavingsAccount class to store data of savers (account holders). Your class should match the...

Create a SavingsAccount class to store data of savers (account holders). Your class should match the following specifications.
1. Each instance of the class contains a private data member savingsBalance indicating the amount the saver currently has on deposit, saver’s name, saver’s CNIC, account number (this has to be unique) and a member to store saver status (if savingsBalance > 10000 then status changes to gold otherwise silver).
2. Class also has a data member annualInterestRate to store the annual interest rate which will be the same for all the savers.
3. Implement a default constructor with minimum savingsBalance of 100, and other fields as well. Also create a parameterized constructor if a customer wants to open an account with a different starting balance.
4. Provide member function calculateMonthlyInterest that calculates the monthly interest by multiplying the savingsBalance by annualInterestRate divided by 12; this interest should be added to savingsBalance.
5. Provide a recursive member function turnInToGold that returns the number of months a saver need to become gold member
6. Provide a member function modifyInterestRate that sets the annualInterestRate to a new value.
7. Provide a function that returns the total number of account holders with the bank.
8. Write main() to test class SavingsAccount . Instantiate two different objects of class SavingsAccount, s1 and s2, with balances of $2000.00 and $3000.00, respectively. Set the annualInterestRate to 3 percent. Then calculate the monthly interest and print the new balances for each of the savers. Then set the annualInterestRate to 4 percent, calculate the next Month’s interest and print the new balances for each of the savers. Also print the months it will take for both to become gold savers of bank.

In: Computer Science

Write a Java program which takes a String representing an arithmetic expression as an input and...

Write a Java program which takes a String representing an arithmetic expression as an input and displays whether or not the expression is balanced. If the expression is not balanced (i.e. the wrong # of parentheses or in the wrong order) it will display an error message. For Example: Input an expression: ( ( 2 + 4 ) * 2 ) Expression is balanced Input an expression: ( 5 * 7 – 6 ) ) Error: Expression is not balanced.... Implement a stack calculator using both a numbers and operations stack. Be sure to check that the expression is balanced before running it through the calculator.

In: Computer Science

What is the third variable problem? What type of research does it occur in? How can...

What is the third variable problem? What type of research does it occur in? How can you control for it?

In: Psychology

The theme of individual differences has been prominent throughout this book. However, some researchers argue that...

The theme of individual differences has been prominent throughout this book. However, some researchers argue that individual differences increase during our lives.

What are the trends with respect to the gender ratio for psychology Ph.D. degrees? What is the current gender ratio for the psychology faculty and for psychology majors at your own college or university? Why might the changing gender ratio help the women’s movement??

In: Psychology

Given all the negative effects of bitcoin, why are many central bankers contemplating the release of...

Given all the negative effects of bitcoin, why are many central bankers contemplating the release of their own digital currency? What are the possible benefits?

In: Economics

Do you agree that a certain degree of stress is necessary to induce high energy and...

Do you agree that a certain degree of stress is necessary to induce high energy and motivation?

In: Psychology

Public Speaking •Preparation: 1.What do you do to prepare for your speeches? 2.What might you have...

Public Speaking

•Preparation:

1.What do you do to prepare for your speeches?

2.What might you have done differently in order to be more effective?

•Introduction:

1.How effective were your attention-getting strategies?

2.How well did you relate your topics to your audience?

•Body:

1.Were you clear in your themes?

2.Overall, were your ideas developed thoroughly? Explain when and why.

3.How would you revise your speech so that you could improve it?

•Conclusion:

1.Overall, did you leave your audience with lasting impressions?

•Delivery:

1.What were your strengths?

2.What do you need to improve?

In: Operations Management

What are the four feedback levels in the Hattie text and how do they each apply...

What are the four feedback levels in the Hattie text and how do they each apply to formative assessment?

In: Psychology

There are four (4) questions based on the following article from the ABA Journal. The Ohio...

There are four (4) questions based on the following article from the ABA Journal. The Ohio Supreme Court has reversed an award of more than $360,000 in a suit against a grocery store chain that provided a motorized shopping cart to a customer who caused a collision and injured the plaintiff. The court said Giant Eagle wasn’t liable because there is insufficient evidence that its actions caused the incident. The plaintiff in the case, Barbara Rieger, was injured in December 2012 at a Giant Eagle in Brook Park, Ohio, when another shopper, Ruth Kurka, hit Rieger’s shopping cart with her motorized cart, according to the Ohio Supreme Court’s September 19th opinion. Rieger, who had been standing at the bakery counter, was knocked to the ground and taken to the hospital by ambulance, incurring $11,511 in medical bills. Kurka died before trial, and her estate settled with Rieger for $8,500. At trial, Rieger provided deposition testimony by Kurka’s husband, who said his wife had never been trained on how to operate the motorized cart. Rieger also presented evidence that there were 117 incidents involving motorized cars at Giant Eagle stores from 2004 to 2012. Deposition testimony by a Giant Eagle representative submitted at trial established that there are no instructions for operation on the motorized carts, and Giant Eagle assumes that people who use the carts know how to drive them. Jurors also heard evidence that Kurka had been driving motorized carts for more than a year and had no prior incidents. Jurors awarded $121,000 in compensatory damages and nearly $1.2 million in punitive damages. An appeals court lowered the punitive damages to $242,000. On appeal, Giant Eagle contended that the appeals court had eliminated the need to prove negligence and made the store an insurer for motorized cart incidents when it affirmed the verdict. The Ohio Supreme Court agreed with Giant Eagle and said a trial judge should have granted a directed verdict to the grocery store chain. It isn’t enough for a plaintiff to assert or speculate that a defendant’s actions or failure to act might have caused an injury, the court said. Instead, the plaintiff has to show that the harm would not have occurred but for the defendant’s behavior. “Despite the fact that Giant Eagle does not provide training for its customers who use the motorized carts, there is no evidence that training would have prevented the accident in this case,” the court said.

Giant Eagle took exception to the decision of the appeals court when it “eliminated the need to prove negligence and made the store an insurer for motorized cart incidents when it affirmed the verdict.” Since it was a negligence case, which requirement to prove negligence is demonstrated by the Ohio Supreme Court’s statement that “Giant Eagle wasn’t liable because there is insufficient evidence that its actions caused the incident”?

Group of answer choices

Unreasonable Behavior

Proximate Causation

Duty of Care

Causation in Fact

In: Operations Management

Discuss similarities and differences among these ways to measure data variation. Why would it seem reasonable...

Discuss similarities and differences among these ways to measure data variation.

Why would it seem reasonable to pair the median with a box-and-whisker plot & to pair the mean with the standard deviation?

What are the advantages and disadvantages of each method of describing data spread?

Comment on statements such as following:

a)      The range is easy to compute, but it doesn’t give much information;

b)      Although the standard deviation is more complicated to compute, it    
      has some significant applications;

c)      The box-and-whisker plot is fairly easy to construct and it gives a
       lot of information at a glance.

In: Math

A student has a flat board and a small block. From the experiment, he wants to...

A student has a flat board and a small block. From the experiment, he wants to determine the coefficients of static and kinetic frictions.

A) Placing the block on the board, the student raises one end of the board slowly. When the board has a vertical height of 20.0 cm, the block begins sliding down the length of the board, 77.3 cm. Using this information, what is the coefficient of static friction?

B) As the block slid down the length of the board, it accelerated. If it took 1.60s for the block to slide down the full length of the board, calculate the coefficient of kinetic friction.

C) The student now lowers the angle of the board from parts A and B and pushes the block to start it moving. At what angle will the block slide down at a constant speed?

D) The student now sets the board at and angle of 30.0 degrees. As they put the block on the board, they begin pushing on the block, perpendicular to the board, to prevent it from sliding. What is the minimum force needed to do this?

In: Physics

Analyze the current trends of software crisis in a specific industry in relation to software engineering...

Analyze the current trends of software crisis in a specific industry in relation to software engineering principles, concepts and methodology

In: Computer Science

Describe value analysis. What are the desirable outcomes of value analysis to the firm? To customers?

Describe value analysis. What are the desirable outcomes of value analysis to the firm?
To customers?

In: Operations Management

File has a format Name and number, the number represents power. The name and the (integer)...

File has a format Name and number, the number represents power. The name and the (integer) power are separated by some amount of space. Importantly, any line that begins with a hash '#' are comments and they need to be ingored. Write a program that reads from that file, and prints out only the name of the hero with the strongest power. That name should be capitalized (not uppercase, but capitalized, as in 'Galadriel')

Here is the heroes.txt

# DC heroes
# format: "name" "power"
# 57
# 83
hal 12
batman 48
grayson 14
cyclone 24
superman 38
luthor 15
joker 18
drake 33
wayne 42
rayner 18
# below heroes are additional heroes
arrow 22
kord 48
batwoman 37
supergirl 49
stargirl 24
darkseid 41
gardner 28
pennyworth 27
west 12
aquaman 47
kallor 45
arisia 36

What i have so far:

fn = open('heroes.txt')
count = 0

for z in fn:
line = z.strip()
  
if not '#' in line:
print(line.capitalize())
continue
po1 = line.find()
print(po1)
  
fn.close
  

In: Computer Science

You have been invited by a large global health foundation to advise them on how to...

You have been invited by a large global health foundation to advise them on how to spend $10 million on a global health program. They want the program to address today’s most important global health concern. How would you advise them to spend this money? Please justify your answer using relevant data.

In: Operations Management