Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Bir tekstil fabrikasnda rnlere 5 haneli bir kod numaras baslmtr. Verilen kod numarasnn ilk rakam rnn boyutunu (1-S, 2-M, 3-L, 4-X), sonraki rakam cinsiyeti (1-Erkek,
Bir tekstil fabrikasnda rnlere 5 haneli bir kod numaras baslmtr. Verilen kod numarasnn ilk rakam rnn boyutunu (1-S, 2-M, 3-L, 4-X), sonraki rakam cinsiyeti (1-Erkek, 2-Kadn) ve son iki rakamda renk kodunu gstermektedir. Kendisine gnderilen kod numarasna gre; rnn boyutunu , cinsiyeti ve renk kodunu reten kodCoz adndaki fonksiyonu yaznz. Kod numarasnn klavyeden girilmesi, fonksiyonun arlmas ve sonularn ekrana yazdrlmas gibi ilemler main (ana) fonksiyonda gereklemelidir.
RNEK ALIMA :
rn kod numarasn giriniz: 22500
-------------------------
Bu rnn boyutu:M, Cinsiyet:K, renk kodu : 500
A 5-digit code number is printed on the products in a textile factory. The first digit of the given code number indicates the size of the product (1-S, 2-M, 3-L, 4-X), the next digit indicates the gender (1-Male, 2-Female) and the last two digits the color code. According to the code number sent to him; Write the function named kodCoz that produces the size, gender and color code of the product. Operations such as entering the code number from the keyboard, calling the function and printing the results on the screen must be performed in the main function.
SAMPLE WORKING:
Enter the product code number: 22500
-------------------------
Size of this product: M, Gender: M, color code: 500
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started