Reference no: EM13834654
Problem 4. [30 points] On Facebook, you have a URL to your profile. If you haven't personalized it will be something like: https://www.facebook.com/9495834758943789
The number at the end is a unique hashcode for your profile generated by Facebook. If you have personalized it, it will be something like: https://www.facebook.com/CS110
Problem 1. In this example, CS110 is the name chosen for the personal Facebook profile. Your goal is to write a program FacebookURL.java that asks the user to enter their full Facebook URL. Call the method calculatelD that extracts the personalized part and returns it to the user. The method signature is:
public static String calculateID(String url)
Problem 2. Write a program SalaryCalculator.java that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions on the gross income:
Federal Income Tax: 15%
State Tax: 3.5%
Social Security Tax: 5.75% Medicare/Medicaid Tax: 2.75% Pension Plan: 5%
Health Insurance: $75.00
Your program should prompt the user to input the gross amount. Call the method computeDeductions in which you will print all the deductions and the net pay that will be paid to the employee. Format your output to have two decimal places. The method signature is:
public static void computeDeductions(double salary)
Problem 3. Write a program RemoveChar.Java that asks the user to enter two strings. Write a method concatStrings that concatenates them but omit the first char of each string. Print the concatenated string in the method.
The method signature is:
public static void concatStrings (String first, String second)
Use the above method in the main method on the strings entered by the user to display the concatenated string.
Problem 4. Write a program ComputeHalf.Java that asks the user to a string. Write a method secondHalf that returns the second half of the input string.
The method signature is:
public static String secondHalf (String input)
Analyze the proposition of franco modigliani and merton
: Analyze the proposition of Franco Modigliani and Merton Milles (MM). "When there are no taxes and capital markets work well, the market value of a company does not depend on its capital structure. In other words, CFOs cannot increase the value by cha..
|
To access and download stock and index price
: The objectives of this exercise: 1. To access and download stock and index price data from yahoo.com. 2. To discern the difference between a real-time closing price and an adjusted price. 3. To discover how yahoo.com calculates beta for an individ..
|
How much must the balance of the fund equal on june
: Stephen intends to make equal contributions on June 30 of each of the years 2010-2013. (Round all answers to 2 decimal places, e.g. 10,250.25.) (a) How much must the balance of the fund equal on June 30, 2013, in order for Stephen Bosworth to satisfy..
|
Explain the relationship between mechanical work and energy
: Explain the relationship between mechanical work and energy.Define Mechanical Work. Define energy, kinetic energy & gravitational potential energy.
|
Write a program computehalf.java
: Write a program ComputeHalf.Java that asks the user to a string. Write a method secondHalf that returns the second half of the input string.
|
What is the npv of her decision if she decides to do an mba
: Assume that cash inflows occur at the end of the year, while the cash outflows (tuition payments) occur at the beginning of the year. If she goes to work now, she can expect a salary of $50,000 per year for each of the next 20 years. If she gets an M..
|
How creativity and innovation relates to own situation
: Can you have Innovation without Creativity? Can people be more creative through the use of thinking tools? Can the human brain be used better, more creatively? Where does learning, artistry, memory, experience, education etc.
|
Discuss the various type of risk you are likely to encounter
: Your boss makes it clear that any successful bid must demonstrate a balance between risk and price.Explain why this is so, specifically, why price and risk are seen as equally important but opposite issues in determining the winner of the contract. I..
|
Childhood obesity is growing at an increasing rate
: Childhood obesity is growing at an increasing rate
|