Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write Pseudo code to perform the following code Convert the Pseudo code into Kotlin. Read an integer from the user and then draw a right

Write Pseudo code to perform the following code

Convert the Pseudo code into Kotlin.

Read an integer from the user and then draw a right triangle to the screen whose height and width are specified by the number entered. Use a loop to draw the triangle. Be sure to handle any number that is input between 0 and N

if 8 was entered, your program will draw a right triangle to the screen using "*" for each dot like so:

* ** * * * * * * * * * * ********

Part 2 -

Write a second part to the program that will take the same input number and draw a triangle using the numbers like this. You will have to use a loop within a loop.

1 12 123 1234 12345 123456 1234567 12345678

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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions