Question: Please select the right solution for final cost and tax after running following progr void func ( int count, float& subTotal, float& taxCost ) {

Please select the right solution for final cost and tax after running following progr
void func(int count, float& subTotal, float& taxCost){
if(count10){
subTotal = count *0.50;
}
else{
subTotal = count *0.20;
}
taxCost =0.1* subTotal;
}
int main(){
float tax =0.0, subTotal =0.0;
func(20, subTotal, tax);
return 0;
}
The cost for 20 items is 0.00, and the tax for 4.00 is 0.40
The cost for 20 ltems is 4.00, and the tax for 4.00 is 0.40
The cost for 20 items is 0.00, and the tax for 4.00 is 0.00
The cost for 20 items is 4.00, and the tax for 4.00 is 0.00
Please select the right solution for final cost

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!