Find Jobs
Hire Freelancers

C++ using struct

$30-250 USD

Completed
Posted over 11 years ago

$30-250 USD

Paid on delivery
Write a program, [login to view URL], 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.
Project ID: 2539206

About the project

9 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I'll help to do it!
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
9 freelancers are bidding on average $54 USD for this job
User Avatar
Expert C/C++ developer. Available to start immediately and finish within a hour. Best regards, Zeke
$30 USD in 0 day
4.7 (149 reviews)
6.9
6.9
User Avatar
Hi, I am C++ expert and can surely help you here, Thanks
$30 USD in 1 day
4.9 (45 reviews)
5.7
5.7
User Avatar
Hi, kindly check your inbox for my inquiries. Thanks.
$30 USD in 0 day
4.9 (69 reviews)
5.4
5.4
User Avatar
Gladly at your service!
$30 USD in 0 day
5.0 (1 review)
3.9
3.9
User Avatar
We can start now !
$30 USD in 1 day
5.0 (4 reviews)
3.0
3.0
User Avatar
hi! A professional developer is here. Please see PM. Thanks!
$30 USD in 0 day
5.0 (7 reviews)
3.0
3.0
User Avatar
Hello sir. I understand what you want, and I am ready to do this job
$30 USD in 1 day
5.0 (4 reviews)
2.3
2.3

About the client

Flag of UNITED STATES
Buffalo, United States
5.0
1
Payment method verified
Member since Sep 9, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.