Answered step by step
Verified Expert Solution
Question
1 Approved Answer
plssss i neeed it help me Ah Seng owns a tyre shop located in Batu Pahat. In a month, he receives 10 units of tyre
plssss i neeed it help me
Ah Seng owns a tyre shop located in Batu Pahat. In a month, he receives 10 units of tyre directly from the tyre manufacturer. The tyres that he receives are varies in terms of their manufacturing date. Normally, he will arrange the tyres according to their manufacturing date, starting from the oldest at the bottom, to the newest at the top. However, his shop can only accommodate 6 tyres at a time. Therefore, he stores the remaining tyres in his home. Whenever the 6 tyres are sold, he will restock the tyres from the unit in his home. He will sell tyres with the latest manufacturing date available in his stock. As to date, Ah Seng has managed to sell tyres which manufactured from January to August 2020. TABLE Q3 shows the list of tyres which Ah Seng currently has. Write a C program to implement stack using array to visualize this situation. The program should display the latest tyre model at the top of the stack. TABLE Q3 Model Good Year Eagle Michelin XM2 Michelin PS4 Manufactured Date 30 August 2020 20 January 2020 4 October 2020 6 May 2020 19 February 2020 28 November 2020 9 September 2020 25 Disember 2020 18 March 2020 4 April 2020 Toyo Nano Energy Silverstone Kruizer Hankook Ventus Bridgestone Potenza Continental Ultra Contact Dunlop 15 Viking PT6 Ah Seng owns a tyre shop located in Batu Pahat. In a month, he receives 10 units of tyre directly from the tyre manufacturer. The tyres that he receives are varies in terms of their manufacturing date. Normally, he will arrange the tyres according to their manufacturing date, starting from the oldest at the bottom, to the newest at the top. However, his shop can only accommodate 6 tyres at a time. Therefore, he stores the remaining tyres in his home. Whenever the 6 tyres are sold, he will restock the tyres from the unit in his home. He will sell tyres with the latest manufacturing date available in his stock. As to date, Ah Seng has managed to sell tyres which manufactured from January to August 2020. TABLE Q3 shows the list of tyres which Ah Seng currently has. Write a C program to implement stack using array to visualize this situation. The program should display the latest tyre model at the top of the stack. TABLE Q3 Model Good Year Eagle Michelin XM2 Michelin PS4 Manufactured Date 30 August 2020 20 January 2020 4 October 2020 6 May 2020 19 February 2020 28 November 2020 9 September 2020 25 Disember 2020 18 March 2020 4 April 2020 Toyo Nano Energy Silverstone Kruizer Hankook Ventus Bridgestone Potenza Continental Ultra Contact Dunlop 15 Viking PT6Step 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