学生姓名: __________ 学 号: ______________ 专业班级:_____________
实验类型:口验证□综合口设计口创新 实验日期:2012.09.13实验成绩: ________________________
一、实验项目名称
Lab 1: Be familiar with the Turbo C environment
二、 实验目的
1. 2. 3.
Be familiar with the Turbo C environment and the steps of programming in C.
Tostudy the meaning of each items in main menu.
Toknow how to edit, compile, link and run a C program.
三、 实验要求
1. 2.
Toknow the function of the items New、Load、Save、Write to 、Quit in Edit menu. Toknow the function of the items Run、User Screen in Run menu..
3? Toknow the function of the items compile to OBJ、Make EXE file inCompile Menu.
四、 主要仪器设备及耗材
Computer: IBM MicroComputer Model:8179
五、 实验步骤
1. Power on and login in System Windows 2000 2. Launch Turbo C
3. Edit, Compile, Link, and run the programming exercise P.55 No.4,5
六、 实验数据及处理结果(C源程序及调试结果)
P55 No.4
Source File:
#include
{double balance,rate,sum; printf(\scanf(\
printf(HAnnual interest rate percentage?\scanf(\
sum二balance* (1 +rate/l 00);
printf(nBalance after one year:%g\\n\
Results:
P56 No.6 Source File:
#include
{double pi=3.14159,r,A; printf(Hthe radius?\n%lfn,&r); A二pi*T*r;
printf(\
Results: