In Java: Write a program whose inputs are three integers, and whose output is the smallest of the three values.Ex: If the input is: 7 15 3Output: 3Code:import java.util.Scanner;public class LabProgram{public static int LargestNumber(int num1, int num2, int num3){if(num1 > num2 && num1 > num3)return num1;else if(num2 > num3)return num2;elsereturn num3;}public static int SmallestNumber(int num1, int num2, int num3){if(num1 < num2 && num1 < num3);return num1;else if(num2 < num3)return num2;elsereturn num3;}public static void main(String[] args){int a,b,c, largest, smallest;Scanner sc=new Scanner(System.in);System.out.println("\nEnter the numbers:");a=sc.nextInt();b=sc.nextInt();c=sc.nextInt();largest = LargestNumber(a,b,c);smallest = SmallestNumber(a,b,c);System.out.println("\nLargest: "+largest);System.out.println("Smallest: "+smallest);}}Error: LabProgram.java:20: error: 'else' without 'if' else if(num2 < num3)

Answers

Answer 1

The error message is indicating that there is an 'else' statement without an associated 'if' statement. This is likely caused by a semicolon at the end of the following line.

This semicolon is ending the if statement and causing the following else statement to not be associated with an if statement.

To fix this error, you can remove the semicolon and it should work fine.

It should be like this.

Also, you can remove the first method LargestNumber(int num1, int num2, int num3) and its calling in the main method as it's not needed and causing confusion.

Here's the final code:

-------------------------------------------------

import java.util.Scanner;

public class LabProgram{

   public static int SmallestNumber(int num1, int num2, int num3){

       if(num1 < num2 && num1 < num3) return num1;

       else if(num2 < num3) return num2;

       else return num3;

   }

   public static void main(String[] args){

       int a,b,c, smallest;

       Scanner sc=new Scanner(System.in);

       System.out.println("\nEnter the numbers:");

       a=sc.nextInt();

       b=sc.nextInt();

       c=sc.nextInt();

       smallest = SmallestNumber(a,b,c);

       System.out.println("\nSmallest: "+smallest);

   }

}

---------------------------------------------------------------------------

In this code, the user inputs 3 integers, the program then uses an if-else statement inside the method SmallestNumber(int num1, int num2, int num3) to determine the smallest of the three values, and then it prints the smallest value on the console.


Related Questions

Tony works as a Sorter in a processing factory. Which qualifications does he most likely have?

Answers

Answer:

It is likely that Tony has qualifications related to manual labor and/or factory work, such as experience operating machinery, knowledge of safety procedures, and attention to detail. A high school diploma or equivalent is typically sufficient for this type of job. However, it is worth noting that different factories may have different qualifications and requirements for a Sorter position, so it is possible that Tony may have additional qualifications specific to the factory where he works.

Explanation:

which of the following contains text you type and that appears on all the slides in the presentation? a. date and time b. header c. footer d. slide number

Answers

The footer comprises text that you enter and that shows on all of the presentation's slides.

What do you mean by footer ?

A footer is content that is shown automatically at the bottom if each page of such a printed document. A name or page number are examples of this text. Consider the header. [computing] In page mode, page numbers, annotations, headers, all footers are displayed. Footers are located in the margin area at the bottom of such a page. Typically, headers & footers carry document-specific information such as the document, author, date of creation, page numbering, and so on. Because this information was repeated on each page, the reader can swiftly navigate the document.

To know more about footer, visit
brainly.com/question/14379814
#SPJ4

Scenario: You work for a large manufacturing company, which currently hosts several dozen Windows Server systems installed on rackmount servers, some of which host custom Web apps that are used by computers across the entire organization. There are plans to expand in the next year, and the number of servers and clients is expected to double. As part of this expansion, the organization is considering shifting to an environment that involves virtualization for many of its current and future Windows Server operating systems. Additionally, the organization is considering hosting its custom Web apps within containers, possibly within the cloud. The IT manager has asked for your input regarding the benefits of adopting virtualization and containers within the organization.

Answers

Answer:

A possible scenario would be that we move to the city. The most likely scenario is that he goes back to school in the fall. The best-case scenario would be for us to finish the work by tomorrow. In the worst-case scenario, we would have to start the project all over again

USDA-APHIS Animal Care Resource Policy #12 "Considerations of Alternatives to Painful/Distressful Procedures" states that when a database search is the primary means of considerations to alternatives of painful and distressful procedures, that a narrative should include all of the following except:
A. The name of the databases searched
B. The date the search was performed
C. The specific field of study
D. The search strategy (including scientifically relevant terminology) used

Answers

The following should all be included in a story as the main method of considerations to alternatives of difficult and upsetting procedures, with the exception of The specific field of study.

What is main method?

The main method is a fundamental part of any Java program. It is the entry point of a program and is the first method called when a program is executed. It is typically declared as public static void main(String[] args), meaning that it is a public method that is static and has a void return type. The main method accepts an array of String objects, which are command line arguments used to pass data into the program. The main method is typically used to create objects, set up variables, and invoke other methods within the program. It is also used to control the flow of the program, as it is the first method called and the last to complete.

To learn more about main method
https://brainly.com/question/29886897
#SPJ4

Data transformation can change the structure of the data. an example of this is taking data stored in one format and converting it to another.
True
False

Answers

Data transformation can alter the data structure.an example of this is taking data stored in one format and converting it to another is true.so the corrcet is True.

The process of changing data from one format or structure to another is known as data transformation in computing. It is a key component of the majority of data management and integration tasks, including data wrangling, data warehousing, data integration, and application integration.Another type of data transformation is a master data recast, which involves transforming or recasting the entire database's contents without removing the data from the source.

A network of foreign key constraints establishes a direct or indirect relationship between every piece of data in a well-designed database and a small number of master database tables. A distinct database index from the parent database table is a need for each foreign key constraint. Therefore, the directly and indirectly associated data are also recast or restated when the appropriate master database table is recast with a different unique index. Since the original unique index is still present together with the master data, the directly and indirectly linked data can still be examined in its original format.

To learn more about " data transformation" Click on below link brainly.com/question/29487957

#SPJ4

the first step in the form wizard is to . a. select the fields to include in the form b. provide a name for the form c. select a layout for the form d. select a sort order for the records

Answers

The first step in the form wizard is to provide a name for the form.

Hence, option B is correct answer.

What does a database form wizard do?

A flexible tool for creating forms that run a single query is the Data Form Wizard. The queries may pertain to a single database table or one that utilises several tables. A Recordset object, which represents all of the records returned by the query, is created when it is run.

In comparison to one-click forms, the Form Wizard allows you greater control over your outcomes. The wizard creates a form based on your instructions and gives you the option to choose specific design elements.

Learn more about the form wizard here: https://brainly.com/question/9759966

#SPJ4

which is needed to virtualize an instance of ubuntu the first time?

Answers

You can go to a "virtual terminal" and leave the rest alone by pressing Ctrl + Alt + F3.

Ubuntu is a Linux distribution built on Debian and consists primarily of free and open-source software. The Ubuntu operating system comes in three official editions: Desktop, Server, Core for robotics, and Internet of Things devices. In computing, a virtual terminal (VT) is a piece of software that replicates the features of a conventional terminal originally used to connect to a server or mainframe. An online technology known as a virtual terminal is used by shops to accept credit card payments. You can go to a "virtual terminal" and leave the rest alone by pressing Ctrl + Alt + F3. As a result, if you subsequently press Alt + F2 (or Alt + Left or again Alt + Right), you can carry on working.

Learn more about Ubuntu here:

https://brainly.com/question/28232547

#SPJ4

You have an Azure virtual machine named VM1 that connects to a virtual network named VNET1.

A network security group (NSG) named NSG1 allows connections to VM1 from VNET1 only.

You need to add an inbound security rule to NSG1 that meets the following requirements:

Allows Azure Backup to back up VM1
Minimizes the types of allowed inbound traffic
What should you use as the source for the inbound security rule?

Select only one answer.

any IP address

the IP address of VM1

