PRF192_-_PE1_-_FA2024_2926.webp
M

PRF192_-_PE1_-_FA2024_2926.webp

  • Media owner Maki95
  • Ngày thêm
3. Write a function to calculate S according to the following formula (n > 0): (2 marks)
11 21 31 n!1+√1+1+2+√1+√2+1+2+3+√1+√2+√3++ 1+2+n+√1+√2 + √3 + ... + √n S=
4. Write a function that returns a list of even elements and sorts them in ascending order from an unsorted array of integers (1.5 marks)
5. Write main() function to invoke the 4 functions above:
+ Offertext menu for user choice to execute the functions. (1 mark)
+ For each choice, demonstration of successfully running the selected function (0.5 mark for each).
Note:
1. Students are only allowed to use DevC++ software and offline documents (on personal computers)
2. Students only submit a single source code file named PRF192_FA24.c
3. The program must run without any compile errors or the student will get zero marks. (theprogram cannot run).
4. The Internet is only used to download questions and upload assignments. Do not use the Internet in any things.
Zoom
97%
Close
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
Maki95
Ngày thêm
Lượt xem
575
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_PE1_-_FA2024_2926.webp
File size
160.1 KB
Dimensions
995px x 668px

Share this media

Back
Bên trên Bottom