simulates coin tossing. Let the program toss a coin each time the user chooses the “Toss Coin” menu option. Count the number of times each side of the coin appears. Display the results. The program should call a separate method flip that takes no arguments and returns false for tails and true for heads. [ Note: If the program realistically simulates coin tossing, each side of the coin should appear approximately half the time.]
标签: the coin simulates chooses
上传时间: 2014-08-30
上传用户:pompey
Welcome to Beginning Algorithms, a step-by-step introduction to computing algorithms for the real world. Developers use algorithms and data structures every day of their working lives. Having a good understanding of these algorithms and knowledge of when to apply them is essential to producing software that not only works correctly, but also performs efficiently. This book aims to explain those algorithms and data structures most commonly encountered in day-today software development, while remaining at all times practical, concise, and to the point, with little or no verbiage to distract from the core concepts and examples.
标签: step-by-step introduction Algorithms algorithms
上传时间: 2016-05-08
上传用户:wlcaption
化工热力学计算,主要利用SRK方程计算混合气体组分逸度
上传时间: 2014-01-08
上传用户:ruan2570406
Exuberant Ctags is a multilanguage reimplementation of the much-underused ctags(1) program and is intended to be the mother of all ctags programs. It generates indexes of source code definitions which are used by a number of editors and tools. The motivation which drove the development of Exuberant Ctags was the need for a ctags program which supported generation of tags for all possible C language constructs (which no other ctags offers), and because most were easily fooled by a number of preprocessor contructs.
标签: reimplementation much-underused multilanguage Exuberant
上传时间: 2016-05-18
上传用户:小宝爱考拉
There are two files in the zip folder. bpsk_spread.m and jakesmodel.m Steps for simulation: 1] Run jakesmodel.m first 2] Then run bpsk_spread.m . 3] Note that during the first run bpsk_spread.m has no rayleigh fading.This is because the corresponding code has been commented 4] The resulting performance is stored in BER_awgn. 5] Now uncomment the Rayleigh Fading code in bpsk_spread.m file. 6] Same time comment BER_awgn (line 112) and uncomment BER_ray variable. 7] Run the simulation. To compare the perfromances of the receiver using DSSS plot the BER_awgn and BER_ray
标签: bpsk_spread jakesmodel simulation folder
上传时间: 2016-05-19
上传用户:ynsnjs
// This Communications Component is implemented using separate Read and Write // threads. Messages from the threads are posted to the Comm control which is // an invisible window. To handle data from the comm port, simply // attach a handler to OnReceiveData . There is no need to free the memory // buffer passed to this handler. If TAPI is used to open the comm port, some // changes to this component are needed ( StartComm currently opens the comm // port). The OnRequestHangup event is included to assist this. // // David Wann // Stamina Software // 28/02/96 // davidwann@hunterlink.net.au
标签: Communications implemented Component Messages
上传时间: 2016-05-30
上传用户:zhangyigenius
红外线遥控是目前使用最广泛的一种通信和遥控手段。由于红外线遥控装置具有体积小、功耗低、功能强、成本低等特点,因而,继彩电、录像机之后,在录音机、音响设备、空凋机以及玩具等其它小型电器装置上也纷纷采用红外线遥控。工业设备中,在高压、辐射、有毒气体、粉尘等环境下,采用红外线遥控不仅完全可靠而且能有效地隔离电气干扰。
上传时间: 2014-01-21
上传用户:SimonQQ
linux下用C语言写的聊天程序!/*BUG and NOTE: Not join protect to Shared Memory Segments,example Semaphore Arrays. Not check the parameters validity. When transmit may be error. If the client program no right exit,others cannot know,the service program shouldbe check the client program whether exist timing. The program when exit(), it do not delete the Shared Memory Segments,you maybe use atexit() but the program have some processes. When one process is exit(),others is continue. The service program s action is few. And so on. */
标签: Semaphore Segments example protect
上传时间: 2014-01-25
上传用户:xhz1993
matlab实现的多个基础程序和报告并有流程图(1) 绘出正弦信号波形及频谱。 (2) 单极性归零(RZ)波形及其功率谱,占空比为50%。 (3) 升余弦滚降波形的眼图及其功率谱。滚降系数为0.5。发送码元取值为0、2。 (4) 最佳基带系统的Pe~Eb\No曲线,升余弦滚降系数a=0.5,取样值的偏差是Ts/4。 (5) Pe~Eb\No,升余弦滚降系数a=0.5,取样时间无偏差,但信道是多径信道,C(f)=abs(1-0.5*exp(-j*2*pi*f*dt)),dt=Ts/2。 (6) 仿真数字基带传输系统,包括输入、输出信号波形及其功率谱,眼图(升余弦滚降系数a=0.5),Pe~Eb\No曲线,取样时间无偏差。
上传时间: 2014-01-22
上传用户:aix008
输入一句子以及一子字符串(字符数分别小于50) ,在句子中搜索是否含有该子字符串。如果句子中不包含子串,则显示’No match!’;否则显示’Match’,并把该子串在句子中第一个匹配的位置用十六进制数显示出来. (比如 ‘we are studing abc’. 中包含’abc’子串,出现在第10H位上;但不包括’xyz’子串.)
上传时间: 2013-12-18
上传用户:上善若水