a service tag for Azure Backup

an application security group

Answers

The best option to use as the source for the inbound security rule would be option D: a service tag for Azure Backup.

What is  service tag?

A service tag is a specific group of IP addresses that are used by a particular Azure service. By using a service tag for Azure Backup, you can allow Azure Backup to connect to your VM without having to specify individual IP addresses. This minimizes the number of IP addresses that you need to allow, and also ensures that you will not accidentally block the IP addresses used by Azure Backup.

If you use any IP address, then it will allow all the incoming traffic which can be a security risk.

If you use the IP address of VM1 as the source, it will allow only the traffic from that specific IP which is not useful in this case.

Therefore, An application security group allows you to group virtual machines and define network security rules for the group, but it does not minimize the types of allowed inbound traffic.

Learn more about  virtual machine from

https://brainly.com/question/28271597

#SPJ1

Which of the following statements about the relational database model is NOT​ true?
A. Data redundancy is completely eliminated.
B. Records of data are in table rows.
C. Tables can be related through the use of common fields.
D. Tables contain all the facts about the objects of interest in the database.
E. Data attributes are in table columns.

Answers

Data redundancy is not completely eliminated in the relational database model. Data redundancy refers to the storage of the same data in multiple locations, and while it can be minimized, it usually cannot be completely eliminated.

What is Data redundancy?

Data redundancy is a data storage strategy in which redundant (i.e. duplicate) copies of data are kept in multiple locations. This strategy increases the availability of data by making it accessible in multiple locations. It also helps to protect data against single point of failure, as if one copy of the data is lost, there are other copies available. Data redundancy is especially important in business settings, as it helps to ensure that essential data is preserved in the event of a system failure. Data redundancy also helps to reduce the risk of data corruption, as multiple copies can be compared and any discrepancies can be identified. Data redundancy can also be used to increase data security, as the data is stored in multiple locations and it is more difficult for unauthorized individuals to access it.

To learn more about Data redundancy
https://brainly.com/question/13438926
#SPJ4

Which of the following components are parts of a basic computer? Select all that apply.
-Cloud service
-Processor
-Printer
-Network interface

Answers

A basic computer consists of a processor, memory, storage, network interface, display, power supply, and operating system.

What is computer?

A computer is a device that may be configured to automatically perform series of mathematical or logical operations (computation). Modern digital electronic computers are capable of running programmes, which are generalised sets of operations. These apps give computers the ability to carry out a variety of tasks. A computer system is a minimally functional computer that contains the peripheral devices, operating system (primary software), and hardware required for proper operation. This phrase may also apply to a collection of connected computers that work as a unit, such as a network and computer cluster.

To learn more about computer
https://brainly.com/question/21474169
#SPJ4

encoding means converting the sender's ideas into a message, which could be verbal, visual, or both.
a. true
b. false

Answers

Despite the fact that a picture may be worth a thousand words, the most crucial aspect of encoding is what is conveyed, not what is received.

Which aspect of communication involves deciphering and giving meaning to the transmitted codes?

The message then travels along the channel to the recipient, who completes communication by analyzing and giving the message meaning, a process called as decoding.

Exactly exactly do you mean by encoding?

The process of converting a string of characters (letters, numbers, punctuation, and particular symbols) into a format that is specifically created for effective transmission or storage is known as encoding.

To know more about encoding visit:-

https://brainly.com/question/24613164

#SPJ4

which of the following involves the insertion of various data retrieval statements into an application?

Answers

The introduction of multiple data recovery statements into a program is a component of query optimization.

What is data

Data is information that is organized and can be processed digitally. It can be used to answer questions and draw conclusions about a given subject. Data can take many different forms, including numbers, words, images, audio, and video. Data is a powerful tool for businesses, governments, and organizations, as it can be used to make decisions, analyze trends, and develop strategies.
Data that a computer uses to conduct actions on amounts, letters, or symbols is kept and recorded on magnetic, optical, electronic, or structural storage media and sent as digital optical or electrical signals. Peripheral devices are used by computers to transfer data in / out.

