Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Programming problem is too hard for me I've run out of time


  • This topic is locked This topic is locked

#1
emork

emork

    New Member

  • Member
  • Pip
  • 1 posts
Hello,
I am skilled in Networking and Systems Administration (MCSA Certified), but not in programming.

I have to get this project done like yesterday (I have truly ran out of time)
If you can provide me with the answer and the code maybe I can assist you with your networking needs, ex. Server 2003

Here is the Problem: (needs to be in java or C++)

Write an insurance costing program that does the following
1. Asks the user for their first name, stores the name in a variable called strFirstName
2. Asks the user for their last name, stores the name in a variable called strLastName
3. Asks the user for their age, stores the number in a variable called intAge
4. Asks the user if they are a smoker, stores the answer (0 or 1, Y or N, whatever you decide) in a variable called isASmoker

5. Determine the user’s monthly insurance rate based on the following criteria:

The base rate is 10 (dollars) a month
If the user is male, the base rate goes up 10%
If the user is between 50 and 65, the current rate goes up 20%
If the user is over 65, the current rate goes up 50%
If the user is a smoker, the current rate doubles
Example: A 66 year old male who smokes would pay:
Outputs, “Ok John Smith, your monthly payment will be $33.” (Where John Smith is the first name and last name taken from the user)

thankyou

Edited by sari, 30 July 2009 - 09:04 AM.
Removed email address

  • 0

Advertisements


#2
sari

sari

    GeekU Admin

  • Community Leader
  • 21,806 posts
  • MVP
This sounds like homework, and we're not here to assist with your homework problems. This topic is closed.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP