Write a program that calculates the area of a triangle, square or oval (without using any built-in math or String methods or casting/transfer methods). area (char, int, int, int). Your program should have nine methods: area, title, splashScreen, intructions (menu option), pauseProgram, mainMenu, askData, display and a goodbye. All input must be errortrapped! Each major screen should be indicated as a separate box with arrows to indicate program direction. Each errortrap will be shown separately in its own box with arrows indicating the placement of the trap. Errortraps must be linked to a specific variable. Variables may have more than one errortrap. The user may only exit in the mainMenu. The user may rerun the program until they choose to exit. You may only use the basic arithmetic operators: + -/*.The black box return method will be caller
Write a program that calculates the area of a triangle, square or oval (without using any built-in math or String methods or casting/transfer methods). area (char, int, int, int). Your program should have nine methods: area, title, splashScreen, intructions (menu option), pauseProgram, mainMenu, askData, display and a goodbye. All input must be errortrapped! Each major screen should be indicated as a separate box with arrows to indicate program direction. Each errortrap will be shown separately in its own box with arrows indicating the placement of the trap. Errortraps must be linked to a specific variable. Variables may have more than one errortrap. The user may only exit in the mainMenu. The user may rerun the program until they choose to exit. You may only use the basic arithmetic operators: + -/*.The black box return method will be caller
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Can you please write a Java program that calculates the area of a triangle, square or oval(without using any buil-in math or String methods or casting/transfer methods). My problem should have nine methods: area, title, splashScreen, instructions(menu option), pauseProgram, mainMenu, askData, display and a goodbye.
![Write a program that calculates the area of a triangle, square or oval (without using any built-in math or String methods or
casting/transfer methods).
area (char, int, int, int). Your program should have nine methods: area, title, splashScreen, intructions (menu option),
pauseProgram, mainMenu, askData, display and a goodbye. All input must be errortrapped! Each major screen should be
indicated as a separate box with arrows to indicate program direction. Each errortrap will be shown separately in its own box with
arrows indicating the placement of the trap. Errortraps must be linked to a specific variable. Variables may have more than one
errortrap. The user may only exit in the mainMenu. The user may rerun the program until they choose to exit.
You may only use the basic arithmetic operators: + -/*.The black box return method will be called
Write the OUTPUT SCREENS below and have this page initialled before continuing.
menu
Calculation of the area
{.Press to o to the instruotions
2. fress p to g9 to the pedgram
3. Press 7 to Pind the area of a triangle
4. Press s to find the area of a' square
5, Press >0 to gind the area ol'a oval
instructionso;
This program'is used to ask if you
want to Pind the area of a triangle,
Square and oval.H will ask to inpot
the appropriate. and the it will
calculate the area.
Ask Datac);
Enter length:6
Enter width:6
Please enter
GoodRyec).
Thank You for attending and participating in
Enter an integer please
the programme.
See
you again. Bye
dis play (;
length Entered: 6
width Entered:6
Area of triangle: 36](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F225abc1b-bcb1-4cc9-b2d5-8e858f51d107%2Fff23d5da-3821-4e05-8bcb-d6acfd6e79ab%2Flr34xvq_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Write a program that calculates the area of a triangle, square or oval (without using any built-in math or String methods or
casting/transfer methods).
area (char, int, int, int). Your program should have nine methods: area, title, splashScreen, intructions (menu option),
pauseProgram, mainMenu, askData, display and a goodbye. All input must be errortrapped! Each major screen should be
indicated as a separate box with arrows to indicate program direction. Each errortrap will be shown separately in its own box with
arrows indicating the placement of the trap. Errortraps must be linked to a specific variable. Variables may have more than one
errortrap. The user may only exit in the mainMenu. The user may rerun the program until they choose to exit.
You may only use the basic arithmetic operators: + -/*.The black box return method will be called
Write the OUTPUT SCREENS below and have this page initialled before continuing.
menu
Calculation of the area
{.Press to o to the instruotions
2. fress p to g9 to the pedgram
3. Press 7 to Pind the area of a triangle
4. Press s to find the area of a' square
5, Press >0 to gind the area ol'a oval
instructionso;
This program'is used to ask if you
want to Pind the area of a triangle,
Square and oval.H will ask to inpot
the appropriate. and the it will
calculate the area.
Ask Datac);
Enter length:6
Enter width:6
Please enter
GoodRyec).
Thank You for attending and participating in
Enter an integer please
the programme.
See
you again. Bye
dis play (;
length Entered: 6
width Entered:6
Area of triangle: 36
![ICS 3U- 16 Math Return Methods Timeline: 3 classes
10 (T)
Return Method Parameter list
Both sides must be signed BEFORE using a computer!
Type
int
Variable Name
Black box Return Method
length, width,
private
int area Answercchar choice, int length, int width, int none)
char
Main Method
area Answer - clength x width)
return areaAnswer;
MathReturn Method m = new Math ReturnMethod
white true)
m.main Menu ();
if cm.choide ==
m. instructions
3else il (m choice == 15? = ee 0).
m.askbata (l;
ndisplay3
3.
Each student will be marked on the following
class name: reflects purpose of program
organization of the output screens & errortraps
aigorithmic solution of process/errortraps KlS!!
program executes correctly regardless of plan
pioper program comments (following Programming Style)
proper methods, constructor and main method, a window title
LIses Message or JOptionPane for ertor dialog boxes
private black box return method(s)
you may not create any extra java classes
correct programming of all errortraps -uncrashable!!!
proper access levels for all methods & variables
outpui will be interesting and colourful with unique graphics!
English, grammar & output design!
Folder Name: Your Name 16](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F225abc1b-bcb1-4cc9-b2d5-8e858f51d107%2Fff23d5da-3821-4e05-8bcb-d6acfd6e79ab%2Fmpq0at5_processed.jpeg&w=3840&q=75)
Transcribed Image Text:ICS 3U- 16 Math Return Methods Timeline: 3 classes
10 (T)
Return Method Parameter list
Both sides must be signed BEFORE using a computer!
Type
int
Variable Name
Black box Return Method
length, width,
private
int area Answercchar choice, int length, int width, int none)
char
Main Method
area Answer - clength x width)
return areaAnswer;
MathReturn Method m = new Math ReturnMethod
white true)
m.main Menu ();
if cm.choide ==
m. instructions
3else il (m choice == 15? = ee 0).
m.askbata (l;
ndisplay3
3.
Each student will be marked on the following
class name: reflects purpose of program
organization of the output screens & errortraps
aigorithmic solution of process/errortraps KlS!!
program executes correctly regardless of plan
pioper program comments (following Programming Style)
proper methods, constructor and main method, a window title
LIses Message or JOptionPane for ertor dialog boxes
private black box return method(s)
you may not create any extra java classes
correct programming of all errortraps -uncrashable!!!
proper access levels for all methods & variables
outpui will be interesting and colourful with unique graphics!
English, grammar & output design!
Folder Name: Your Name 16
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY