0% found this document useful (0 votes)
41 views2 pages

輸入一個數字 smallest number from your sorted list.: k,然後輸出第 k 小的數字。Input an index k and output the kth

The document instructs students to implement two programs - an insertion sort program and a prime number checking program. For each program, students must write the code, test it on input and output files with their student ID in the file names, and write a report in PDF format with their student ID file name. The reports should include details on the maximum number of elements or largest prime number that can be processed within 30 minutes.

Uploaded by

k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

輸入一個數字 smallest number from your sorted list.: k,然後輸出第 k 小的數字。Input an index k and output the kth

The document instructs students to implement two programs - an insertion sort program and a prime number checking program. For each program, students must write the code, test it on input and output files with their student ID in the file names, and write a report in PDF format with their student ID file name. The reports should include details on the maximum number of elements or largest prime number that can be processed within 30 minutes.

Uploaded by

k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Please

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy