Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Methods-Creating Calling Methods CPSC1012 In-Class Exercise #8-Winter 2019 Term CPSC10121n-Class Exercise #8-Winter 2019 Term tPSC1012 in-Class Exercise #8-Methods-Creating and caling Methods Step 6:Test your

image text in transcribedC# Methods-Creating Calling Methods

CPSC1012 In-Class Exercise #8-Winter 2019 Term CPSC10121n-Class Exercise #8-Winter 2019 Term tPSC1012 in-Class Exercise #8-Methods-Creating and caling Methods Step 6:Test your program using the followingtest plan. Table 1: Test Plan for Exercise #8 Student Name: Student Mark /5 Test case Test Doto Invalid number of Complete the requirements of this assignment on your own. When you have finished, write your name on the board to get your instructor to mark your assignment. You are encouraged to create a flowchart; without a flowchart your instructor may not provide any assistance. Enter the number of rows (5-15): 1 Invalld number of rows ..please try again Enter the nunber of rows (S-15): 16 Invalid number of rows please try again 15 Rows 3 Enter a draw character: A Step 1: Create a program named CPSC1012-Ex0s-YourName Step 2: Create the method specified below: Draw with 'A Empty Triangle static void Braauiaaclint rows) input parameters rows: number of rows of the triangle Draws a triangle with the default character of a Step 3: Create the method specified below Filled Triangle static void Rracteintrows Input parameters: rows: number of rows of the triangle uabar the character used to draw the triangle with Output: Draws a triangle with the graushar Rows- 10 10 Step 4: Create the method specified below Enter a drau character: Draw with static int etNunbsr(string prompt) Input parameters Empty Triangle prompt: message to be displayed for the prompt A valid integer from 3 to 15 inclusive Step 5: in the Main) method, write the code that will do the following 1. Prompt and read the dimensions of the triangle by calling the e Nuobec) method. 2. Prompt and read in the draw character for the triangle (no validation required. 3. Call the 4 Call the Brantrianeldint, char) method to display a filled triangle. int) method to display an empty triangle Filled Triangle

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

translate 5 units down and then rotate 90 degrees about the origin

Answered: 1 week ago

Question

3. Is there opportunity to improve current circumstances? How so?

Answered: 1 week ago

Question

2. How will you handle the situation?

Answered: 1 week ago