Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C-Program only! Please include comments so I can follow what you did. Thank you!! 4. (12 points) Write a complete C program that will first

C-Program only! Please include comments so I can follow what you did. Thank you!!
image text in transcribed
4. (12 points) Write a complete C program that will first read in an arbitrary number of integers (which it should not do anything with) until it encounters the integer -99. Assume it is guaranteed to encounter 2 the integer -99. Following this, it will definitely encounter (and hence, it will read in) two integers, a width W, and a height H (you do NOT need to prompt for these). The program is expected to then draw a parallelogram, but draw it upside down. So, given width W and height H, the program should print W stars on each of H lines, in such as a manner that the first line should have H1 blanks before the stars, and on following lines, the number of blanks should decrease by one. Assume all input is correct. Remember: it may help you to assume that you do NOT need to prompt for anything, and you should make the program ignore the integers (if any) before the integer 99. Sample input

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

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Why could the Robert Bosch approach make sense to the company?

Answered: 1 week ago