In my code when the customer is asked what they would like to purchase I need the code to show an error message if an item is selected that is not available in the menu could someone show me how I...
Type: Posts; User: Harveyh
In my code when the customer is asked what they would like to purchase I need the code to show an error message if an item is selected that is not available in the menu could someone show me how I...
I have written this code but when debugging an error appears in the function purchaseItem I can't see how to fix it can anyone help. Also any other errors in the code let me know.
#include...
struggling*
I am having trouble getting arrays to work how can i implement them into this, i jsut need arrays for the item and prices im struggled to get anything to work
#include <stdio.h>
struct...
Yes i see your solution now, could you show me how i could implement arrays for the shop item and for the prices of these items into that solution?
Sorry did you have a better solution I must of missed it. was it posted on my last thread?
arrays for the items and for the prices of items.
The items stored in an array defined as itemPrefixes
The prices stored in ab integer array as itemPrices.
The position “i” in itemPrefixes and...
I have been set a task to implement arrays into this code to make its usability better could any help and show me how i could do this
#include <stdio.h>
#include <stdlib.h> // This library is...
Hi, how could I implement functions into this code to make the readability and usability better? Thank you
#include <stdio.h>
int main()
{
int Orange = 0;
int Apple = 0;
Hi , this is very helpful but i am new to programming and have yet to learn about some of the things you have used in your code, i am still getting to know the basics. Could you show me how i would...
How can I assign a variable to whatever the user selects, I didn't know how to do that bit hence the long and repetitive code. Thank you
Could you show me an example of what it would look like as I'm am fairly new so I'm still getting to grips with everything?
#include <stdio.h>
int main()
{
int Orange;
int Apple;
int Pear;
int Budget;
char ItemChosen;
Would this piece of code need to be done for All the fruits with multiple decisions?
#include <stdio.h>
int main()
{
int Orange;
int Apple;
int Pear;
int Budget;
char ItemChosen;
Hi, I am brand new to programming and I am just getting to grips with C language. However, I am stuck! I have been ask to do a program which expects me to allow a customer to selected a piece of...