摘要: Triangle WaveIn this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.Input and OutputThe input begins with a single positive integer on a line by itself indicating the number of the cases following, each of them as described below. This lin 阅读全文
posted @ 2011-11-05 22:13 strorehouse 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Marvelous MazesYour mission, if you decide to accept it, is to create a maze drawing program. A maze will consist of the alphabetic charactersA-Z,*(asterisk), and spaces.Input and OutputYour program will get the information for the mazes from the input file. This file will contain lines of character 阅读全文
posted @ 2011-11-05 21:57 strorehouse 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Rotating SentencesIn ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to bottom, your program will display them from top to bottom and right to left.Input and OutputAs inp 阅读全文
posted @ 2011-11-05 21:35 strorehouse 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Machined SurfacesAn imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roughness of this final contact is to be estimated.A digital image is composed of the two characters,"X"and" "(space). There are 阅读全文
posted @ 2011-11-05 21:08 strorehouse 阅读(663) 评论(0) 推荐(0) 编辑