民航规定每位旅客可免费托运23千克的物品,手拎5千克,超过要罚款,罚款金额与托运超重重量成正比。已知一旅客携带40千克物品,被罚款60元,y表示罚款金额,x表示托运超重重量,则超重罚款公式为:
A: y=6x
B: y=5x
C: y=4x
D: y=3x
A: y=6x
B: y=5x
C: y=4x
D: y=3x
举一反三
- 如下C程序的输出是什么?#include [stdio.h]void Func1 (int x, int y);void Func2 (int *x, int *y); int main() { int x = 3; int y = 4;Func1 (x, y); printf ("x = %d, y = %d\n", x, y);Func2(&x, &y); printf ("x = %d, y = %d\n", x, y);} void Func1 (int x, int y) { x = x + y; y = x - y; x = x - y; printf ("x = %d, y = %d\n", x, y);} void Func2 (int *x, int *y) { *x = *x + *y; *y = *x - *y; *x = *x - *y;;} A: x = 3, y = 4x = 3, y = 4x = 3, y = 4 B: x = 4, y = 3x = 4, y = 3x = 4, y = 3 C: x = 3, y = 4x = 3, y = 4x = 4, y = 3 D: x = 4, y = 3x = 3, y = 4x = 4, y = 3
- 已有定义语句:int x=6,y=4,z=5;,执行以下语句后,能正确表示x,y,z值的选项是( )。if(x<;y) z=x;x=y;y=z; A: x=4,y=5,z=6 B: x=6,y=4,z=5 C: x=4,y=5,z=5 D: x=5,y=6,z=4
- 民航允许持票旅客每人按规定免费托运的行李重量为头等舱( )千克,公务舱( )千克,经济舱( )千克。
- 将正数12分成三个正数\(x\),\(y\),\(z\)之和,使得\(u=x^3y^2z\)为最大,则\(x\),\(y\),\(z\)分别为 A: \(x=6,y=1,z=5\) B: \(x=6,y=4,z=2\) C: \(x=6,y=3,z=3\) D: \(x=4,y=3,z=5\)
- 已有定义语句:int x=6,y=4,z=5;,执行以下语句if(x A: x=4,y=5,z=6 B: x=5,y=6,z=4 C: x=4,y=6,z=6 D: x=4,y=5,z=5