Question: Consider the following definitions: string Landline; struct Car struct OwnerName string address; { { }; int Price; Contact cont; struct Country int Model: String F_name;
Consider the following definitions: string Landline; struct Car struct OwnerName string address; { { }; int Price; Contact cont; struct Country int Model: String F_name; { String String L_name; string Registrationcity; Registartion Number; string District; Owner Name Oname: Country countryName; struct Contact }; Declare an array of 10 cars, Write function to read data in all above for 10 cars. Your task is to categorize the cars belong to America within its three States (Kansas, Chicago, New York). Check the data for each car and display the all information of the cars belong to Kansas, Chicago and New York, by checking its District and Landline number. The landline number should start by 816 for Lahore, 312 for Chicago and 718 for New York. You have to prompt user to enter choice of city and after that user can see all the cars with its complete detail of every car of that specific city. Also check the landline number that it should always start from +1 for checking that it belongs to America and its length should not be less and greater than 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
