Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I keep messing up my spaces and the area calculation. every time I switch one setw it messes up all of the rest. PLEASE HELP!

I keep messing up my spaces and the area calculation. every time I switch one setw it messes up all of the rest.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

PLEASE HELP! IVE BEEN TRYING FOR 30 MINUTES.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

1 11 Ryan Dewey 2 CS 1336.DMI 3 Lab 15 5 #include 6 #include 7 using namespace std; 8 9 int main() ze variable defintions int lengthInverds, lengthInfeet, widthInYards, widthInFeet, area; W input the length and width of the footbal field 15 cin >> lengthinvards >> lengthInFeet; 16 cin>> widthInwards >> widthInfeet; 18 W calcuations the era of the football field aree (lengthInvands 3 + lengthInfeet) + widthInYards * 3 + widthInFeet; V output cout > widthInYards WidthInFeet; calcuations the ame of the football field area (lengthInYands * 3 + lengthInFeet) + widthInYards * 3 + widthInFeet; I/output cout > lengthInFeet; ds >> widthInFeet; te aera of the football field ards * 3 + lengthInFeet) + widthInYards * 3 + widthInFeet; setw(17) 6 #include 7 using namespace std; 8 9 int main() 10 { // variaable defintions int lengthInYards, lengthInFeet, widthInyards, widthInfeet, area; 13 // input the length and width of the footbal field 15 cin >> lengthInYards >> lengthInFeet; 16 cin >> widthInYards >> widthInFeet; T // calcuations the aera of the football field area = (lengthInYards * 3 + lengthInFeet) + widthInYards * 3 + widthInFeet; 18 19 20 21 22 23 24 //output cout > widthInYards >> widthInFeet; // calcuations the aera of the football field area (length InYards 3 - lengthInFeet) + widthInYards * 3 + widthInFeet; I output cout > lengthinFeet; ards >> widthInFeet; the aera of the football field nyards * 3 + lengthInFeet) + widthInYards * 3 + widthInFeet; setw(17)

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

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions

Question

why should we avoid hard clustering in some cases?

Answered: 1 week ago