0
Help me please!
How to code output like below: Enter how many shirt you want to buy : 2 Shirt #1 Choose color you want (1-Blue, 2-yellow, 3-Red) : 3 Do you want a collar[Y-Yes, N-No] : Y shirt #2 Choose color you want (1-Blue, 2-yellow, 3-Red) : 2 Do you want a collar[Y-Yes, N-No] : Y Then the looping stop because user input 2 number of shirt
4 Antworten
+ 2
How far are you in to coding? Can you get an input int and call it "quantity"?
Will you make a loop of "quantity" times,
then ask for the colour and save it to array line1(quantity-i) position 1,
ask for collar choice and save to array line(quantity-i) position 2,
then repeat the loop.
edit: by the way, nice psuedocode. a great start!
I'm still learning, there may be errors in my syntax!
+ 2
Whatever code you have tried in solving this problem, save a copy of it in SoloLearn. Then attach link to the code in your Descrption.
You might better your chances for good answers when you have shown an effort in trying.
Here's how we attach code links ...
https://www.sololearn.com/post/75089/?ref=app
+ 1
I'm really sorry, but I already started my courses in my university, not from this app and that's explain why my profile has nothing. I'm using this Sololearn is just for my personal use such as looking for a solution for the questions that is given by my real life lecturers in my university.
Thank you so much for the replies, it really helps me :)