For the given program, how many cout statements will execute? void PrintShippingCharge(double itemWeight) {    if ((itemWeight > 0.0) && (itemWeight <= 10.0)) {          cout << (itemWeight * 0.75) << endl;    }   else if ((itemWeight > 10.0) && (itemWeight <= 15.0)) {      cout << (itemWeight * 0.85) << endl;    }   else if ((itemWeight > 15.0) && (itemWeight <= 20.0)) {       cout << (itemWeight * 0.95)<< endl;    } } int main() {    PrintShippingCharge(18);    PrintShippingCharge(6);    PrintShippingCharge(25);    return 0; }单项选择题

A

1

B

2

C

3

D

9

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!