To know more about data
https://brainly.com/question/10980404
#SPJ4

there are six steps that will help you create your final deliverables. the deliverables for this project are as follows: security assessment report (sar): this report should be a seven- to eight-page double-spaced word document with citations in apa format. the page count does not include figures, diagrams, tables, or citations. nontechnical presentation: this is a set of eight to 10 powerpoint slides for upper management that summarizes your thoughts regarding the findings in your sar. in a word document, share your lab experience and provide screenshots to demonstrate that you performed the lab.

Answers

Initiation is the first of its six major phases.

Planning.Execution.Monitoring and management.Closure.Optimization after the project.

What is management?A better definition of technology management would be the management of the use of technology for human benefit. Technology management is also known as the integrated planning, design, optimization, operation, and control of technological goods, processes, and services. Planning, making decisions, organizing, motivating, leading, and directing an organization's information, financial, physical, and human resources are all parts of the management process that help the organisation achieve its objectives quickly and successfully.Technology management focuses on proving that the best outcomes were achieved using the knowledge, expertise, and tools at your disposal throughout the project's many stages. Where success can be attained through effective technology management should be determined by the project management.

To learn more about management, refer to:

https://brainly.com/question/23178979

#SPJ4

You have an Azure subscription named Sub1.

You plan to deploy a virtual machine scale set named VMSS1. VMSS1 will have 8 instances.

What is the maximum number of availability zones that VMSS1 can use?

Select only one answer.

1

2

3

4

Answers

The maximum number of availability zones that VMSS1 can use is option B: 2

What is the Azure subscription  about?

An Azure Virtual Machine Scale Set (VMSS) can be deployed in multiple availability zones. The maximum number of availability zones that a VMSS can use depends on the number of instances in the scale set and the region where it is deployed.

In your case, you plan to deploy a VMSS named VMSS1 with 8 instances in it. The maximum number of availability zones that VMSS1 can use is 2.

Therefore, It's important to note that availability zones are a feature that is only available in certain regions, and not all regions have the same number of availability zones. It's also important to check if the subscription and the region you are working on support availability zones.

Learn more about Azure subscription  from

https://brainly.com/question/30155923

#SPJ1

Write short notes on the different elements of a multimedia.

Answers

Answer:

There are five basic elements of multimedia: text, images, audio, video and animation. Example - Text in fax, Photographic images, Geographic information system maps, Voice commands, Audio messages, Music, Graphics, Moving graphics animation, Full-motion stored and live video, Holographic image

(⁠◔⁠‿⁠◔⁠)(⁠◔⁠‿⁠◔⁠)(⁠◔⁠‿⁠◔⁠)

Audio: alludes to a sound or spoken content, including music, exchange, and audio effects.

Video: alludes to a moving visual substance, including true to life film, movement, and embellishments.

Text: alludes to composed or composed content, including inscriptions, captions, and composed portrayals.

Images: alludes to static visual substance, including photos, representations, and illustrations.

Interactive elements: alludes to components that permit the client to cooperate with the media, like buttons, connections, and route menus.

Animation: alludes to the utilization of moving pictures and designs to make the deception of movement.

Hypertext: alludes to the utilization of connections inside the media that permit the client to explore to other sight and sound or website pages.

Streaming Technology: alludes to innovation that permits mixed media to be played progressively over the web without the need to download the whole document.

These components can be utilized in different blends to make a media piece that is connecting with, educational and intelligent.

Two ways to accommodate high-demand, low-density (HD/LD) assets such as interagency partners are _____. (Select all that apply.)- to use online conferencing and video teleconferencing- to focus on expanding the information sharing aperture by de-classification of information and development of commonly shared information platforms

Answers

Two ways to accommodate high-demand, low-density (HD/LD) assets such as interagency partners are to use online conferencing and video teleconferencing.

What is teleconferencing ?

A teleconference is a two-person or more live audio- or video-based meeting. Remote teams within a business can cooperate and communicate even when they are geographically separated because to the capacity to teleconference. Technology more advanced than a straightforward information two-way phone connection is used in the process.

