Wednesday, March 5, 2008

Assignment 4

Assignment A4: Arrays (Duration: 2 practical periods)

MyZan Departmental Store is planning to have a mega sale in the whole month of August as one of the activities to celebrate Malaysia’s 50 years of independence. The management of the store has decided to give a discount of 20% for all products sold throughout the store.

Write a program in C to read an initial price, then generate series of nine prices with incremental value of Ringgit Malaysia 10.00. The discounted prices are calculated based on the initial and generated prices. Display the prices and their corresponding discounted prices as in the figure below.

2 comments:

Scopiron said...

melayu punya tak dak ka cikgu

Scopiron said...

bila nak letak sukatan literasi komputer cikgu