大学英语六级试卷和答案-实验一(实验报告示例)1

时间:2024.4.20

电子信息工程学系实验报告

课程名称:高级语言程序设计(C) 

实验项目名称:Simple Programming             实验时间: 20##-03-01     

班级:计海111    姓名 jayden吴贵城              学号:110704137      

                                                                                                                                             

:

The purpose of this experiment is to help students to know:

1.    What’s a C program?

2.    What’s the C programming environment and how to get familiar with the software environment

3.    How to write a simple program according to the requirements and get the        right output of the program.

:

Operating System: Window XP

Programming Software: Turbo C

:

       In the experiment,  3 problems need to be solved and they are:

       1            The key program is: #include "stdio.h"

#include "conio.h"

main()

{

    float h,s;

    scanf("%f",&h);

    s=(h-32)/1.8;

    printf("s=%.2f\n",s);

    getch();

}

       2….(Title of the problem)

            In this program, the main tools used are:

  

}

              The key program is:     #include "stdio.h"

#include "conio.h"

main()

{

    float r,pi,s;

    scanf("%f",&r);

    pi=3.14;

    s=pi*r*r;

    printf("%f",s);

getch();

}

       3….(Title of the problem)

              The key program is: #include "stdio.h"

#include "conio.h"

main()

{

      printf("2*1=\n");

      printf("2*2=\n");

      printf("2*3=\n");

      getch();

析:

       The output of the program 1 is :

       In this program, the problem I met are:

       The output of the program 2 is:

In this program, the problem I met are:

       The output of the program 3 is :

In this program, the problem I met are:

得:I can do the last one,it is so difficult.

附 录:


第二篇:实验一(实验报告示例)(2)


  电子信息工程学系实验报告

课程名称:高级语言程序设计(C) 

实验项目名称:Use of decision making( if else & operators)        

实验时间:2012/3/18    班级:计海111           

姓名:袁俊杰      学号:110704119    

                                                                                                                                             

实 验 目 的:

The purpose of this experiment is to help students to know:

       The purpose of this experiment is to help students to know:

   The use of if- else & decision making in programming

实 验 环 境:

Operating System: Window XP

Programming Software: turbo C/Win tc

实 验 内 容 及 过 程:

1.     Write a program to determine the given year is a leap year or not use the logical operators && and ||

 The key programm is :

  #include <stdio.h>

#include <conio.h>

main()

{

int year;

printf("Please input year\n");

scanf("%d",&year);

if ( year%4==0&&year%100!=0|| year%400==0)

   printf(" it is a leap year\n");

else

   printf(" it is not a leap year\n");

   getch();

}

2.    A library charges a fine for every book returned late for first 5 days the fine is 50 fen( jiao ) for 6-10 days fine is 1 rmb and above 10 days fine is 5 rmb. If return the book after 30 days your membership will be cancelled. Write a program to accept the number of days the member is late to return the book and display the fine or the appropriate message.

The key programm is :

#include <stdio.h>

#include <conio.h>

main()

{

   int day,fine;

   printf("Please input day\n");

   scanf("%d",&day);

   if( day>30)

     fine=" your membership will be cancelled";

       else if(day>10)

         fine="5 rmb";

           else if (day>5)

             fine="1 rmb ";

                                    else if(day>0)

                    fine=("50 fen");

                     else

                       fine=("0");

                        printf("%s\n",fine);

                         getch();

}

             

             

实 验 结 果 及 分 析:

       The output of the program 1

      

                                                                                   

      In this program, the problem 1 met are:Don’t use “&&.  ||”skillfully

The output of the program 2

   

       In this program, the problem 2 met are:why don’t use “else if”at the last

实 验 心 得:

Use C must be careful,

Reading the book usually

更多相关推荐:
实验报告大学英语

课程实验报告专业年级课程名称大学英语读写II指导教师唐秀娟学生姓名樊萌杨燕左中坚游忆学号20xx220xx320xx实验日期实验地点实验成绩教务处制20xx年月日小组互评组长樊萌组员左中坚

大学英语实验报告-英文写作组篇

课程实验报告专业年级课程名称指导教师学生姓名学号实验日期实验地点实验成绩教务处制20年月日

英语听说实验报告

课程实验报告专业年课程名指导教师安梅学生姓名李晋兰鹏学号实验日期20xx519实验地点实验成绩教务处制2014年3月10日注可根据实际情况加页

英语实验报告

实验报告课程名称大学英语实验项目基础英语口语听力训练专业班别姓名学号实验课室博学楼416指导教师刘红云实验日期广州职业技术学院教务处制一实验项目训练方案1广州珠江职业技术学院教务处制一实验项目训练方案2广州珠江...

英语读写实验报告

课程实验报告专业年级课程名称大学英语读写指导教师XXX学生姓名XXXXXX学号实验日期xxxx年x月x日实验地点xxxxxx实验成绩教务处制20xx年6月日注可根据实际情况加页

英语听说实验报告

课程实验报告专业年级20xx级工商管理课程名称新视野大学英语听说指导教师刘领学生姓名王珩璇钟练姚欢胡叶夏一马卫学号实验日期20xx年12月19日实验地点A4理工综合楼227实验成绩教务处制2012年12月19日...

英语实验报告20xx.3

课程实验报告专业年级课程名称指导教师学生姓名学号实验日期实验地点实验成绩教务处制20年月日注可根据实际情况加页

大学英语2实训报告作业

大学英语2实训报告作业TheFrenchPICASSOpenPICASSOMayadaycharmfashiontheps80Designconceptdesigncomefrom19xx39squottheg...

Superman小组英语话剧实验报告(金融实验班)

课程实验报告专业年级20xx级金融实验班课程名称大学英语读写指导教师覃薇学生姓唐树国20xx220xx11050张以桐20xx220xx11055吴青荣20xx220xx11060黄建雄20xx220xx110...

英语听说实验报告

课程实验报告专业年级20xx级课程名称大学英语视听说I指导教师欧咏华学生姓名徐杨钦陈双双马倩滕文文赵再凤雷琴学号20xx220xx120xx20xx220xx120xx实验日期20xx年12月11日实验地点A6...

液体表面张力深圳大学实验报告

深圳大学实验报告课程名称实验名称液体表面张力学院专业班级组号指导教师报告人学号实验地点科技楼908实验时间年月日星期实验报告提交时间123456

山东大学数据结构实验报告实验一

数据结构实验报告实验一

大学英语实验报告(11篇)