Answered step by step
Verified Expert Solution
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
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 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 TriangleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started