文章目录[隐藏]

本答案对应课程为:点我自动跳转查看
本课程起止时间为:2021-07-01到2021-07-29
本篇答案更新状态:已完结

【作业】Chapter 1 Introduction to C (引言) 查阅资料,了解并阐述C语言在各行各业的应用

1、 问题:查阅资料,阐述C语言在各行各业的应用。
评分规则: 【 摘要(中文和英文)
正文(中文,或中英文,或英文)
心得(中文)

Chapter 1 Introduction to C (引言) 运行速度比较

1、 问题:Which language does the computer run the fastest?
选项:
A:Machine Language
B:Assembley Language
C:Advanced Langugage
D:It takes the same amount of time
答案: 【Machine Language

【作业】Chapter 1 Introduction to C (引言) 安装软件

1、 问题:安装运行C语言代码的软件,如Microsoft Visual Stuio 或者 Dev_C++等。机房配备的是Visual Stuio,它占用空间较大,计算机二级考试使用这个平台。Dev_C++占用空间小,安装方便。请大家自行选择。成功安装后,请拍照上传至平台。
评分规则: 【 安装成功,给100分。,未成功0分

【作业】Chapter 2 C Data Types (C数据类型) 主观题作业

1、 问题:Write a C program that displays the following: ** * Hello World * **
评分规则: 【 完全正确100分,若出现小的错误,酌情扣分。

Chapter 2 C Data Types (C数据类型) 客观题

1、 问题:Which of the following are valid variable names? (下列哪些是合法的变量名?)
选项:
A:stock_code
B:money$
C:Jan_Sales
D:X-RAY
E:int
F:xyz
G:invoice_total
H:john’s_exam_mark
答案: 【stock_code;
Jan_Sales;
xyz;
invoice_total

2、 问题:Which of the following are valid variable definitions?下列哪些是合法的变量定义?
选项:
A:integer account_code;
B:float balance;
C:decimal total;
D:int age;
E:double int;
F:char c;
答案: 【float balance;;
int age;;
char c;

3、 问题:Assuming the following: 假设有如下定义:int i;char c;which of the following are valid C statements?下列哪些是合法的C语句?
选项:
A:c = ‘A’ ;
B: i = “1” ;
C:i = 1 ;
D: c = “A” ;
E: c = ‘1’;
答案: 【c = ‘A’ ;;
i = 1 ;;
c = ‘1’;

4、 问题:The data type of constant ‘X’ is char.常量‘X’的数据类型是char
选项:
A:正确
B:错误
答案: 【正确

5、 问题:The data type of constant -39 is int.常量-39的数据类型是int
选项:
A:正确
B:错误
答案: 【正确

6、 问题:The data type of constant -39.99 is double.常量-39.99的数据类型是double
选项:
A:正确
B:错误
答案: 【正确

7、 问题:The data type of constant -39.0 is float常量-39.0的数据类型是float
选项:
A:正确
B:错误
答案: 【错误

【作业】Chapter 2 C Data Types (C数据类型) 实验

1、 问题:课本15页7、8、9、11题。再现课本12页Program Example P2D无注释,扣2分。缺一个档扣10分。缺实验报告扣50分
评分规则: 【 每道题目20分,全部答对给满分;出现小错误酌情扣2-3分。

【作业】Chapter 3 Simple Arithmetic Operations and Expressions (简单的算术运算和表达式) 主观题作业

1、 问题:Write a program to compute the volume and the surface area of a box with a height of 10cm, a length of 11.5cm and a width of 2.5cm.
评分规则: 【 全部正确40分。无注释扣2分。没有在屏幕上显示结果扣5分。出现其它错误酌情扣分

2、 问题:课本28页第8题
评分规则: 【 每道小题10分,共60分。

Chapter 3 Simple Arithmetic Operations and Expressions (简单的算术运算和表达式) 客观题测试

1、 问题:Convert the following mathmatical equations into valid C statements:
答案: 【y=m * x+c

2、 问题:Convert the following mathmatical equations into valid C statements:
答案: 【C = 5 * (F – 32) / 9.0

3、 问题:Assuming the following variable definitions:int a=1, b=10, c=5;int d;What is the value of d after each of the following statements?d = b /c + 1;
答案: 【3

4、 问题:Assuming the following variable definitions:int a=1, b=10, c=5;int d;What is the value of d after each of the following statements?d = b % 3;
答案: 【1

5、 问题:Assuming the following variable definitions:int a=1, b=10, c=5;int d;What is the value of d after each of the following statements?d = ( ( -a % c ) + b ) * c ;
答案: 【45

6、 问题:Assuming the following definitions:int a = 12, b = 0, c = 3;int d;What is the value of a, b, c and d after the following statements?d = a++ + b++ – c–注意:请在答案处依次填写a,b,c,d四个变量的取值,四个数之间务必用一个空格隔开。
答案: 【13 1 2 9

【作业】Chapter 4 Keyboard Input and Screen Output (键盘输入和屏幕输出) 主观题作业

1、 问题:Assuming the human heart rate is 75 beats per minute, write a program to ask a user their age in years and to calculate the number of beats their heart has made so far in their life.
评分规则: 【 完全正确60分。无注释扣2分。没有在屏幕上显示结果扣5分。出现其它错误酌情扣分。

2、 问题:Suppose that v1, v2 and v3 are three floating-point variables with 5.0, -4.5, and 11.25, espectively. Write a printf() statement to display this line:v1 = 5 v2 = -4.5 v3 = 11.25
评分规则: 【 全部正确40分。无注释扣2分。出现其他错误酌情扣分。

Chapter 4 Keyboard Input and Screen Output (键盘输入和屏幕输出) 客观测试题

1、 问题:Find the error in the following program. They write the correct answer.#include int main() { int num; printf( “Please type a number followed by Enter” ) ; scanf( “%f”, num ) ; printf( “The number you typed was: %d”, num ) ; return 0 ;
答案: 【scanf(“%d”, &num);

2、 问题:Write a single scanf() statement to input values from the keyboard for the following:为下面的语句写一个简单的scanf()语句,用以接受对应的键盘输入。int second, third, fourth ;
答案: 【scanf(“%d%d%d”, &second, &third, &fourth);

3、 问题:Write a single scanf() statement to input values from the keyboard for the following:为下面的语句写一个简单的scanf()语句,用以接受对应的键盘输入float principal, rate, time ;
答案: 【scanf(“%f%f%f”, &principal, &rate, &time);

【作业】Chapter 5 Control Statements : if and switch (控制语句:if 和 switch) 主观题作业

1、 问题:Rewite the following if-else statement using a switch statement: if ( marriage_status == ‘S’ ) printf( “single” ) ; else if ( marriage_status == ‘M’ ) printf( “married” ) ; else if ( marriage_status == ‘W’ ) printf( “widowed” ) ; else if ( marriage_status == ‘E’ ) printf( “separated” ) ; else if ( marriage_status == ‘D’ ) printf( “divorced” ) ; else printf( “error:invalid code” ) ;
评分规则: 【 完全正确50分。无注释扣2分。出现其它错误酌情扣分。

2、 问题:Write a program to input two integers from the keyboard and check if the first integer is evenly divisble by the second. (Hint: Use the modulus operator %) 写一个程序,读入两个整数,判断第一个数是否能被第二个数整除。(提示:使用求余运算符%)
评分规则: 【 完全正确50分。无注释扣2分。没有在屏幕上显示扣5分。出现其它错误,酌情扣分。

本门课程剩余章节答案为付费内容
本文章不含期末不含主观题!!
本文章不含期末不含主观题!!
支付后可长期查看
有疑问请添加客服QQ 2356025045反馈
如遇卡顿看不了请换个浏览器即可打开
请看清楚了再购买哦,电子资源购买后不支持退款哦

   

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注