Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EN On sale days of a shopping site, some product categories are discounted. Some of the products purchased by a customer are electronic and some

EN

On sale days of a shopping site, some product categories are discounted. Some of the products purchased by a customer are electronic and some are bought from book aisles. Each product purchased from the electronic section is discounted by 18% at the safe, and each product purchased from the book section is discounted by 8%. The electronic department code is defined as E, and the book section code as K. According to the random product prices entered from the keyboard, write the code in the C programming language, which prints the amounts that the customer will pay after shopping, with and without discount. Product entries will continue until you say "finish shopping". Calculate the amount to be paid in the function.

TR

Bir alveri sitesinin indirim gnlerinde baz rn kategorilerinde indirim yaplmaktadr. Bir mterinin ald rnlerden bazlar elektronik bazlar da kitap reyonlarndan alnmtr. Elektronik reyonundan alnan her rn kasada %18, kitap reyonundan alnan her rn kasada %8 indirime uramaktadr. Elektronik reyon kodu E, kitap reyon kodu ise K olarak tanmlanmtr. Klavyeden girilen rastgele rn fiyatlarna gre mterinin alveri sonras indirimli ve indirimsiz halde deyecei tutarlar ekrana yazdran kodu C programlama dilinde yaznz. rn girileri alverii bitir diyene kadar devam edecektir. denmesi gereken tutar fonksiyonda hesaplaynz.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions