subject

You will create two classes, one for a box and one for a triangle. each of the figures, the box and the triangle, will have an offset telling how far they are indented from the edge of the screen. each figure will also have a size, although the size will be determined differently for a box and a triangle. for a box, the size is given as the width and the height, expressed in the number of characters. because characters are taller than they are wide, a box will look taller than you might expect when it is written on the screen. for a triangle, the size will be given by its base. the triangle will point up, and the base will be at the bottom. the slope of a side of the triangle is limited to what you get by indenting one character per line. so once the base is chose, you have no choice regarding what the sides of the triangle will be. we also assume that the base size of a triangle must be odd. the following shows a sample of a 5-by-5 box and a triangle with base of size 15. assuming that the offset 10. the

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
You know the right answer?
You will create two classes, one for a box and one for a triangle. each of the figures, the box and...
Questions
question
Social Studies, 12.11.2019 03:31
Questions on the website: 13722363