Some claim there are six different forms of teleconferences: business television (BTV), voice communication, audio graphic, computer, video, and remote education. However, these can generally be boiled down to their bare minimum for the sake of simplicity: voice conferencing and video conferencing.

Learn more about the Information here: https://brainly.com/question/28498043

#SPJ4

which is tools are used to manage project time, and show dependencies between tasks?

Answers

The most common tools used to manage project time and show dependencies between tasks are Gantt Charts and Project Management Software.

What is the Software ?

Software is a set of instructions, data, or programs used to operate computers and execute specific tasks. Software is typically stored on digital or analog media, such as hard drives, CDs, DVDs, or flash memory. It is an integral part of computer systems and is a major component in the development and maintenance of modern technology. Software can range from application programs such as word processors, spreadsheets, and databases, to system programs such as operating systems, device drivers, and firmware. It can also include web applications, mobile apps, artificial intelligence, and machine learning. Software can be developed by individuals, groups, or organizations, as well as by governments.

To learn more about Software

https://brainly.com/question/28224061

#SPJ4

Which of the following queries will return the data for employees who belong to the department with the highest value of department id?
O SELECT first_name, last_name FROM employees WHERE manager_id IN O (SELECT employee_id FROM employees WHERE department_id IN O (SELECT department_id FROM departments WHERE location_id IN O (SELECT location_id FROM locations 4 WHERE country_id='US')));

Answers

The query ,SELECT first_name, last_name

FROM employees

WHERE department_id =

(SELECT MAX(department_id) FROM departments);

will return the data for employees who belong to the department with the highest value of department id.

The query will first find the department with the highest department id using the "MAX" function. Then it will join the employees table with the department_id and return the first_name and last_name of the employees that belong to that department.

The query provided in the question:

SELECT first_name, last_name FROM employees WHERE manager_id IN

(SELECT employee_id FROM employees WHERE department_id IN

(SELECT department_id FROM departments WHERE location_id IN

(SELECT location_id FROM locations 4 WHERE country_id='US')));

is not correct as it is making reference to different tables and conditions which are not related to the prompt.

Find out more about Query

brainly.com/question/29675812

#SPJ4

assume that the following code exists inside a method of the class myclass, and that this code compiles without errors: int result

Answers

It uses a mutator technique. A mistake could also happen if you neglect to import a necessary Java package. Consider the following application, which allows the user to enter an integer:

public class Test {

       public static void main(String[] args) {

           my_method();

       }

   

       public static void my_method() {

           System.out.println("Hello, world!");

       }

   }

   public class Test {    

       public static void main(String[] args) {

           Scanner console = new Scanner(System.in);

           int n = console.nextInt();

       }

   }

Learn more about string here-

https://brainly.com/question/14528583

#SPJ4

Write a program that reads a person's first and last names separated by a space, assuming the first and last names are both single words. Then the program outputs last name, first name. End with newline. Example output if the input is: Maya Jones Jones, Maya\ Im having trouble with the newline character. This was my input:import java.util.Scanner;public class SpaceReplace {public static void main(String[] args) {Scanner scnr = new Scanner(System.in);String firstName;String lastName;firstName = scnr.next();lastName = scnr.next();System.out.print(lastName + ", " + firstName\n);\ Its throwing this error:SpaceReplace.java:12: error: illegal character: '\'

Answers

According to the problem,You need to remove the backslash character before the n in your System.out.print statement.

What is the backslash ?

The backslash (\) is a character used in computer programming and coding. It is used to indicate an escape sequence, which is a set of characters that when read by a program or device will cause the program or device to perform a specific action.

System.out.print(lastName + ", " + firstName\n);

                                           ^

1 error

You need to remove the backslash character before the n in your System.out.print statement. The new line character is '\n', not '

\n'. So, you need to change your code to the following:

import java.util.Scanner;

public class SpaceReplace {

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       String firstName;

       String lastName;

       firstName = scnr.next();

       lastName = scnr.next();

       System.out.print(lastName + ", " + firstName + "\n");

   }

}

To learn more about backslash

