溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("73分=C等級!!\n") else if (a>=60) printf("73分=D等級!!\n") else if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") else if (b>=80) printf("85分=B等級!!\n") else if (b>=70) printf("85分=C等級!!\n") else if (b>=60) printf("85分=D等級!!\n") else if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") else if (c>=80) printf("66分=B等級!!\n") else if (c>=70) printf("66分=C等級!!\n") else if (c>=60) printf("66分=D等級!!\n") else if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上传时间: 2013-12-12
上传用户:亚亚娟娟123
Data Structures and Algorithms with Object-Oriented Design Patterns in Java Bruno R. Preiss B.A.Sc., M.A.Sc., Ph.D., P.Eng. Associate Professor Department of Electrical and Computer Engineering University of Waterloo, Waterloo, Canada
标签: B.A.S R. Object-Oriented Algorithms
上传时间: 2017-03-07
上传用户:z754970244
18-2. D/A转换器基本知识18-3. 光导智能小车硬件实现18-4. ADC0832基本应用方法18-5. 光导智能小车软件实现A/D转换器的主要技术指标分辨率 使输出数字量变化一个相邻数码所需输入模拟电压的变化量。常 用二进制的位数表示。 例如:12位ADC的分辨率就是12位,一个10V满刻度的12位ADC能分辨 输入电压变化最小是: 10V×1/212=2.4mV量化误差 ADC把模拟量变为数字量,用数字量近似表示模拟量,这个过程称为量化。量化误差是ADC的有限位数对模拟量进行量化而引起的误差。A/D转换器的主要技术指标偏移误差 指输入信号为零时,输出信号不为零的值,所以有时又称为零值误差。满刻度误差 满刻度误差又称为增益误差。指满刻度输出数码所对应的实际输入电压与理想输入电压之差。线性度 线性度有时又称为非线性度,指转换器实际的转换特性与理想直线的最大偏差。A/D转换器的主要技术指标绝对精度 在一个转换器中,任何数码所对应的实际模拟量输入与理论模拟输入之差的最大值,称为绝对精度。对于ADC而言,可以在每一个阶梯的水平中点进行测量,它包括了所有的误差。转换速率 指ADC能够重复进行数据转换的速度,即每秒转换的次数。而完成一次A/D转换所需的时间(包括稳定时间),则是转换速率的倒数。
上传时间: 2013-11-25
上传用户:banlangen
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
标签: government streamline important alphabet
上传时间: 2015-06-09
上传用户:weixiao99
matlab解线性方程组的源代码 function x=nagauss2(a,b,flag) % 用途:选列主元Gauss消去法解线性方程组ax=b % 格式:x=nagauss2(a,b,flag) a为系数矩阵,b为右端列向量,flag若为0,则显示中间过程
标签: nagauss function matlab Gauss
上传时间: 2013-12-22
上传用户:exxxds
简单的A/D,D/A转换程序,适合初学者
标签:
上传时间: 2015-12-01
上传用户:偷心的海盗
This function obtains a unitary matrix Q such that: d=diag(Q *diag(lmd)*Q). In other words, it gives a way to generate a matrix with given eigenvalues and diagonal elements. By Daniel Perez Palomar (last revision: May 10, 2004). Feel free to distribute this file as it is (without including any modifications).
标签: diag function obtains unitary
上传时间: 2013-12-19
上传用户:dsgkjgkjg
1.有三根杆子A,B,C。A杆上有若干碟子 2.每次移动一块碟子,小的只能叠在大的上面 3.把所有碟子从A杆全部移到C杆上 经过研究发现,汉诺塔的破解很简单,就是按照移动规则向一个方向移动金片: 如3阶汉诺塔的移动:A→C,A→B,C→B,A→C,B→A,B→C,A→C 此外,汉诺塔问题也是程序设计中的经典递归问题
上传时间: 2016-07-25
上传用户:gxrui1991
A/D测试首先对A/D模块进行初始化操作,当A/D不忙时,进行A/D转化,A/D转化完毕产生中断,并将结果存入数组中。
上传时间: 2016-10-06
上传用户:思琦琦
单片机实验代码包括A/D,D/A,DS1302,按键中断编程,液晶显示代码,数码管显示代码
上传时间: 2013-12-10
上传用户:皇族传媒