Question: c++ Q2:- Write a function called CarBattery that takes one parameters:Car type(string) and returns battery capacity (float) as follows :- Car Type Tesla Nissan leaf
c++Q2:- Write a function called CarBattery that takes one parameters:Car type(string) and returns battery capacity (float) as follows :- Car Type Tesla Nissan leaf Chevrolet Bolt Battery Capacity 56.0 kWh 30.0 kwh 35.0 kwh
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
