Write a program computehalf.java

Assignment Help JAVA Programming
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)

Reference no: EM13834654

Questions Cloud

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

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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