Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me ! ! My brain is exploding. Write a program called xtreme.c that reads an ( odd ) integer n from standard input,

Please help me!! My brain is exploding. Write a program called xtreme.c that reads an (odd) integer n from standard input, and prints an nxn a square of
asterisks and dashes in the following pattern:
n: 9
**---**---**
-**-----**-
--**---**--
---**-**---
**---**---**
---**-**---
--**---**--
-**-----**-
**---**---**
n: 15
-----**---*
-**---**---**---**-
-----
------*---
-**---**---**---**-
-----
------
--**---**-**---**--EXERCISE (O0):
ABC Grid
For this activity you will create the program abc_grid.c .
The program will create a cascading pattern in the form of a grid of letters. First the program will ask the user to choose
a grid size by entering the number of rows and then the number of columns. The program will then ask for a starting
letter and the starting coordinates for this letter. This is where the pattern will start from.
In the example below the starting letter is Y. Lets say its starting position was [x][y] where x and y are some
starting co-ordinates. The letter following Y in the alphabet is Z and hence the immediate surrounding positions
([x+1][y],[x-1][y],[x][y+1],[x][y+1]) are z. This pattern now continues from z where the next
letter is A and so on to B . This pattern will continue until the grid has been filled!
Examples
image text in transcribed

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 Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

List the five steps in interview preparation.

Answered: 1 week ago

Question

11. Are your speaking notes helpful and effective?

Answered: 1 week ago

Question

The Goals of Informative Speaking Topics for Informative

Answered: 1 week ago