Question: write a program in c++ U0IEH 1 140 points)-Write a program. Submit a file named height.cpp Amusement parks have minimum heights for their rides. Create
write a program in c++

U0IEH 1 140 points)-Write a program. Submit a file named height.cpp Amusement parks have minimum heights for their rides. Create a program that adds users to the line of a ride in an amusement park if they meet the minimum height requirement (given in inches). Create three classes: . o o An amusement park class A ride class A rider class (people riding the rides) It should work with the following main (DO NOT MODIFY-NO CREDIT IF YOU MODIFY): int mainO Rider ri("Yaris,45), /ame, height in inches Rider r2(49): //height in inches Amusement park a1(3); //3 is the number of rides in the amusement park alget ride(1) add line(r1): //add a rider to the line of a ride Amusement park a2(2)://2 is the number of rides in the amusement park a2.get ride(1) add line(t2): //add a rider to the line of a ride return 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
