文件名称:B04_2841_EX08
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.2kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Exercise 8: Arrays
1. Write a program that reads ten numbers supplied by the user into a single subscr ipted array, and then prints out the average of them.
2. Write a program that reads ten numbers supplied by the user into a 2 by 5 array, and then prints out the maximum and minimum values held in:
(a) each row (2 rows)
(b) the whole array
3. Use a single-subscr ipted array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read. Prepare for the “worst case” in which all 20 numbers are different. Use the smallest possible array to solve this problem.
-Exercise 8: Arrays
1. Write a program that reads ten numbers supplied by the user into a single subscr ipted array, and then prints out the average of them.
2. Write a program that reads ten numbers supplied by the user into a 2 by 5 array, and then prints out the maximum and minimum values held in:
(a) each row (2 rows)
(b) the whole array
3. Use a single-subscr ipted array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read. Prepare for the “worst case” in which all 20 numbers are different. Use the smallest possible array to solve this problem.
1. Write a program that reads ten numbers supplied by the user into a single subscr ipted array, and then prints out the average of them.
2. Write a program that reads ten numbers supplied by the user into a 2 by 5 array, and then prints out the maximum and minimum values held in:
(a) each row (2 rows)
(b) the whole array
3. Use a single-subscr ipted array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read. Prepare for the “worst case” in which all 20 numbers are different. Use the smallest possible array to solve this problem.
-Exercise 8: Arrays
1. Write a program that reads ten numbers supplied by the user into a single subscr ipted array, and then prints out the average of them.
2. Write a program that reads ten numbers supplied by the user into a 2 by 5 array, and then prints out the maximum and minimum values held in:
(a) each row (2 rows)
(b) the whole array
3. Use a single-subscr ipted array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read. Prepare for the “worst case” in which all 20 numbers are different. Use the smallest possible array to solve this problem.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EX08_03.cpp
EX08_02.cpp
EX08_01.cpp
EX08_02.cpp
EX08_01.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.