Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: - To practice reading values from the keyboard - To practice simple mathematical calculations - To practice using ve Assignment: Your job is to

image text in transcribed
image text in transcribed
Objectives: - To practice reading values from the keyboard - To practice simple mathematical calculations - To practice using ve Assignment: Your job is to calculate the coordinates of the 4 corners of a rectangle from the data collected from the user. The data that you will need to collect is. - x coordinate of the iower left hand comer - y coordinate of the lower left hand corner - width of the rectangle - height of the rectangle From this information, you will need to calculate the following - lower right hand corner - upper left hand comer - upper right hand corner The you will need to print the results to the screen. Be sure to match the sample execution. Warning to get full credit, you will need to use the 'h' (tab) character Sample Execution: This program will calculate all of the coordinates for the oorneril of a rectangle. Mut first yon will need to enter a little data. - height of the rectangle From this information, you will need to calculate the following - lower night hand corner - upper left hand corner - upper right hand comer The you will need to print the results to the screen. Be sure to match the sample execution. Warning to get full credit, you will need to use the It (tab) character! Sample Executikn: This program will calculate all of the coordinates for the corners of a rectangle. But first you wi11 need to enter a little data. Enter the x coordinate for the lower left corner of the rectangle: 0 Enter the y coordinate for the lower left corner of the rectangle: 0 Enter the width of the rectangle: 8 Enter the height of the rectangle: 6 Here are your results. Upper Left Corner Coordinates: (0,6) Upper Right Corner Coordinates: (8,6) Lover beft Corner Coordinates: (0,0) tover Right Corner coordinates: (8,0) Note The numbers that appear before the results are entered by the user, not simply printed When testing, one teat will use the (0,0)( wer ieft hand comer coordinates with a width of 8 and a height of 6 , but only one test will use it

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

Students also viewed these Databases questions