https://brainly.com/question/26041371

#SPJ4

Assume that a little-endian machine currently has the data shown (in hex) below in its memory:addr: 0x48 0x49 etc. data: | AC | EF | AC | CA | FE | CA | 0D | F0 |Which address (in hex) should be put in the blank below so that the variable y holds the value 0xCAFE?short *p = ______;short y = *p;

Answers

The address that should be put in the blank so that the variable y holds the value 0xCAFE is 0x48 + 2 = 0x4A

This is because the machine is little-endian, which means that the least significant byte of a multi-byte value is stored at the lowest memory address. In this case, the least significant byte of 0xCAFE is 0xFE, and it is stored at the address 0x48 + 2.

So, the correct code would be:

short *p = (short *) 0x4A;

short y = *p;

using your name and the name of a friend, describe the process of sending your friend a message using public key cryptography. your explanation should include the terms: public key, private key, encrypt(ion), decrypt(ion)

Answers

My private key and Mr. G's additional information are saved on our computers rather than being sent over the internet, so in order for someone to decrypt the communication.

What is an example of public key encryption?

I'm able to generate a private key and use it to encrypt data. Afterward, Mr. G can add his knowledge to my secret information by using the public key to access it. In that case, I can use my private key to decrypt the data. My private key and Mr. G's additional information are saved on our computers rather than being sent over the internet, so in order for someone to decrypt the communication.

They would need to either know my private key or Mr. G's additional information, neither of which they would be able to see. To send Alice a secure email, Bob wishes to. To accomplish this, Bob encrypts his communication to Alice using her public key. Afterward, Alice takes the private key that is known only to her in order to decrypt the message from Bob after receiving it.

To learn more about key encryption refer to :

https://brainly.com/question/28283722

#SPJ4

What is the proper function to call to print to the screen?
a. write
b. println
c. PRINT
d. post

Answers

According to the question, the proper function to call to print to the screen is println.

What is function?
A function is a predefined set of instructions that can be reused over and over again to perform a specific task. Functions are also known as routines, subroutines, or procedures. Functions allow for code to be easily and efficiently reused, which can save time and effort. Functions are usually created using a specific programming language and allow for parameter passing, which allows the function to receive input data and process it. Once the function has been written, it can be called multiple times, and the same instructions will be executed each time. Functions can also be used to break down complex tasks into simpler ones and are essential components of programming languages.

To learn more about function
https://brainly.com/question/14525689

#SPJ4

given the invoice table and the data that it contains, and assuming that you have the rights to modify the table, which of the following alter table statements would work without errors?

Answers

A table's columns can be added, removed, or modified using the SQL ALTER TABLE command. The ALTER TABLE command should also be used to add and remove different constraints from an existing table.

What command is used to add a column to a table that already exists, Mcq?

Columns in an existing table can be added, dropped, or modified using the ALTER TABLE statement. Additionally, it is used to add and remove certain constraints from the current table.

Which statement can be used to change a table's definition that already exists?

The ALTER TABLE statement can be used to add, remove, or change the columns of an existing table. A table's existing constraints can be added or removed using the ALTER TABLE statement.

To know more about command visit:-

https://brainly.com/question/29611299

#SPJ4

An attacker can exploit a weakness in a password protocol to calculate the hash of a password. Which of the following can the attacker match the hash to, as a means to obtain the password? (Select all that apply.) A. Pre-Shared Key (PSK) B. Dictionary attack C. Rainbow table D. Wi-Fi Protected Access (WPA)

Answers

The correct options are: (B) Dictionary attack and (C) Rainbow Table

A Dictionary Attack is just an attack vector used by an attacker to break into a password-protected system by using every word found in a dictionary as a password for that system. This type of assault vector is a Brute Force Attack.The dictionary can comprise terms from an English dictionary as well as a leaked list of widely used passwords, which, when combined alongside common character replacement with digits, can be quite successful and fast at times.Essentially, it is testing every single word that has previously been prepared. It is accomplished through the use of automated technologies that test all potential terms in the dictionary.The difference between a dictionary attack and a brute force attack is that a huge variety of key permutations be checked in a brute force attack, but a dictionary attack checks only the words with the highest chances of success and takes less time than a brute force attack.You can defend yourself against such attacks by using a combination of lower and upper case letters, numbers, and special characters (i.e. special characters).The password must consist of a long string of characters. The longer it is, more and more time it takes to crack.

To know more about cyber attacks visit:
brainly.com/question/24932553
#SPJ4

in class we discussed angular acceleration and tangential acceleration. describe how the simulation can be used to find each for the bugs in ladybug revolution

Answers

Due to the fact that every point on a rigid object has the same angular acceleration and angular speed, every point's angular displacement is likewise the same. Because a stiff body rotates along a fixed axis,

Every particle of the body travels in a circular route with its centre on the axis, lying in a plane perpendicular to the axis. In a rigid body, every particle rotates at a same angle and frequency. As a result, every particle has the same angular displacement.

Each particle in a rigid body has a variable tangential speed.

A particle's angular speed and the magnitude of its position vector with respect to the axis of rotation are used to calculate its tangential speed.

The magnitude of the position vector varies for each particle in a rigid body. The particle's tangential velocity is zero at the fixed axis and reaches its highest value towards the particle's outer surface.

Learn more about Speed here:

https://brainly.com/question/28082812

#SPJ4


Drag each tile to the correct box.
Identify whether the following languages are procedural languages or object-oriented languages.
C
Java FORTRAN COBOL Ruby
PROCEDURAL
Python
OBJECT-ORIENTED

Answers

In procedural programming, the program is divided into small parts called functions. In object-oriented programming, the program is divided into small parts called objects.

whether the following languages are procedural languages or object-oriented languages?

C++ is both a procedural and an object-oriented programming language. It supports OOP features such as polymorphism, encapsulation, and inheritance.In procedural programming, the program is divided into small parts called functions. In object-oriented programming, the program is divided into small parts called objects. Procedural programming follows a top-down approach. Object-oriented programming follows a bottom-up approach.ORTRAN,Computer procedural languages include BASIC, C,  FORTRAN,Java, and Pascal, to name a few. To create programs, they use variables, conditional statements, and functions that permit a computer to process and provide the desired output.

To learn more about java refers to;

https://brainly.com/question/25458754

#SPJ1

write the method resize, which returns a new two-dimensional array containing only rows from array2d with all non-zero values. the elements in the new array should appear in the same order as the order in which they appeared in the original array. the following code segment initializes a two-dimensional array and calls the resize method. int[][] arr

Answers

A multi-dimensional array is one that has more than one dimension. 2-D and 3-D arrays are the most often used multi-dimensional arrays.

Any higher dimensional array, we can say, is essentially an array of arrays.

// java program showing declaration of arrays

import java.io.*;

 

class GFG {

   public static void main(String[] args)

   {

 

       int[][] integer2DArray; // 2D integer array

       String[][] string2DArray; // 2D String array

       double[][] double2DArray; // 2D double array

       boolean[][] boolean2DArray; // 2D boolean array

       float[][] float2DArray; // 2D float array

       double[][] double2DArray; // 2D double array

   }

}

Learn more about array here-

https://brainly.com/question/19570024

#SPJ4

Identify a behavior that is considered unusual or abnormal in your own culture; however, it would be considered normal and expected in another culture

Answers

How each culture views normal and abnormal behaviour is one area that cultural psychiatry examines. The notion of what constitutes normal behaviour differs from culture to culture and across the globe.

What does modern society consider to be abnormal behaviour?

Behavior that is distressing, maladaptive (or self-defeating), disturbing (socially unacceptable), and frequently the result of distorted thoughts is considered abnormal behaviour (cognitions).

What constitutes an abnormal behaviour, exactly?

Depression is a good example of an abnormal behaviour that can be evaluated using a multi-criteria approach because it is frequently viewed as a departure from ideal mental stability, it frequently prevents the person from "functioning" in normal life, and even though it is a statistically uncommon mental disorder, it is still relatively common.

To know more about functioning visit:-

