Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

URGENT: please solve this in C language thank you so much Q2. (35 marks) Write a C program that: - defines a new structure named

URGENT: please solve this in C languageimage text in transcribed thank you so much

Q2. (35 marks) Write a C program that: - defines a new structure named 'date' formatted as dd/mm (.e., a date defined as 10/01) - defines a new structure named 'product which contains three members as follows: Structure member Date type Description char array (max. 20 characters) the name of a product pname (can be more than one word) (a kind of fruit) the quantity of this kind qty unsigned of fruit in kilograms mfg structure date the manufacturing date defines a function to read a list of fruits with their basic information defines a function to print all fruits with the manufacturing date is between a start date and an end date creates a main program with a list of 5 fruits to test Example Output: Product name: Lemon Quantity in kgs: 10 Manufactured date: 24/09 Product name: Banana Quantity in kgs: 14 Manufactured date: 07/10 Product name: Avocado Quantity in kgs: 12 Manufactured date: 26/10 Product name: Jackfruit Quantity in kgs: 9 Manufactured date: 08/11 Product name: Custard Apple Quantity in kgs: 7 Manufactured date: 31/10 Enter a start date: 01/10 Enter an end date: 31/10 Product: Banana Quantity: 14 (kgs) Manufactured date: 07/10 Product: Avocado Quantity: 12 (kgs) Manufactured date: 26/10 Product: Custard Apple Quantity: 7 (kgs) Manufactured date: 31/10

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

More Books

Students also viewed these Databases questions