Thread: can someone help me with this assignment

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    4

    Smile 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

    Plan 1:
    Cost per month---> $25.00
    Included anytime minutes per month---> 150
    Special offers---> unlimited weekend calling
    additional per minute rate---> $0.25

    Plan 2:
    Cost per month---> $35.00
    Included anytime minutes per month---> 100
    Special offers---> unlimited evening & weekend calling
    additional per minute rate---> $0.20

    Plan 3:
    Cost per month---> $50.00
    Included anytime minutes per month---> 350
    Special offers---> none
    additional per minute rate---> $0.15

    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

  2. #2
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Posts
    499
    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.

  3. #3
    Unregistered
    Guest
    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.

    -ado

  4. #4
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    write code and then request help
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Menu
    By Krush in forum C Programming
    Replies: 17
    Last Post: 09-01-2009, 02:34 AM
  2. Assignment Operator, Memory and Scope
    By SevenThunders in forum C++ Programming
    Replies: 47
    Last Post: 03-31-2008, 06:22 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Help with a pretty big C++ assignment
    By wakestudent988 in forum C++ Programming
    Replies: 1
    Last Post: 10-30-2006, 09:46 PM
  5. Replies: 1
    Last Post: 10-27-2006, 01:21 PM