locked
EXERCISE RRS feed

  • Question

  • pLEASE I NEED YOUR ASSISTANCE

    Write a C# program to print a table of  grocery items and their prices. The program must have an input of items and prices of the items. Note: As you have not done instructions to input numeric values, let us assume that the prices are also string-variables.
    The format of the input must be:
    Input item1, priceBread
    Input item2, priceButter
    Input item3, priceMilk
    Input item4, priceMeat
    Note: To do string input:
    string item1; //declaration of item1
    item1 = console.ReadLine(); //read in the value of item1
    The same for the other variables…..
    The format of the table to be printed must be as follows:
    ************************************************************
    * ITEM NAME ITEM PRICE *
    * Bread R10 *
    * Butter R25 *
    * Milk R15 *
    * Meat R56 *
    ************************************************************r

    Tuesday, August 2, 2016 12:33 PM

Answers

  • Hi Joseph17,

    as you was already told in the other threads that you started: We do not do your homework for you. Please try it yourself. If you have any questions or if you didn't understand something then you are welcome to ask inside the forums and we will try to help / clarify.

    With kind regards,

    Konrad

    • Proposed as answer by Cor Ligthert Tuesday, August 2, 2016 1:26 PM
    • Marked as answer by DotNet Wang Wednesday, August 17, 2016 2:04 AM
    Tuesday, August 2, 2016 1:18 PM