Create a class hierarchy that will represent trips, including member variables to store trip details. Create member functions that will:
Study the sample output carefully so you can correctly implement the trip hierarchy.
Input
5
1·Zamboanga·Cagayan·494·5
1·Tagbilaran·Panglao·20·10
2·Cebu·Tagbilaran·90·800
3·Manila·Davao·1500·4500
3·Clark·Iloilo·751·2300Output
Trip·Constructor
Bus·Constructor
Bus·Trip:·Zamboanga·to·Cagayan,·494·km,·P5·base·fare
Trip·Constructor
Bus·Constructor
Bus·Trip:·Tagbilaran·to·Panglao,·20·km,·P10·base·fare
Trip·Constructor
Boat·Constructor
Boat·Trip:·Cebu·to·Tagbilaran,·90·km,·P800·base·fare
Trip·Constructor
Plane·Constructor
Plane·Trip:·Manila·to·Davao,·1500·km,·P4500·base·fare
Trip·Constructor
Plane·Constructor
Plane·Trip:·Clark·to·Iloilo,·751·km,·P2300·base·fare
Total·Cost·of·trips:·109509. Two 50 µF capacitor are connected in series. The equivalent capacitance of the combination is A. 25 µF B. 100 µF C. 50 µF D.200 µF 10. Two 50 µF capacitor are connected in parallel. The equivalent capacitance of the combination is A. 25 µF B. 100 µF C. 50 µF D. 200 µF
You invented an air capacitor. Its parallel plates are separated by 2.00 mm. Each plate carries a charge of 5.50 nC. The magnitude of the electric field of the plates is 5.50 x 105 V/m. Find the capacitance of your invented air capacitor.
You bought a parallel plate capacitor for the flash of your developed camera. It consists of two rectangular plates, each with area of 4.5 cm2, that are separated by a 2.00-mm thick ordinary glass. You then connected it with a 12.0 V battery. How much energy is stored in the capacitor?
(bubble sort)smaller values gradually “bubble” their way upward to the top of the array like air bubbles rising in water, while the larger values sink to the bottom. The bubble sort makes several passes through the array. On each pass, successive pairs of elements are compared. If a pair is in increasing order (or the values are identical), we leave the values as they are. If a pair is in decreasing order, their values are swapped in the array. The comparisons on each pass proceed as follows the 0th element value is compared to the 1st, the 1st is compared to the 2nd, the 2nd is compared to the third, the second-to-last element is compared to the last element. Write a function named bubblesort that accepts the unsorted array and the size as its parameter. The bubblesort function
sorts an array of 10 integers.Call the function in the main program with array argument and size to test its correctness. Note that the top of the array is the first element at index 0 and the bottom of the array is at index size-1
a sample of 150 students were chosen at random from grade 11 students who have laptops.Pampanga. the sample indicated that 75% of them were in favor of having an educational trip. find a) 95% and b) 99% confidence intervals for the proportion if all students who are in favor having an educational trip
How long must a train undergo constant acceleration in order to go from 35 km/h east to 45 km/h west ending up 250 mm west of its original position ?
in a random sample of 120 teachers, 48 of them have master's degree find the value o p
in a random sample of 120 teachers 48 of them have master's degree. find the value of p
From a box containing 4 black balls and 2 green balls,3 balls are dawn in succession. Each ball is placed back in the box before the next draw is made. Let G be a random variable representing the number of green balls that occur. Find the values of the rabdom variable G