Skip to content
← Back to Community
Assignment
Profile icon
JagadeeswariSiv
  1. Create a Structure for holding details about the car like Model,Color,distance travelled, ,Rented or not And Create a Union inside this Structure which contains field like Name and Address of the Person renting the car,and date given for rental.If the Car is in shop for repair the structure should contain the date when the car was taken out for service and the reason for repair.
    Print all car owners names,whose car has been rented now

Test Cases:

Sample Input:

HondaBrio Black 20000 Yes Arun Metukuppam 01/07/2015
Alto Grey 50000 No 02/07/2015 oilleak
HondaCity Blue 10000 Yes Senthil Velahery 04/07/2015

Sample Output:

Arun
Senthil

Voters
Profile icon
JagadeeswariSiv
Comments
hotnewtop
Profile icon
Gekot

I can't imagine my trip without a car. I don't like hotel stays. I always want to learn about new places. This year has become a discovery of Kiev for me. It is a beautiful city, and it is best to get acquainted with its sights from a rented car. I advise this company https://alin.ua/en/rent/kyiv . I liked them because of their service and rental conditions.