Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSIS 223 Object-Oriented Programming with C++ Lab03-DateStructure Date Structure Record) Create a Windows console program named Lab03-DateStructure in a suitable folder. Do not create a

image text in transcribedimage text in transcribed

CSIS 223 Object-Oriented Programming with C++ Lab03-DateStructure Date Structure Record) Create a Windows console program named Lab03-DateStructure in a suitable folder. Do not create a separate directory for the solution. Copy the completed version to H:lcSIS223 and turn in a copy of the entire program folder on drive X: when that drive becomes available The program defines the dateType structure to hold an entered current date and each prompted birth date. Three function prototypes are given. Implement these functions after main). Code main() routine below struct dateType int month int day int year; b; // function prototypes // prompt for month, day, year I/pass entered DOB and date today l/ eligibility based on age and gender dateType getDate(); ageInYears (dateType birthDate, dateType today); int bool isEligible(int currAge, char sex); int main() dateType currDate; dateType dob; char // structure to store today's date // structure to store each date of birth gender; age; prompt& input cout > gender; // prompt for gender code M/F // input gender code (first instance) continue unt while (gender != "Q && gender != 'q') Q entered to signal Quit gender toupper (gender); cout gender; cout

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions