摘要: 任务:输入一个固定长度的数组,并输入一个要查找的数,给出能不能检索到的伪代码并测试 伪代码:Begin输入 list[6]<-{60,75,95,80,65,90}i<-1Read number mWhile i<=6 doIF m!=list[i] 则i++否则 停止IF i>6 则 print 阅读全文
posted @ 2023-02-17 06:39 20183125张尧 阅读(25) 评论(0) 推荐(0)
摘要: 写出对数组12,23,8,15,33,24,77,55进行一趟选择排序、冒泡排序、插入排序、快速排序的过程和结果 阅读全文
posted @ 2023-02-17 06:36 20183125张尧 阅读(15) 评论(0) 推荐(0)
摘要: 1. 上网查找什么是求两个数的最大公约数的欧几里得算法(辗转相除法),提交算法说明和网上链接。2. 参考教材,用伪代码(英语或汉语)实现欧几里得算法(辗转相除法),提交伪代码。3. 选择几组数据,手动走一下伪代码,测试你写的伪代码是否正确,提交测试过程截图。 1.什么是求两个数的最大公约数的欧几里得 阅读全文
posted @ 2023-02-17 06:29 20183125张尧 阅读(36) 评论(0) 推荐(0)
摘要: 用C语言实现下面伪代码描述的进制转换程序,提交运行结果截图,至少三张,包含转换为二进制,八进制,十六进制的截图。Write "Enter the new base"Read newBaseWrite "Enter the number to be converted"Read decimalNumb 阅读全文
posted @ 2023-02-17 06:27 20183125张尧 阅读(28) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #define KEY 0x86 int main() { char p_data[16] = {"20183125уер╒"}; char Encrypt[16]={0},Deco 阅读全文
posted @ 2023-02-17 06:23 20183125张尧 阅读(46) 评论(0) 推荐(0)
摘要: (1)编写一个伪代码算法,读入三个值,输出它们的和。(2)用PEP/9 机器指令实现(1)中的算法,提交测试结果截图。(3)用PEP/9 汇编语言实现(1)中的算法,提交测试结果截图。 伪代码 Set sum to 0Read num 1set sum to sum+num1read num2set 阅读全文
posted @ 2023-02-17 06:17 20183125张尧 阅读(32) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-17 06:14 20183125张尧 阅读(39) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-17 06:12 20183125张尧 阅读(96) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-17 06:12 20183125张尧 阅读(16) 评论(0) 推荐(0)
摘要: 如何用NOR(x,y)实现NOT(x),AND(x,y),OR(x,y),XOR(x,y)? 1.NOT(x)=NOR(x,0) 2.AND(x,y)=NOR[NOR(x,0),NOR(y,0)] 3.OR(x,y)=NOR[NOR(x,y),0] 4.XOR(x,y)=NOR{NOR(x,y),N 阅读全文
posted @ 2023-02-17 06:04 20183125张尧 阅读(235) 评论(0) 推荐(0)