Sale!

(Solved) : Seem Input Numbers 1 2 3 4 5 Selection Need Input A1 A2 A3 A4 A5 Help Include Include Char Q34200184

$ 16.00

Answer to i can only seem to input numbers 1 2 3 4 5 for my selection i need to input a1 a2 a3 a4 a5. help? #include #include char…

SKU: cbb2bb333bea Category:

Description

i can only seem to input numbers 1 2 3 4 5 for my selection ineed to input a1 a2 a3 a4 a5. help?

#include <stdio.h>
#include <stdlib.h>

char* selection[5] = {“A1″,”A2″,”A3″,”A4″,”A5”}; //selectionchoices
char* Bars[5] = {“Mars”,”Bounty”,”Curly Wurly”,”ToffeeCrisp”,”Double Decker”}; //names of items
int Stock[5] = {2,2,2,2,2}; //stock of items
float Price[5] = {0.90,1.20,1.10,0.75,1.01}; //price of items
//function to display vending machine table
void display_table()
{
printf(“t|—————————————————————————|”);
printf(“tt|selection | %s | %s | %s | %s | %s |n”,selection[0],selection[1],selection[2],selection[3],selection[4]);
printf(“... View full description