In Progress

C++ using struct

Write a program, [url removed, login to view], that uses a struct called block which has three fields:

1. An integer rows

2. An integer cols

3. An character letter

A block will be declared and initialized in main. The program should repeatedly read one of the following commands until a q is entered:

r: Change the number of rows in the block

c: Change the number of columns in the block

l: Change the letter in the block

a: Change the letter in the block based on an ASCII value

p: Print the block in two dimensional format

If an illegal command is entered, the program should print an appropriate error message.

You are required to write the following six functions:

// initializes the block to 4 rows, 4 columns and the

// letter *

void init_block (block& b);

// prompts for and reads a number of rows from the user

// and assigns that number of rows to the block

void change_rows (block& b);

// prompts for and reads a number of columns from

// the user and assigns that number of columns to the

// block

void change_cols (block& b);

// prompts for and reads the ASCII value of a character

// from the user and sets the letter in the block to

// that character

void change_ascii (block& b);

// prompts for and reads a letter from

// the user and assigns that letter to the

// block

void change_letter (block& b);

// prints the block in two dimensional format with a

// label

void print (block b);

The following page shows a sample run of the program (user input in bold). Your program should use the same output formatting.

Skills: PHP, Software Architecture

See more: write program print letter block, struct in cpp, struct cpp, r architecture, cpp struct, Cpp, c++ p, c# architecture, c r, c p, php print error, run commands, repeatedly, rows cols, output using, php write error, function definition using array based implementation, label print format, write function using array based implementation, using commands, write function definition using array based implementation, struct, card attendance system using microcontroller based circuit, write ascii php, struct read

About the Employer:
( 1 review ) Buffalo, United States

Project ID: #2539206

Awarded to:

rhythmist

I'll help to do it!

$30 USD in 1 day
(0 Reviews)
0.0

9 freelancers are bidding on average $54 for this job

zeke

Expert C/C++ developer. Available to start immediately and finish within a hour. Best regards, Zeke

$30 USD in 0 days
(149 Reviews)
6.9
dobreiiita

Hi, I am C++ expert and can surely help you here, Thanks

$30 USD in 1 day
(45 Reviews)
5.7
it2051229

Hi, kindly check your inbox for my inquiries. Thanks.

$30 USD in 0 days
(69 Reviews)
5.4
duquef21

Gladly at your service!

$30 USD in 0 days
(1 Review)
3.9
geniousPHP

We can start now !

$30 USD in 1 day
(4 Reviews)
3.0
imfsolution

hi! A professional developer is here. Please see PM. Thanks!

$30 USD in 0 days
(7 Reviews)
3.0
vladang

Hello sir. I understand what you want, and I am ready to do this job

$30 USD in 1 day
(4 Reviews)
2.3
Q4M0rU7Vn

Custom software development ([url removed, login to view] Administrator removed this message for containing contact details which breaches our Terms of Service)

$250 USD in 1 day
(0 Reviews)
0.0