题目详情
当前位置:首页 > 计算机考试 > 职称计算机考试
题目详情:
发布时间:2023-11-02 21:36:36

[简答题]如果张山1日到12日的最大日产量大于1500,评价为“良好”,否则“一般”。使用函数将评价结果填写在当前单元格中。

更多"如果张山1日到12日的最大日产量大于1500,评价为“良好”,否则“一"的相关试题:

[简答题]某生产小组5个工人的日产量分别为30、32、33、35、38件。 要求:计算工人平均日产量。
[填空题]给定程序中已建立一个带有头结点的单向链表,在main函数中将多次调用fun函数,每调用一次fun函数,输出链表尾部结点中的数据,并释放该结点,使链表缩短。
[注意] 部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun的横线上填入所编写的若干表达式或语句。
[试题源程序]
#include<stdio.h>
#include<stdlib.h>
#define N 8
typedef struct list

int data;
struct list *next;
SLIST;
void fun(SLIST *p)

SLIST *t, *s;
t=P->next;
s=p;
while(t->next!=NULL)

s=t;
/*********found**********/
t=t-> (1) ;

/**********found**********/
printf(”%d”, (2) );
s->next=NULL:
/**********found**********/
free( (3) );

SLIST *creatlist(int *a)

SLIST *h, *p, *q;
int i;
h=p=(SLIST *)malloc(sizeof(SLIST));
for(i=0; i<N; i++)

q=(SLIST *)malloc(sizeof(SLIST));
q->data=a[i];
p->next=q;
p=q;

P->next=0;
return h;

void outlist(SLIST *h)

SLIST *p;
p=h->next;
if(
[填空题]下列程序中,fun( )函数的功能是计算x2-2x+6,主函数中将调用fun( )函数计算。
y1=(x+8)2-2(x+8)+6
y2=sin2(x)-2sin(x)+6
请填空
#include "math.h"
double fun(double x)return(x*x-2*x+6);)
main( )
double x,y1,y2;
printf("enter x:");scanf("%1f",&x);
y1=fun(______);
y2=fun(______);
printf("y1=%1f,y2=%1f/n",y1,y2);
[填空题]以下程序中,函数fun的功能是计算X的2次方-2x+6,主函数中将调用fun函数计算: y1=(x+8)的2次方-2(X+8)+6 y2=sin2(x)一2sin(x)+6 请填空。 #include "math.h" double fun(double X){return(X*x-2*X+6);} main( ) {double x,yl,y2; printf("Enter x:");scanf("%If",&x); y1=fun(【 】); y2=fun(【 】); printf("y1=%If,y2=%lf\n",y1,y2); }
[填空题]以下程序中,函数fun的功能是计算x2(上标)-2x+6,主函数中将调用fun函数计算:
y1=(x+8)2-2(x+8)+6
y2=sin2(x)-2sin(x)+6
请填空。
#include "math.h"
double fun(double x) return (x*x-2*x+6);
main( )
double x,y1,y2;
printf("Enter x:"); scanf("%1f",&x);
y1=fim(______);
y2=run(______);
printf("y1=%1f,y2=%1f/n",y1,y2);

[填空题]下列程序中,fun( )函数的功能是计算x2-2x+6,主函数中将调用fun( )函数计算。
y1=(x+8)2=2(x+8)+6
y2=sin2(x)-2sin(x)+6
请填空:
#include<math.h>
double fun(double x)return(x*x-2*x+6);
main( )
double x, y1, y2;
printf("enter x: "); scanf("%1f", &x);
y1=fun(______);
y2=fun(______);
printf("y1=%1f, y2=%1f/n", y1, y2);

[填空题]以下程序中,函数fun的功能是计算x2-2x+6,主函数中将调用fun函数计算,请填空。
y1=(x+8)2-2(x+8)+6
y2=sin2(x)-2sin(x)+6
#include "math.h"
double fun(double x) return(______);
main( )
( double x,y1,y2;
printf("Enter x:"); scanf("%1f",&x);
yl=fun(8+x);
y2=fun(______);
printf("y1 =%1f,y2=%1f/n",y1,y2);


[填空题]以下程序中,函数fun的功能是计算x2-2x+6,主函数中将调用fun函数计算:
y1=(x+8)2-(x+8)+6
y2=sin2(x)-2sin(x)+6
请填空。
# include<math.h>
double fun(double x)return(x*x-2*x+6);
main( )
double x,y1,y2;
printf("Enter x:");scanf("%1f",&x);
y1=fun(______)
y2=fun(______)
printf("y1=%1f, y2=%1f/n",y1, y2);


[填空题]以下程序中,函数fun的功能是计算x2-2x+6,主函数中将调用fun函数计算:
y1=(x+8)2-2(x+8)+6
y2=sin2(x)-2sin(x)+6
请填空。
ginclude "math.h"
double fun(double x){return(x*x-2*x+6);}
main( )
{double x,y1,y2;
pfintf("Enterx:");scanf("%lf"&x);
y1=fun( [10] );y2=fun( [11] );
pintf("y1=%lf,y2=%lf/n",y1,y2);
}
[填空题]

以下程序中,函数fun的功能是计算x2(上标)-2x+6,主函数中将调用fun函数计算:
y1=(x+8)2(上标)-2(x+8)+6
y2=sin2(上标)(x)-2sin(x)+6
请填空。
#include "math.h"
double fun(double x){ return (x*x-2*x+6);}
main( )
{ double x,y1,y2;
printf("Enter x:"); scanf("%1f",&x);
y1=fim(());
y2=run(());
printf("y1=%1f,y2=%1f/n",y1,y2);
}


[填空题]以下程序段打开文件后,先利用fseek函数将文件位置指针定位在文件末尾,然后调用 ftell函数返回当前文件位置指针的具体位置,从而确定文件长度。请填空。
FILE * myf;long f1;
myf= 【20】 ("test.t","rb");
fseek(myf,0,SEEK END) ;
f1=ftell(myf);
fclose(myf);
printf("%d/n",f1);

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码