
Big Java Late Objects
2nd Edition
ISBN: 9781119330455
Author: Horstmann
Publisher: WILEY
expand_more
expand_more
format_list_bulleted
Question
Chapter 5, Problem 31PP
Program Plan Intro
Volume and surface area of frustum cone
Program Plan:
- Include the required “import” statement.
- Define the “Test” class.
- Declare the “pi” value
- Define the “volume” method
- Calculate the volume of the frustum cone and return the result.
- Define the “surface_area” method
- Calculate the surface area of the frustum cone and return the result.
- Define the main method using “public static main”.
- Declare the required variables with the values.
- Call the “volume” and “surface_area” methods by passing the values to the method.
- Display the output.
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
Parking Tickets Table
St ID L_Name ☐ F_Name Phone_No
St_Lic
Lic_No
Ticket#
Date
Code
Fine
38249
38249
82453 Green
82453 Green
82453 Green
Brown
Thomas
111-7804
FL
BRY 123
15634
10/17/06 2
$25
Brown
Thomas
111-7804
FL
BRY 123
16017
11/13/06 1
$15
Sally
391-1689
AL
TRE 141
14987
10/05/06 3
$100
Sally
391-1689
AL
Sally
391-1689
AL
TRE 141
TRE 141
16293
11/18/06 1
$15
17892
12/13/06 2
$25
The functional dependencies are:
St_ID → L_Name, F_Name, Phone_No, St_Lic, Lic_No
St_Lic → Lic_No
Code → Fine
St_ID, Ticket # → Date
1. In what normal form is the relation?|
2.
Convert PARKING TICKET to a set of 3NF relations.
In excel, What does sorting mean?
In excel, What does filtering mean?
What are three advantages of converting a range in Excel to a table and List the steps involved in creating a table in Excel if you were using the range A7:G34
Convert the relation Parking Tables to a set of 3NF relations.
Chapter 5 Solutions
Big Java Late Objects
Ch. 5.1 - Consider the method call Math.pow(3, 2). What are...Ch. 5.1 - What is the return value of the method call...Ch. 5.1 - The Math.ceil method in the Java standard library...Ch. 5.1 - It is possible to determine the answer to Self...Ch. 5.2 - What is the value of cubeVolume(3)?Ch. 5.2 - Prob. 6SCCh. 5.2 - Provide an alternate implementation of the body of...Ch. 5.2 - Declare a method squareArea that computes the area...Ch. 5.2 - Consider this method: public static int...Ch. 5.3 - What does this program print? Use a diagram like...
Ch. 5.3 - Prob. 11SCCh. 5.3 - What does this program print? Use a diagram like...Ch. 5.4 - Prob. 13SCCh. 5.4 - What does this method do? public static boolean...Ch. 5.4 - Implement the mystery method of Self Check 14 with...Ch. 5.5 - How do you generate the following printout, using...Ch. 5.5 - Prob. 17SCCh. 5.5 - Prob. 18SCCh. 5.5 - Prob. 19SCCh. 5.5 - The boxString method contains the code for...Ch. 5.6 - Consider the following statements: int...Ch. 5.6 - Consider this method that prints a page number on...Ch. 5.6 - Consider the following method that computes...Ch. 5.6 - The comment explains what the following loop does....Ch. 5.6 - In Self Check 24, you were asked to implement a...Ch. 5.7 - Explain how you can improve the intName method so...Ch. 5.7 - Prob. 27SCCh. 5.7 - What happens when you call intName(0)? How can you...Ch. 5.7 - Trace the method call intName(72), as described in...Ch. 5.7 - Prob. 30SCCh. 5.8 - Which lines are in the scope of the variable i...Ch. 5.8 - Which lines are in the scope of the parameter...Ch. 5.8 - The program declares two local variables with the...Ch. 5.8 - There is a scope error in the mystery method. How...Ch. 5.8 - Prob. 35SCCh. 5.9 - Consider this slight modification of the...Ch. 5.9 - Consider this recursive method: public static int...Ch. 5.9 - Consider this recursive method: public static int...Ch. 5.9 - Prob. 39SCCh. 5.9 - The intName method in Section 5.7 accepted...Ch. 5 - In which sequence are the lines of the Cubes.java...Ch. 5 - Write method headers for methods with the...Ch. 5 - Give examples of the following methods from the...Ch. 5 - Prob. 4RECh. 5 - Consider these methods: public static double...Ch. 5 - Prob. 6RECh. 5 - Design a method that prints a floating-point...Ch. 5 - Write pseudocode for a method that translates a...Ch. 5 - Describe the scope error in the following program...Ch. 5 - For each of the variables in the following...Ch. 5 - Prob. 11RECh. 5 - Perform a walkthrough of the intName method with...Ch. 5 - Consider the following method: public static int...Ch. 5 - Consider the following method that is intended to...Ch. 5 - Suppose an ancient civilization had constructed...Ch. 5 - Give pseudocode for a recursive method for...Ch. 5 - Give pseudocode for a recursive method that sorts...Ch. 5 - Write the following methods and provide a program...Ch. 5 - Write the following methods and provide a program...Ch. 5 - Prob. 4PECh. 5 - Prob. 5PECh. 5 - Prob. 6PECh. 5 - Prob. 7PECh. 5 - Prob. 8PECh. 5 - Write methods public static double...Ch. 5 - Write a recursive method public static String...Ch. 5 - Write a recursive method public static boolean...Ch. 5 - Use recursion to implement a method public static...Ch. 5 - Use recursion to determine the number of digits in...Ch. 5 - Write a method that computes the balance of a bank...Ch. 5 - Write a method that tests whether a file name...Ch. 5 - It is a well-known phenomenon that most people are...Ch. 5 - Prob. 3PPCh. 5 - Use recursion to compute an, where n is a positive...Ch. 5 - Leap years. Write a method public static boolean...Ch. 5 - In Exercise P3.13 you were asked to write a...Ch. 5 - Prob. 10PPCh. 5 - Write a program that reads two strings containing...Ch. 5 - Prob. 12PPCh. 5 - Write a program that reads words and arranges them...Ch. 5 - Prob. 14PPCh. 5 - Write a program that reads two fractions, adds...Ch. 5 - Write a program that prints the decimal expansion...Ch. 5 - Write a program that reads a decimal expansion...Ch. 5 - Write two methods public static void...Ch. 5 - Write a program that reads in the width and height...Ch. 5 - Repeat Exercise P5.19 with hexagonal circle...Ch. 5 - Postal bar codes. For faster sorting of letters,...Ch. 5 - Write a program that reads in a bar code (with :...Ch. 5 - Write a program that converts a Roman number such...Ch. 5 - A non-governmental organization needs a program to...Ch. 5 - Having a secure password is a very important...Ch. 5 - Prob. 30PPCh. 5 - Prob. 31PPCh. 5 - Electric wire, like that in the photo, is a...Ch. 5 - The drag force on a car is given by FD=12v2ACD...
Knowledge Booster
Similar questions
- Please original work What is the importance of understanding both DSS models and OLAP in modern business analytics. Reflect on how the combination of these tools can enhance decision-making processes in organizations. Please cite in text references and add weblinksarrow_forwardPlease original work Talk about the role of Decision Support Systems (DSS) in business analytics. What are the major types of models used in DSS: optimization, simulation, forecasting, heuristic, and descriptive models. Talk about the relevance of these models in supporting business decisions. Please cite in text references and add weblinksarrow_forwardPlease original work What are two DSS models (e.g., optimization and forecasting). What are each model’s purpose, advantages, and limitations in the context of business analytics. Talk about some examples of how each model can be applied in real-world business scenarios, particularly in operations, marketing, or finance. Please cite in text references and add weblinksarrow_forward
- Please original work What is Online Analytical Processing (OLAP) and describe its role in DSS. Talk about how OLAP supports multidimensional analysis and decision-making in businesses. Compare how OLAP differs from traditional DSS models in terms of data processing and output. Please cite in text references and weblinksarrow_forwardPlease original work Describe the key steps involved in the modeling process: problem definition, data collection, model formulation, validation, implementation, and refinement. Talk about why each step is critical to ensuring the accuracy and reliability of the model. What are some real-world business example of a problem, and describe how the modeling process could be applied to address it using DSS. Please cite in text references and add weblinksarrow_forwardYou will be using the "usdata" package's "county" data # for this assignment. # You will need to run:# install.packages("usdata")# once to install this library - do not include the# install.packages command in your submission# as it can cause gradescope to fail ## ## ## ## ## DO NOT MODIFY BELOW ## ## ## ## ## library(usdata)county<-as.data.frame(county)county<-county[,1:14]county<-county[rowSums(is.na(county))==0,]# The set.seed command will ensure your results are consistent# each time you run the "source" commandset.seed(311)## ## ## ## ## DO NOT MODIFY ABOVE ## ## ## ## ## # Treating the "county" dataset as the population of US counties# create the dataframe "my.SRS" that represents a simple# random sample of n=250 individual counties from all counties in the US. my.SRS <- NA # Treating the "county" dataset as the population of US counties# create the dataframe "my.Stratified" that represents a stratified# sample of individual counties from all counties in…arrow_forward
- = 3. [40 pts] In the following C program ex2_2.c, we first declare and initialize an array int arr[3] {1,3,5}. Please convert the C code in main function into Assembly language. We provide the array initialization code in ex2_2_assembly.s for reference. Please complete and submit your code. ex2_2.c: #include int main() { } int arr[3] ={1,3,5}; //declare and initialize the array arr int x11 = arr[0]; int x12 = arr[1]; int x13 =x11x12; int x14 = x13 << x11; // "<<" is left shift operator arr[1] arr [2] = x13; = x14; return 0; //no need to convert this line into assembly languagearrow_forwardPlease answer JAVA OOP problem.arrow_forwardAnswer these two JAVA OOP questions.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT

C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage

C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT

Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning