Question: Consider the following definitions: string Landline: string address: struct Car struct Owner Name strict Country int Price int Model: String Registartion Number: OwnerName Oname: Contact
Consider the following definitions: string Landline: string address: struct Car struct Owner Name strict Country int Price int Model: String Registartion Number: OwnerName Oname: Contact cont String F_name; String I_name: string Registrationcity: string District: Country countryName: struct Contact 1 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
