輸入一個數字 smallest number from your sorted list.: k,然後輸出第 k 小的數字。Input an index k and output the kth
輸入一個數字 smallest number from your sorted list.: k,然後輸出第 k 小的數字。Input an index k and output the kth
implement the following two programs and submit your reports with students
ID and name. Compress your program and reports as a file and named it with your
student ID.
Insertion sort
1. Implement an insertion sort program
Inputinput.txt
Outputoutput.txt
The name of the program should be named as studentID__insertion_sort.c/.cpp
k k Input an index k and output the kth
smallest number from your sorted list.
2. Please report how many numbers can be sorted by your program within 30
minutes. Please follow the instruction of docx attached. The file name should be
named as student ID and stored as pdf.
Prime Number
1. Please implement a program to check a number whether prime or not.
Inputinput_prime.txt
Outputoutput_prime.txt
The name of the program should be named as studentID__prime.c/.cpp
2. Please report the largest prime that your algorithm can find within 30
minutes. Please follow the instruction of docx attached. The file name should be
named as student ID and stored as pdf