Consider the following recursive method. public static string recur(int val) { string dig = "" + (val % 3); if (val / 3 > 0) return dig + recur(val / 3); return dig; } what is printed as a result of executing the following statement? system.out.println(recur(32));

Answers

Answer 1

The recursive method recur executes itself from within

When the statement System.out.println(recur(32)); is executed, the string value "2101" is printed

How to determine the output of the statement?

The flow of the program is as follows:

The method keeps updating the string variable dig with the remainder of the val variable divided by 3When the remainder is less than or equal to 0, the method is exited

So, when 32 is divided by 3.

The remainders are 2, 1, 0 and 1

So, the output of the statement is "2101"

Read about java methods at:

https://brainly.com/question/19271625


Related Questions

The traditional ROM-BIOS has been replaced with __________. ELAM Boot Secure Boot Unified Extensible Firmware Interface (UEFI) Trusted Machine Platform

Answers

The traditional ROM-BIOS has been replaced with Unified Extensible Firmware Interface (UEFI).

Why the use of traditional BIOS?

This type of BIOS is one that is known to have drive support that is saved in its ROM, which makes updating BIOS firmware a little hard .

The use of a BIOS is known to be a kind of firmware that often gives  one runtime services mainly for operating systems and programs.

Learn more about ROM from

https://brainly.com/question/24688176

You make me the happiest person on earth
i feel joy when i see your face
when i am depressed all i have to do is to think about you and it puts me in a good mood.


do i need to add more to thut

Answers

Answer:

Fixed

Explanation:

I feel joy when I see your face

When I'm depressed all I have to do is to think about you, and it puts me in a good mood.

data in ai uses what >

Answers

Answer:

Explanation:

artificial intelligence describes the ability of computers to act like humans

Desktop computers have a(n) ________ unit, located within the system unit, that plugs into a standard wall outlet, converts AC to DC, and provides the power to drive all the system unit components.

Answers

Desktop computers have a power supply unit (PSU) that is located within the system unit and it provides the electrical power.

What is a desktop computer?

A desktop computer can be defined as an electronic device that is designed and developed to receive data in its raw form as an input and processes these data into an output (information) that could be used by an end user.

Generally, desktop computers are fitted with a power supply unit (PSU) that is located within the system unit. Also, it plugs into a standard wall outlet (socket), converts alternating current (AC) to direct current (DC), and provides the electrical power that is required to drive all the system unit components.

Read more on computer here: brainly.com/question/959479

What two tabs does Outlook have that PowerPoint does not? View and Send/Receive Folder and Home Folder and Home Send/Receive and Folder

Answers

What are the ribbon tabs in Microsoft Outlook?

The main Outlook menu has a ribbon tab with default commands. File, Home, Send/Receive, Folder, and View are commands on the main ribbon tab. The Backstage view is where you can see information and options pertaining to the user account and settings.

Answer: view and send/recieve

Explanation:

5. 16 LAB: Brute force equation solver

Numerous engineering and scientific applications require finding solutions to a set of equations. Ex: 8x + 7y = 38 and 3x - 5y = -1 have a solution x = 3, y = 2. Given integer coefficients of two linear equations with variables x and y, use brute force to find an integer solution for x and y in the range -10 to 10.


How do I write this in python?

Answers

Use the knowledge of computational language in python to write a code that force to find an integer solution for x and y .

How to find the solution of an equation in python?

To make it simpler the code is described as:

def brute_force_two_equations(first_values, second_values,

                             max_range=10, min_range=-10):  

for x in range(-10, 10, 1):

   for y in range(-10, 10, 1):

      if a * x + b * y == c and d * x + e * y == f:

          print(x, y)

else:

   print('No solution')

def equation(const1, const2, x, y):

   return const1 * x + const2 * y

def get_three_integers():

   inputs = []

   for i in range(0, 3):

       inputs.append(int(input("Please enter a value: ")))

   return inputs

if __name__ == "__main__":

   print("== First Equation ==")

   first_equation_values = get_three_integers()

   print("== Second Equation ==")

   second_equation_values = get_three_integers()

   solution = brute_force_two_equations(first_equation_values,

                                        second_equation_values)

   if solution:

       print(f"(x, y) {solution}")

   else:

       print("No Solution found")

