Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Methods- Creating and Calling Methods Step 2: Create the method specified below: static void DrawTriangle(int rows) Input parameters: rows: number of rows of the triangle

Methods- Creating and Calling Methods image text in transcribed
Step 2: Create the method specified below: static void DrawTriangle(int rows) Input parameters: rows: number of rows of the triangle Output: Draws a triangle with the default character of a Step 3: Create the method specified below: static void DrawTriangle(int rows, char drawChar) Input parameters: rows: number of rows of the triangle drawchar: the character used to draw the triangle with Output: Draws a triangle with the drawChar Step 4: Create the method specified below: static int GetNumber(string message) Input parameters: message: message to be displayed for the prompt Returns: A valid integer from 1 to 10 inclusive Step 5: In the Main() method, write the code that will do the following: 1. Prompt and read the dimensions of the box by calling the GetNumber() method. 2. Prompt and read in the draw character for the box (no validation required). 3. Call the DrawTriangle(int) method to display an empty box 4. Call the DrawTriangle(int, char) method to display a filled box

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

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago