QUESTION 3 [40 MARKS] In conjunction with Aidilfitri, a charity organization in Kuantan initiates to distribute Aidilfit

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

QUESTION 3 [40 MARKS] In conjunction with Aidilfitri, a charity organization in Kuantan initiates to distribute Aidilfit

Post by answerhappygod »

Question 3 40 Marks In Conjunction With Aidilfitri A Charity Organization In Kuantan Initiates To Distribute Aidilfit 1
Question 3 40 Marks In Conjunction With Aidilfitri A Charity Organization In Kuantan Initiates To Distribute Aidilfit 1 (40.47 KiB) Viewed 31 times
QUESTION 3 [40 MARKS] In conjunction with Aidilfitri, a charity organization in Kuantan initiates to distribute Aidilfitri gift hampers for several villages in Kuantan. The type of hamper, description and price for each hamper are tabulated in Table 3. AIDILFITRI GIFT HAMPER TYPE URBAN C Table 3 DESCRIPTION Chocolate Chip and Rainbow Rainbow and Butter Butter and Almond Almond and Nurs Nuts and Butter PRICE (RM/SET 55.00 72.50 100.00 125.00 75.00 Based on Table 3, there are five (5) types of gift hamper namely type C, R. B. A and N. Besides the allocated amount to distribute a gift hamper for each house, some amount of money to buy iftar meals for volunteers who are involved will be allocated as well, which is RM10.50 per volunteer. To ease the organization in calculating the total expenses for Aidilfitri gift hampers, a Donation System will be developed. To calculate, the following information are needed namely total number of villages, total number of gift hamper type to be distributed in the respective village and quantity for each type of gift hamper. Expected of user's input and output are shown in Figure 3. Based on the provided information, develop a C program that will be able to receive user's input and display back the entered input together with the required output which includes total number of villages, total quantity of gift hampers, total donation (RM), total number of volunteers and total amount of expenses for volunteers (RM). The application of 1D and 2D-array are compulsory.
Enter number of village Enter name of village #1 Enter number of volunteers for Kg. Sri Enter number of gift hampers type for Kg. Sri Enter gift hamper type #1 (C, R, B, A or N) Enter quantity for gift hamper type C Enter gift hamper type #2 (C, R, B, A or N) Enter quantity for gift hamper type R Enter name of village #2 Enter number of volunteers for Kg. Serai Enter number of gift hampers type for Kg. Serai Enter gift hamper type #1 (C, R, B, A Or N) Enter quantity for gift hamper type A Village Gift Hamper Type Hampers Quantity Kg. Sri с R Kg. Serai A Process returned 0 (0x0) Press any key to continue. Kg. Sri 10 R 10 execution time: 50.906 a Kg. Serai : Figure 3 A 20 10 10 Expenses for Volunteers (RM): 52.50 Total Donation (RM) 550.00 725.00 20 2500.00 Expenses for Volunteers (RM): 31.50 Total number of village Total quantity of hampers Total donation (RM) Total number of volunteers Total expenses for volunteer (RM): 84.00 40 3775.00 Imput Output
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply