);Рprintf(" 3:decimal to octal\n "); Рprintf(" 4:octal to decimal\n");Рprintf("enter your choice: ");Рscanf("%d",&choice);Р switch (choice)Р {?case 1: /* 选中1时处理*/Р printf("enter decimal value:");Р scanf("%d",&value);Р printf("%d in hexadecimal is:%x\n",value,value);Р break;Рcase 2: /* 选中2时处理*/Р printf("enter hexadecimal value:");Р scanf("%x",&value);Р printf("%x in decimal is:%d\n",value,value);Р break;Р case 3: /* 选中3时处理*/Р printf("enter decimal value:");Р scanf("%d",&value);Р printf("%d in octal is:%o\n",value,value);Р break;Р?case 4: /* 选中4时处理*/Р?printf("enter octal value:");Р scanf("%o",&value);Р printf("%o in decimal is:%d\n",value,value);Р break;Р }Р}Р解答:Р(1)运行结果:Р Р(2)运行结果分析:Р7. 模仿第6题,要求对输入的数字1~7转换成文字星期几,对其它数字不转换。例如,输入5时,程序应该输出Friday。Р解答:Р(1)源代码:Р(2)运行结果:Р Р(3)运行结果分析:Р三、结论(写本次实验的收获)