This quiz consists of FIVE questions. The total mark is 50, and it contributes 50% of the final result.
(1) Read 10 numbers (double) from the console using keyboard, print out the average number of
these 10 numbers. (10 marks)
(2) Input your student ID from the console using keyboard, print out the reversed version of your
ID. For example, if your ID is 19722083, the output form should be 38022791. (10 marks)
(3) Read a two-dimensional array of n rows and n columns from the keyboard to check whether the
two-dimensional array is symmetrical. (10 marks)
(4) Define a structure data type called time_struct containing three members: integer hour, integer
minute and integer second. Develop a program that would assign values to the individual members
and display the time in the following form:
16:40:51
Please note that a function should be used to input values to the members and another function to
display the time. (10 marks)
(5) Write a program to find the maximum and minimum number of an array of n integers, note that
pointers should be used. (10 marks)
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。