Thread: iphone shop sch proj- i need help:(

  1. #1
    Registered User
    Join Date
    Jan 2020
    Posts
    2

    iphone shop sch proj- i need help:(

    I suck at programming and i rlly need help as it's due in a week's time
    ...
    OneTop sells iPhones and its accessories. Due to the growing demand for iPhones, theshop owner has decided to automate the sales process using a C program.
    This program allows the customer to select the phone model (iPhone 11, iPhone X) and itsaccessories(ear phone, additional battery, screen protector).
    Once the customer selects the phone model, the cost will be displayed. It then prompts thecustomer to select accessories and adds in costs of the selected accessories. The details ofthe selected items and the total cost are then displayed.
    When the above mentioned transaction is completed, it will then display the main menu againto handle the next customer.
    ...
    1) program must first get user's ID (ID 1-5)
    2) if ID is correct, customers can proceed to choose either iphone11 or iphoneX
    3)upon choosing either of the iphones, they can choose if they want to buy any accessory
    4) if customers select 'NO', program will calculate total price then display the last 3 customer's purchased details (iphone model + accessory + total purchase amt) the customers can choose if they want to make another purchase. Program will end if they select 'NO'
    5)if customers select 'YES' they can choose either one of the accessories. Upon selection, program will calculate total price, then display last 3 customer's purchased details (same as above) the customers can choose if they want to make another purchase. program will end if they select 'NO'
    ...
    if i'm not wrong the program should be able to loop but i'm honestly not very sure
    ...
    please help me create a c programme !! and thank you for reading this
    Last edited by lalaland; 01-16-2020 at 03:46 AM.

  2. #2
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    1,106
    I suck at programming
    If so, no one here will do your homework for you! YOU have make an attempt to code a solution with the skills you have been taught in class. Then post the code here with questions, and we can advise you.

    Please read the Forum Rules FAQ thoroughly!

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > I suck at programming and i rlly need help as it's due in a week's time
    You have plenty of time then to practice a few things, do some reading, post code attempts, get feedback etc etc.

    A development process
    Start small, compile often, test everything new to make sure it does what you expect.
    Post here when you're stuck.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Aug 2019
    Location
    inside a singularity
    Posts
    308
    It's a very good read. Thanks for linking it here.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook, The Wizardry Compiled

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help in hw/proj :(
    By DDUUAANNEEE in forum C++ Programming
    Replies: 5
    Last Post: 03-09-2013, 12:51 PM
  2. BorlandC proj
    By mary18 in forum C Programming
    Replies: 68
    Last Post: 02-20-2008, 11:22 AM
  3. export vc++ proj to dev c++
    By jay_uccs in forum C++ Programming
    Replies: 1
    Last Post: 06-26-2005, 07:43 AM
  4. Need Help on creating a Proj on Dev C++
    By djxtremor in forum C++ Programming
    Replies: 2
    Last Post: 11-19-2002, 08:24 PM

Tags for this Thread