int sizeQfShaps (>= 2 and <= 9) int xCentre (>= 1 and <= 79) int yCentre (>=1 and < = 25) Test 2 For sizeofShape = 7, xCentre = 76, yCentre = 6, your program must produce the following output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively): ==7====$»$== Description You must simply output the following shape (which is a diamond using "S" symbols on a background screen): • Simply output to the normal console (using System.out) • Assume a background screen of 25 lines deep and 79 chars wide (see below for the background - it comprises "=" character, with relevant numbering for every 10th column and row. =7==$==---S wwww. =========3== =========3====== --- =======, The sizeQtshaps parameter will indicate how many "$" are on each side of the $=====$= ========3======== ====7===$===$= diamond. ======={======= ===7====$=$== • For a clearer description of the parameter sizeofShaps, see Tests below Of course, the bigger the value of sizeofShaps, the bigger the size of the diamond your program must produce. The input parameters xCentre and yÇentre indicathe the co-ordinates of the centre of the diamond. This should also be clear from the Tests below. ======={========= ===7=====$=== ======== ===== You must also print a "$" where the centre coordinate is. • Try to stay calm and think clearly (do NOT panic if this takes you longer than you think it should) • Above all, have fun! ===== ========3====== =========3====== ======= ========{======== ======= 2========-3====== ====== ========{=========Z======== Test 1 For sizeQtShaps = 6, xCsntte = 30, yCentre = 9, your program must produce the following output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively): ========3====== Test 3 For sizeQfShapg = 5, xCentre = 1, Centre = 1, your program must produce the following output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively):

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

java practice question

int sizeofShape (>= 2 and <= 9)
int xCentre (>=1 and <= 79)
int yCentre (>= 1 and < = 25)
Test 2
For sizeotshare = 7, xCentre = 76, yCentre = 6, your program must produce the
following
output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively):
Description
You must simply output the following shape (which is a diamond using "$" symbols on
a background screen):
Simply output to the normal console (using System.aut)
Assume a background screen of 25 lines deep and 79 chars wide (see below for
the background – it comprises “=" character, with relevant numbering for every
10th column and row.
The sizeofShape parameter will indicate how many "$" are on each side of the
diamond.
For a clearer description of the parameter şizeofSbars, see Tests below
Of course, the bigger the value of sizeofShape, the bigger the size of the
diamond your program must produce.
The input parameters xCentre and yCentre indicathe the co-ordinates of the
centre of the diamond. This should also be clear from the Tests below.
You must also print a "$" where the centre coordinate is.
Try to stay calm and think clearly (do NOT panic if this takes you longer than you
think it should)
Above all, have fun!
=5%=======:
Test 1
For şizeofShapse = 6, XCentre = 30, yCentre = 9, your program must produce the
following
output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively):
=========1=========2=========3=========4=========5=======:
Test 3
For şizeofShape = 5, xCentre = 1, Centre = 1, your program must produce the following
output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively):
Transcribed Image Text:int sizeofShape (>= 2 and <= 9) int xCentre (>=1 and <= 79) int yCentre (>= 1 and < = 25) Test 2 For sizeotshare = 7, xCentre = 76, yCentre = 6, your program must produce the following output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively): Description You must simply output the following shape (which is a diamond using "$" symbols on a background screen): Simply output to the normal console (using System.aut) Assume a background screen of 25 lines deep and 79 chars wide (see below for the background – it comprises “=" character, with relevant numbering for every 10th column and row. The sizeofShape parameter will indicate how many "$" are on each side of the diamond. For a clearer description of the parameter şizeofSbars, see Tests below Of course, the bigger the value of sizeofShape, the bigger the size of the diamond your program must produce. The input parameters xCentre and yCentre indicathe the co-ordinates of the centre of the diamond. This should also be clear from the Tests below. You must also print a "$" where the centre coordinate is. Try to stay calm and think clearly (do NOT panic if this takes you longer than you think it should) Above all, have fun! =5%=======: Test 1 For şizeofShapse = 6, XCentre = 30, yCentre = 9, your program must produce the following output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively): =========1=========2=========3=========4=========5=======: Test 3 For şizeofShape = 5, xCentre = 1, Centre = 1, your program must produce the following output EXACTLY (note the "1" and "2" in the first column of row 10 and 20 respectively):
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Program on Numbers
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