<span>c. return a pointer to the first appearance of c appearing inside s and nullptr (0) if c does not appear inside s.</span>
Answer:
3.85 out of 4
Explanation:
As 96.1791 out of 100 gives 96.1791% calculated below:
Percentage formula: (Obtained value/total value)*100.......eq(1)
Putting values:
= (96.1791/100)*100
= 96.1791%
Now finding 96.1791% of 4:
Putting values in eq (1):
96.1791% = (Obtained value/4)*100
96.1791/100= (Obtained value/4) (dividing by 100 on both sides)
0.961791 = (Obtained value/4)
4* 0.961791 = Obtained value (multiplying 4 on both sides)
3.847164 = Obtained value
Then 96.1791% of 4 will be equal to: 0.961791 * 4 = 3.847164
Rounding off the answer to 2 decimal places:
=3.85 (As the digit on 3rd decimal place is greater than 5)
#include <iostream>
using namespace std;
class CarCounter {
public:
CarCounter();
CarCounter(const CarCounter& origCarCounter);
void SetCarCount(const int count) {
carCount = count;
}
int GetCarCount() const {
return carCount;
}
private:
int carCount;
};
CarCounter::CarCounter() {
carCount = 0;
return;
}
CarCounter::CarCounter(const CarCounter &p){
carCount = p.carCount;
}
void CountPrinter(CarCounter carCntr) {
cout << "Cars counted: " << carCntr.GetCarCount();
return;
}
int main() {
CarCounter parkingLot;
parkingLot.SetCarCount(5);
CountPrinter(parkingLot);
return 0;
}
Sample output:
Cars Counted: 5
She needs to make sure the camera is on and working, if she doesn't than it wont tranfer
Answer:
C. E-mail
Explanation:
Electronic mail is the best choice to convey urgent and highly sensitive information