can someone help me with this assignment

This is a discussion on can someone help me with this assignment within the C Programming forums, part of the General Programming Boards category; Hi everyone! I am new at C Programming. Can someone help me with this assignment. I would really appreciate it. ...

can someone help me with this assignment

Hi everyone! I am new at C Programming. Can someone help me with this assignment. I would really appreciate it. We are only allowed to use "if/else" logic and no functions!

Assignment 1 -

Cellular (wireless) phones have become an increasingly
important part of our everyday life. Choosing a cellular
phone and accompanying service plan can however be
confusing for many customers (especially those who
do not read the fine print!).

For your first programming assignment this semester,
you are to write a C program that helps customers choose
between 3 (simplified) cellular phone service plans and
calculates the cost for the first month as well as the
projected average costs for subsequent months.
(see below for the details about each service plan).

One time only expenses:
Initial cost of phone-------------> $ 49.95
One time activation charge--------> $ 35.00

Service charges common to ALL plans:
System access fee-----------------> $ 6.95 per month
911 emergency fee-----------------> $ 0.25 per month

Your program should begin by asking the user for three
pieces of data:
1. Estimated total number of minutes used per month.
2. Percentage (5%, 10%, 25% etc.) of total minutes
called in the weekday daytime (8 a.m. to 6 p.m.) hours.
3. Percentage of total minutes called in the weekday
evening (6 p.m. to 8 a.m.) hours.

The percentage of total weekend minutes called may
be calculated by subtracting (daytime + evening)
from 100.

Your program should then process the information,
perform the necessary calculations, and display for
the user which plan is the most cost effective for
their particular usage levels, as well as display
the first month's invoice and subsequent projected
future month's invoice (1 only).

NOTE: When determining the monthly invoice, the
costs must also include taxes: GST(7%), & PST(8%).
You may assume that billing is done on a per second
basis (i.e. do not worry about rounding)
You may also assume that only correct data
(positive numeric) will be entered and that the
percentages will always total to 100%.
No data validation will be required.

A few sample runs of the program should look like this:
$ a.out
***Welcome to the Cellular Phone Analyzer (CPA)!***
Enter the estimated total number of monthly minutes: 175
Enter the percentage of daytime minutes: 80
Enter the percentage of evening minutes: 10

You should sign up for PLAN 1...
First month's invoice------> $141.19
Projected monthly invoice--> $ 43.50

$ a.out
***Welcome to the Cellular Phone Analyzer (CPA)!***
Enter the estimated total number of monthly minutes: 250
Enter the percentage of daytime minutes: 10
Enter the percentage of evening minutes: 50

You should sign up for PLAN 2...
First month's invoice------> $149.67
Projected monthly invoice--> $ 51.98

$ a.out
***Welcome to the Cellular Phone Analyzer (CPA)!***
Enter the estimated total number of monthly minutes: 280
Enter the percentage of daytime minutes: 90
Enter the percentage of evening minutes: 5

You should sign up for PLAN 3...
First month's invoice------> $163.47
Projected monthly invoice--> $ 65.78

This is not terribly difficult at all. I think that if you put some effort into solving this problem yourself, you will learn a lot and be very pleased with your accomplishments. Give it the old college try and if after a while you get stuck, then people here will be glad to give you some help. Welcome to the boards, we're glad to have ya.

it seems to me (new to this as well) that the programming element of this isnt very difficult at all.
what i would do is sit down with a pen and paper and plan the whole thing out first. decide on a structure for the if/else decision making.
alalyse all the problem and simplify it.
a flow chart is alwasy a good way to simplify things.
once you have the program going, then you can add some bells and whistles.