Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C program that: defines a new structure named 'date' formatted as dd/mm (i.e., a date defined as 10/01) defines a new structure named

image text in transcribed

Write a C program that: defines a new structure named 'date' formatted as dd/mm (i.e., a date defined as 10/01) defines a new structure named 'produc 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)

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

8. Describe the steps in the development planning process.

Answered: 1 week ago