See more about python atbrainly.com/question/22841107

what are computer networks​

Answers

Answer:

A computer network is a set of computers sharing resources located on or provided by network nodes. A computer network is a system that connects numerous independent computers in order to share information (data) and resources.

Explanation:

:)

75 POINTS!!
PLS HURRY
Choose the term that best completes each sentence.
___are intentional attacks on a system with the intent to do harm.
a. cyberthreats
b. malware
___ may be intentional like a virus or unintentional like a fire or human error.
a. cyberthreats
b. malware

Answers

Malwares are intentional attacks on a system with the intent to do harm.

Cyberthreats may be intentional like a virus or unintentional like a fire or human error

Hope that helps!

Pauline has a well-established app with a large user base. Now she needs new users who complete valuable actions within the app. What phase does this fall under?

Answers

Answer:

Maturity because if you want new users who will complete [valuable]  actions they need to be [Mature].

Explanation:

How have you improved the technology function to provide the right services at the right price and right level of quality?

Answers

What did you do? Write that as the first part

Website where customers can ask check the ,services and products, Using e-mail to improve customer service and respond to specific needs and More advanced data-gathering techniques, such as customer relationship management software.

How can technology help in customer retention?

Deals can be sent via mobile. Customers would profit from promotions and coupons supplied to their mobile devices.

This behavior is growing more sophisticated and focused. You can send promos on products or services you know a consumer enjoys based on their purchase history.

Thus, Website, E-mail and software can improve the service quality.

For further details about technology, click here:

https://brainly.com/question/16877197

#SPJ4

PLEASE HELP! The variable initials is to be assigned a string consisting of the first letter of the string firstName followed by the first letter of the string lastName. Which of the following assigns the correct string to initials ?

Answers

Answer:

a

Explanation:

Prefix function will grab length character(s) from a string while concat function will join 2 strings into 1.

For initials, use prefix on firstName and lastName to grab the first character. Then join the two together using concat to give the initials:

So the answer is a.

The correct choice to the given function is "initials <--- concat (prefix (FirstName, 1), prefix (lastName, 1))", and its explanation as follows:

Prefix function:

To assign the correct string, we must examine the "cancat ()" and "prefix ()" methods in this problem.

The string consists of the first letter of the string "firstName" followed by the first letter of the string "lastName", is to be set to the variable initials.

Please find the attached file for the complete solution.

Find out more bout the prefix function here:

brainly.com/question/14912735

In a ________ system configuration, separate information systems are designed and managed by each foreign unit.

Answers

Answer:

In a decentralized system configuration, separate information systems are designed and managed by each foreign unit.

Explanation:

