Write a JAVA program that reads the height of a triangle (less than 10) from the user and then calls two void methods named plotTril and plotTri2. Each of the 2 methods should have a parameter for the height of the triangle and use printf inside of nested For loops to produce the output of the respective triangle for the user. Note that the numbers in the triangle are right-aligned. Create a project and class named Lab9FirstnameLastname in NetBeans using your actual first and last names to hold your program. For height = 5, executing the methods plotTril (5) and plotTri2 (5) will print the following triangles respectively. 5 4 3 2 1 987 12 11 10 14 13 15 1 26 3 7 10 8 11 13 4 5 9 12 14 15

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
|||
Chrome File Edit
Content
18681089
000
W mall
1
ng
ng in the s
2
D
View History Bookmarks Profiles Tab Window
x | Search results for 'Write X Bb 18681089
learn-us-east-1-prod-fleet01-xythos.content.blackboardcdn.com/blackboard.learn.xythos.prod/5a3683e2386d2/18681089?X-Blackboard-S3-Bucket-blackboard.le...
www
old
ERINEVALS CRONIZATORATIOVINA
APR
8
Help
1 / 2
591214 15
5
O
CSC 190 Lab 9
Printing Triangles with Nested Loops
Due Date: Friday, April 7, 2023 at 11:59 PM
Task
Write a JAVA program that reads the height of a triangle (less than 10) from the user and then
calls two void methods named plotTril and plotTri2. Each of the 2 methods should
have a parameter for the height of the triangle and use printf inside of nested For loops to
produce the output of the respective triangle for the user. Note that the numbers in the
triangle are right-aligned.
4
8
12 11 10
14 13
O
Create a project and class named Lab9FirstnameLastname in NetBeans using your actual first
and last names to hold your program.
5vw
For height = 5, executing the methods plotTril (5) and plotTri2 (5) will print the
following triangles respectively.
3
X
7
Java program for plotting X
26
1
100% +
26
3 7 10
4
8 11 13
9 12 14 15
Search Marquis
Additional Assignment Requirements
1. You MUST use nested For loops in each method in this assignment.
2 You MUST use printf() to produce the output in this assignment
A
96
tv
× QWrite a JAVA program th X
2
D
W
1
x
Sat Apr 8 6:02 PM
Transcribed Image Text:||| Chrome File Edit Content 18681089 000 W mall 1 ng ng in the s 2 D View History Bookmarks Profiles Tab Window x | Search results for 'Write X Bb 18681089 learn-us-east-1-prod-fleet01-xythos.content.blackboardcdn.com/blackboard.learn.xythos.prod/5a3683e2386d2/18681089?X-Blackboard-S3-Bucket-blackboard.le... www old ERINEVALS CRONIZATORATIOVINA APR 8 Help 1 / 2 591214 15 5 O CSC 190 Lab 9 Printing Triangles with Nested Loops Due Date: Friday, April 7, 2023 at 11:59 PM Task Write a JAVA program that reads the height of a triangle (less than 10) from the user and then calls two void methods named plotTril and plotTri2. Each of the 2 methods should have a parameter for the height of the triangle and use printf inside of nested For loops to produce the output of the respective triangle for the user. Note that the numbers in the triangle are right-aligned. 4 8 12 11 10 14 13 O Create a project and class named Lab9FirstnameLastname in NetBeans using your actual first and last names to hold your program. 5vw For height = 5, executing the methods plotTril (5) and plotTri2 (5) will print the following triangles respectively. 3 X 7 Java program for plotting X 26 1 100% + 26 3 7 10 4 8 11 13 9 12 14 15 Search Marquis Additional Assignment Requirements 1. You MUST use nested For loops in each method in this assignment. 2 You MUST use printf() to produce the output in this assignment A 96 tv × QWrite a JAVA program th X 2 D W 1 x Sat Apr 8 6:02 PM
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education