brainly.com/question/13502522

#SPJ4

the mapped network drive cannot be created this user can't sign in because account is currently disabled

Answers

Unfortunately, if the user's account is currently disabled, they will not be able to sign in to create the mapped network drive. You will need to enable their account to allow them to do so.

What is network drive?

A network drive is a shared storage space on a computer network where users can store, access, and share files. It is a file server that allows multiple users to access the same files and folders simultaneously, in a secure and convenient way. By connecting multiple computers together, users on a network can access the same files, regardless of where they are located. This is especially useful for businesses and organizations with multiple offices or locations. Network drives are also useful for sharing large files that would be too large to send by email.

To learn more about network drive
https://brainly.com/question/14283412
#SPJ4

Other Questions
4x+2y14 what is the y intercept? diagram shows a sphere and a conethe cone has height h cmthe radius of the base of the cone is 3 times the radius of the spheregiven that volume is equal to the volume of the cone find an expression of the radius of the sphere in terms of hgive your expression in the simplest form Eve's contractor recommended she not install baseboard heating. In which scenario would it be disadvantageous to install a baseboard heating system? A. Where electricity is generated from a gas-fired plant. B. Where there is high room air circulation. C. Where there are low ceiling heights. D. Where the TD is zero The velocity of a machine element over a 10 second period is:V=2.5t m/s 0V=10 m/s 4If the element represents aerodynamic drag, approximated by the characteristic F=CV^2 determine the power absorbed as a function of time, and the total energy dissipated if C= 1.0 N-s^2/m^2 agents must make clear where notices are to be delivered. this is done in one to four family residential contract (resale) paragraph 1. Fill the blanks with unit nouns a. A ............. of toothpaste . (tube, quart) Sammary of "Benefits of Online Shopping" not more than 70 words Within every large nation and most smaller nations, there are regions in that country with vastly different foods., What we call "Mexican cuisine" ___. and more. Who lives in West Egg in The Great Gatsby Chapter 1?. As societies exchange ideas, globalization is unable to keep up with the speed at which culture has spread. becomes more challenging at the speed that culture has spread. increases at the same speed at which culture has spread. is unaffected by the speed at which culture spreads. What is the conclusion of this article "miscellaneous organic chemical manufacturing: national emission standards for hazardous air pollutants"? Zoe and Hannah hare tip in the ratio of 3:7, lat week Zoe recieved 24 How much did Hannah receive lat week? What is a strong decision?. In addition to therapy, anti-depressant drugs are used in the treatment of depression. The data Type numbers inbelow are from a study comparing two anti-depressant drugs. A baseline measurement for symptomatic behavior for depression is taken. After treatment with medication, another measurement taken. The data given in the table is for improvement which is for the reductionin symptomatic behavior.Drug A 2.30 2.39 4.03 2.90 3.45 3.29 3.82 3.27 4.08 1.83 4.07 5.06Drug B 9.31 7.37 4.50 6.00 7.22 4.21 5.25 5.99 8.37 3.82 3.69 3.40 Which sentence from the article best supports the idea that conversation alone could not effectively lead to changes in the status of african-americans?. The following are the characteristics of a musical sound. 1.Pitch or Frequency 2.Intensity and loudness 3.Quality or Timber. -MicroconomicsLeonard McCoy is a manager at a coffee shop, and he has to decide how many workers to hire. One worker can make 30 drinks that sell for $2.50 on average in one hour. A second worker can make another 25 drinks in one hour. The marginal benefit of each additional worker decreases by five drinks, with each additional hire. Given that workers are paid $15 per hour and have eight-hour shifts, how many employees should Leonard hire for each hour? Intermittent schedules of reinforcement are necessary to? Tonya i nine year younger than twice Marty age. Danielle i two year older than Tonya. The um of the age of the three ibling can be expreed a 3M 8 where M repreent Marty age. How old i Marty? In developing countries, widespread __________, resulting from unsafe water and contaminated foods, leads to growth stunting and an estimated one million childhood deaths each year.A) diarrheaB) scurvyC) rubellaD) tuberculosis