A garden center wants to create unique stock codes for the plants they sell.
Table 1 shows some example plant details.
| plantID | plantName | supplier |
|---|---|---|
| P1 | LAVENDER | GREENGLOW |
| P2 | MARIGOLD | BLOOMTIME |
| P3 | BEGONIA | SUNGROW |
A stock code is made up of the:
plantIDplantNamesupplierFor example:
Write a C# program to create this stock code.
The program should:
plantID, plantName and suppliercodeYou should use meaningful variable name(s) and C# syntax in your answer.
Practise AQA GCSE Computer Science String handling operations in a programming language with exam-style questions for GCSE Computer Science. 90 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.