Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

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

### #1 emork Posted 30 July 2009 - 08:02 AM

emork

New Member

• Member
• 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.

• 0

### #2 sari Posted 30 July 2009 - 09:05 AM

sari

• 21,079 posts
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