hopes this help (:

What is a critical consideration on using cloud-based file sharing and storage applications.

Answers

Answer:

a critical consideration on using cloud-based file sharing and storage applications on your Government-furnished equipment (GFE)? Determine if the software or service is authorized. A coworker wants to send you a sensitive document to review while you are at lunch and you only have your personal tablet.

Pls mark me as brainlist

This is a critical consideration on using cloud-based file sharing and storage applications to determine that Determine the software program or provider is authorized.

What are the Indicators ?

It is of a capability insider chance may be damaged into 4 categories--signs of: recruitment, facts collection, facts transmittal and preferred suspicious behavior.

Determine if the software program or provider is authorized. A coworker desires to ship you a touchy record to study even as you're at lunch and also you most effectively have your private tablet.

Read more about the cloud-based file:

https://brainly.com/question/24228581

#SPJ2

Web résumés allow you to include extra graphics and images that you would not include in a traditional résumé. Please select the best answer from the choices provided T F.

Answers

A web resume is far better than a traditional resume because it can carry so much data about the person, and it includes images also. This statement is true.

What is a web resume?

A web resume is termed as a resume that is read by a computer program that summarizes the information of each employee.

Web resume has the data such as their parent name, education, skills, job experience, hobbies, languages, and so on.

Thus, the photo of the document about the project or internship that has been done in the past can be given on the web resume by uploading the certificate on the computer system along with the resume.

For example, in companies like Linkedin, apna, and so on there are many companies that ask about the person before creating an account.

More about the web resume link is given below.

brainly.com/question/862477

Answer:

true

Explanation:

What does a black box represent in the system input/output model?.

Answers

Answer:

es un elemento que se estudia desde el punto de vista de las entradas que recibe y las salidas o respuestas que produce, sin tener en cuenta su funcionamiento interno.

Explanation:

Data becomes _____ when it is presented in a context so that it can answer a question or support decision makin

Answers

Data becomes Moderate when it is presented in a context so that it can answer a question or support decision making.

What Does Data Mean?

Data when interpreted in the context of databases, it is known to be the full single items or things that are known  to be stored in a database.

They can come alone as individually or as a set. Data in a database is said to be often stored in database tables, that helps to organized into columns and also dictate the data types that should be stored in it .

Learn more about data from

https://brainly.com/question/179886

what does computer graphics mean?​

Answers

Answer:

Computer graphics deals with generating images with the aid of computers

Explanation:

Should a student have to redo work even though it was the teacher's fault for losing the assignment(s)?

My biology teacher lost TWO of my assignments. He KNOWS that I gave the assignments to him. We both came to a conclusion that either he had misplaced it or it was stolen.

Answers

Answer:

i think that the student should NOT have to redo work, especially if it was the teacher's fault for losing the assignment(s).

I hope you get credit for your work tho, and the teacher is reasonable and understanding

Explanation:

How do you answer this ?

Answers

Answer:

Just put True or false for your answer

Explanation:

Use a Dictionary

Explain why Austin takes close-up pictures of whales and displays them in life-size? worth 50 points

Answers

The reason why Austin takes close - up pictures of and displays them in life - size is due to the fact that  he wants to give viewers an indelible view or opinion of what a whale is.

It also to give whales a background to bring out unexplored thought and emotion in a lot of ways that has been yet to pursued .

What are Whales?

This is known to be Animals that are said to be mostly distributed and have a lot of group of aquatic placental marine mammals.

They are known to belong to an informal grouping as they belong to the order Cetartiodactyla.

Learn more about pictures from

https://brainly.com/question/25938417

write the algorithms for the problem How to post a letter ? you can put pictures for the steps ​

Answers

❖ Step 1: Start

❖ Step 2: Write a letter

❖ Step 3: Put in envelope

❖ Step 4: Paste stamp

❖ Step 5: Put it in the letter box

❖ Step 6: Stop

[tex]\frak{\fcolorbox{black}{pink}{Black Pink in your area$~$}}[/tex] ~←(>▽<)ノ

i am looking for some code to write 1,1,1 to 1,1,20 then switch to 1,2,1 to 1,2,20 all the way up to 20,20,20. any info would help alot thanks.

Answers

Answer:

press [Alt]+[F3] to open the create new building block dialog box. AutoText is listed in the Quick Parts dropdown, which is in the Text group on the insert tab.

Chris is working with other employees on a worksheet. the other employees have made comments, but they are not visible.

what should chris do to ensure that he can see others’ comments?

a. select show all comments on the review tab.
b. select show no comments on the review tab.
c. select add comment on the review tab.
d select track changes on the review tab.

Answers

Answer:

a. select show all comments on the review tab

Explanation:

Please mark me brainliest if correct

Answer:

A

Explanation:

How do IT Support professionals measure success? Choose all answers that apply. You will get credit for all answers that are correct. Select 4 correct answer(s)
Using the SWOT analysis
Creating a C-Corporation
Customer satisfaction
Saving money in the bank
Call volume
Resolution time
Response time​

Answers

IT Support professionals measure success through;

Using the SWOT analysis.Customer satisfaction.Resolution time.Response time​.

How do One measure success in information technology?

IT success is known to be one that can be achieved by excelling in a lot of aspects such as:

Operational excellence.Delivering new functionality. keeping costs in line, etc.

By using the four method above, one can know if IT is succeeding or not.

Learn more about success from

https://brainly.com/question/24553900

4. is the disappearance of the individual a bad thing?

Answers

Answer:

The program completed in a third of the time with six computers versus one computer.

Explanation:

10) ________ objects control the flow of the application. A) Boundary B) Utility C) Control D) All of the above

Answers

There are different kinds of applications.  Control objects control the flow of the application.

What works the flow of control in a program?

In computer, control flow or flow of control is known to be a type of an order function calls, instructions, and statements.

They are known to be used in the execution or in an evaluation when a specific program is running. Note that a lot of programming languages have the control flow statements, that helps to know the section of code is run in a program at any given time.

Learn more about application from

https://brainly.com/question/23275071

Which discipline focuses on the design of computer hardware?

information technology

computer engineering

information systems

computer science

Answers

computer engineering

Answer:

Computer Engineering

Explanation:

People that work in the computer engineering field usually create hardware such as the CPU, PSU, RAM, GPU, SSD & a few more.

Please help me!!!!!!!!!!! I really need help

Answers

The answer is a variable

How do you define a physics material?
A. As an object in the Hierarchy panel
B. All of these will work
C. As a component on a sprite
D. As an Asset that can be linked to a collider on an object

Answers

Answer:

as an object in the hierachy panel

What happens when an auditory system and computing system are connected by abstraction?
A. They convert sound signals Into data that can be used to tell a device how to function.
B. They allow blological abstractions and computing systems to filter data.
C. They analyze data from both systems so only doctors can uno medical devices. D. They separate Input and output data from one another. ​

Answers

Answer:

It's A. They convert sound signals Into data that can be used to tell a device how to function.

Explanation:

Other Questions
Crest toothpaste markets its fruit flavored toothpaste to children, and its whitening toothpaste to adults. This is an example of Blank______ segmentation. A. demographic B. behavioral C. psychographic D. geographic Types of recycling1)2)3) What is the value of x?13 m15 m Why the world population did not grow in the earlier centuries? explain Gabrielle and Rob earn a total of $2,560 this week. With their total earnings from the week, Gabrielle buys 2 train tickets that cost $215.80 each, and Rob buys 2 suitcases that cost $36.50 each. Which statement is true?A) Gabrielle and Rob have $ 2,055.40 of the $2 ,560 left because 2,560 2( 215.80 ) 2(36.50 ) is equal to 2,055.4.B)Gabrielle and Rob have $2,091.90 of the $2,560 left because 2,5602(215.80)36.50 is equal to 2,091.9.C)Gabrielle and Rob have $2,271.20 of the $2,560 left because 2,560215.802(36.50) is equal to 2,271.2.D)Gabrielle and Rob have $2,307.70 of the $2,560 left because 2,560215.8036.50 is equal to 2,307.7. 32Two functions are shown.What is the rate of change, in simplest form, of the function that has the lesser rate of change? How many moles of oxygen are required to burn in one mole of C4H8 completely? Why is the enzyme telomerase important in some cells?. bro no one is helping?? Hi! Please help. (Geometry Btw) If the force generated by the car to push it forward is 8,000 N, what can be said about the force opposing the cars motion? Indica si las palabras que vas a escuchar tienen connotaciones positivas o negativas. List and describe the characteristics of a perfectly competitive market. Do hardwork and intelligence can be inherit or not? A scale says that it's readings are accurate to within 1%, meaning that when an objectis weighed using that scale, the reading will have an error of at most 1%.Gillian puts a math textbook on a scale, and the scale reads 1,999.8 grams. What isthe difference between the maximum and minimum possible values for the textbook'sactual weight? Which is the pattern for factoring the sum of cubes how many tropical storms hurricanes and tropical depressions have hit new york city sice 2000 If QR=x+29 and PS=x16, what is the value of x? Towns Kand L are shown on a map.Na) Work out the actual distancebetween towns Kand L.b) A third town, M, is 150 km dueSouth of town K.Mark M on the map with X.c) Measure the bearing of town Lfrom town K.Scale: 1 cm represents 50 km 7. Frank wants to paint his room in the school colors of maroon and white. The floor andceiling will be white, and all the walls will be maroon. The door will also be white. If onegallon of paint covers 400 sq ft, how many gallons of each color will he need?A. 1 gallon white, 1 gallon maroonB. 1gallon white, 2 gallons maroonC. 2 gallons white, 2 gallons maroonD. 2 gallons white, 3 gallons maroon10 ft3 ft7 ftlo12 ft12 ft