中国大学慕课MOOC如何查看课程答案

Python018

中国大学慕课MOOC如何查看课程答案,第1张

中国大学慕课MOOC,智慧树(知到App)课程的答案和解析可以在一些微信公众号查看:

比如【土星题库】、【红桃题库】、【杨梅答题】、【海燕题库】等,具体操作也很简单。就是微信先关注其中一个公众号,然后输入自己的问题,随后就是答案和解析,很方便的。

智慧树(知到App)的操作也很简单。先是电脑端登陆智慧树点击头像,然后找到【共享课】进入,点击【作业考试】选项,接下来点击点击【单元测试】,或者你应该要做的作业,最后查看【参考答案】即可。

中国大学慕课MOOC认证证书:

该认证证书为纸质版,要修完课程并考试合格后才能得到,发放证书需由中国大学MOOC平台、高教社、高校、老师四方确认成绩有效。

目前已经能够申请证书的课程有国防科大的《高等数学1、4》、《大学计算机基础》、北大《翻转课堂教学法》、浙大《C语言程序设计》、哈工大《计算思维导论》等,相信未来会有更多的课程提供证书。

第一题:

#include <stdio.h>

int isPrime(int n)

void main(){

int count=0

int i=0

for(i=301i<=400i++){

if(isPrime(i)){

printf("%d ",i)

count++

}

}

printf("\n%d\n",count)

}

int isPrime(int n){

int i=0

if(n==2)

return 1

for(i=2i<ni++)

if(n%i==0)

return 0

return 1

}

第二题:

#include <stdio.h>

#define MAX_SIZE 100

void main(){

int i=0

char ch[MAX_SIZE]={'\0'}

int english=0

int number=0

gets(ch)

while(ch[i]!='\0'){

if((ch[i]>='a'&&ch[i]<='z') || (ch[i]>='A'&&ch[i]<='Z'))

english++

else if(ch[i]>='0'&&ch[i]<='9')

number++

i++

}

printf("%d%d\n",english,number)

}

第三题:

#include <stdio.h>

int fib(int,int ,int)

void main(){

int i=0

float sum=0

for(i=1i<=10i++){

sum += (float)fib(i,2,3)/fib(i,1,2)

}

printf("%f\n",sum)

}

int fib(int n,int first,int second){

int i=0

if(n==1)

return first

else if(n==2)

return second

else

return fib(n-1,first,second)+fib(n-2,first,second)

}

第四题:

#include <stdio.h>

/*Sunday Monday Tuesday Wednesday Thursday Friday Saturday*/

void main(){

char ch

printf("please input the first letter : ")

scanf("%c",&ch)

getchar()

switch(ch){

case 'm' :

case 'M' :

printf("Monday\n")

break

case 'w' :

case 'W' :

printf("Wednesday\n")

break

case 'f' :

case 'F' :

printf("Wednesday\n")

break

case 't' :

case 'T' :

printf("please input the second letter : ")

scanf("%c",&ch)

if(ch=='u'||ch=='U')

printf("Tuesday\n")

else if(ch=='h'||ch=='H')

printf("Thursday\n")

break

case 's' :

case 'S' :

printf("please input the second letter : ")

scanf("%c",&ch)

if(ch=='u'||ch=='U')

printf("Sunday\n")

else if(ch=='a'||ch=='A')

printf("Saturday\n")

break

}

}

未完,待续,算了,我直接把剩下的发到你邮箱吧

使用冒泡的算法,将p后面的n-p-1个元素向前交换p+1次:

#include "stdafx.h"

#include <iostream>

using namespace std

#define N 1000

int main()

{

int n, p

int num[N]

cout <<"请输入n值和p值:" <<endl

cin >>n >>p

cout <<"请输入" <<n <<"个数:" <<endl

for (int i = 0i <ni++)

cin >>num[i]

for (int i = 0i <= pi++)

{

for (int j = 0j <n - p - 1j++)

{

int temp = num[p+j-i]

num[p + j-i] = num[p + j + 1-i]

num[p + j + 1-i] = temp

}

}

for (int i = 0i <ni++)

cout <<num[i] <<" "

cout <<endl

system("pause")

  return 0

}