SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 07 Jan 2018 My Price 10.00

void displayBox(int width, int height, char FillChar);

I can't seem to figure out how to do the rest of the program this is what I got so far how do I add the rest to the program. I attached what I got so far but I can't seem to figure out how to do the rest. Here is what the program should run like with boxes like below

box(5) will display

xxxxx

x x

x x

x x

xxxxx

box(5,7,’a’) will display

xxxxx

xaaax

xaaax

xaaax

xaaax

xaaax

xxxxx

#include <iostream>
using namespace::std;

//  Function prototypes

void displayBox(int length);
void displayBox(int length, char fillChar);
void displayBox(int width, int height);
void displayBox(int width, int height, char FillChar);

//--------------------------------------------------------------------

int main()
{
    int boxLength,   // Input box dimensions
        boxWidth,
        boxHeight;

    char boxFill;    // Input fill character

                     // Test the displayBox(length) and displayBox(length,fillChar)
                     // functions.
    cout << endl << "Enter the length of a side: ";
    cin >> boxLength;
    displayBox(boxLength);
    cout << endl << "Enter the fill character: ";
    cin >> boxFill;
    displayBox(boxLength, boxFill);

    // Test the displayBox(width,height) and
    // displayBox(width,height,fillChar) functions.
    cout << endl << "Enter the width and height of the box: ";
    cin >> boxWidth >> boxHeight;
    displayBox(boxWidth, boxHeight);
    cout << endl << "Enter the fill character: ";
    cin >> boxFill;
    displayBox(boxWidth, boxHeight, boxFill);

    return 0;
}

//--------------------------------------------------------------------
void displayBox(int length)
{
    //  call the 2 agrument function, int and char

}


void displayBox(int length, char fillChar)
{
    //  call the 3 argument function

}


void displayBox(int width, int height)
{
    // call the 3 argument function
}

void displayBox(int width, int height, char FillChar)
{
    // using nested loops, write this function
}

Answers

(5)
Status NEW Posted 07 Jan 2018 01:01 PM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)