describe a sub routine​

Answers

Answer 1

Explanation:

A routine or subroutine, also referred to as a function procedure and sub program is code called and executed anywhere in a program. FOr example a routine may be used to save a file or display the time.


Related Questions

Given that the variable named Boy = "Joey" and the variable named Age = 6, create statements that will output the following message:

Congratulations, Joey! Today you are 6 years old.

First, write one statement that will use a variable named Message to store the message. (You will need to concatenate all of the strings and variables together into the one variable named Message. If you don't know what that means, read the section in Chapter 1 about concatenation.)
Then write a second statement that will simply output the Message variable.

Answers

Answer:

isn't it already showing it if not put text box

Explanation:

Implement the method countInitial which accepts as parameters an ArrayList of Strings and a letter, stored in a String. (Precondition: the String letter has only one character. You do not need to check for this.) The method should return the number of Strings in the input ArrayList that start with the given letter. Your implementation should ignore the case of the Strings in the ArrayList. Hint - the algorithm to implement this method is just a modified version of the linear search algorithm. Use the runner class to test your method but do not add a main method to your U7_L4_Activity_One.java file or your code will not be scored correctly.

Answers

Answer:

Answered below

Explanation:

//Program is implemented in Java

public int countInitials(ArrayList<string> words, char letter){

int count = 0;

int i;

for(i = 0; i < words.length; i++){

if ( words[i][0]) == letter){

count++

}

}

return count;

}

//Test class

Class Test{

public static void main (String args[]){

ArrayList<string> words = new ArrayList<string>()

words.add("boy");

words.add("bell");

words.add("cat");

char letter = 'y';

int numWords = countInitials ( words, letter);

System.out.print(numWords);

}

}

let m be a positive integer with n bit binary representation an-1 an-2 ... a1a0 with an-1=1 what are the smallest and largest values that m could have

Answers

Answer:

Explanation:

From the given information:

[tex]a_{n-1} , a_{n-2}...a_o[/tex] in binary is:

[tex]a_{n-1}\times 2^{n-1} + a_{n-2}}\times 2^{n-2}+ ...+a_o[/tex]

So, the largest number posses all [tex]a_{n-1} , a_{n-2}...a_o[/tex]  nonzero, however, the smallest number has [tex]a_{n-2} , a_{n-3}...a_o[/tex] all zero.

The largest = 11111. . .1 in n times and the smallest = 1000. . .0 in n -1 times

i.e.

[tex](11111111...1)_2 = ( 1 \times 2^{n-1} + 1\times 2^{n-2} + ... + 1 )_{10}[/tex]

[tex]= \dfrac{1(2^n-1)}{2-1}[/tex]

[tex]\mathbf{=2^n -1}[/tex]

[tex](1000...0)_2 = (1 \times 2^{n-1} + 0 \times 2^{n-2} + 0 \times 2^{n-3} + ... + 0)_{10}[/tex]

[tex]\mathbf {= 2 ^{n-1}}[/tex]

Hence, the smallest value is [tex]\mathbf{2^{n-1}}[/tex] and the largest value is [tex]\mathbf{2^{n}-1}[/tex]

Approximately how many numeric IP addresses are possible with IPv4?

4 billon

Answers

Answer:

4,294,967,296 (~4.3B)

Explanation:

IPv4 uses 32-bits for representing addresses, thus you can have 2^32 total combinations.

During TCP/IP communications between two network hosts, information is encapsulated on the sending host and decapsulated on the receiving host using the OSI model. Match the information format with the appropriate layer of the OSI model.

a. Packets
b. Segments
c. Bits
d. Frames

1. Session Layer
2. Transport Layer
3. Network Layer
4. Data Link Layer
5. Physical Layer

Answers

Answer:

a. Packets - Network layer

b. Segments - Transport layer

c. Bits - Physical layer

d. Frames - Data link layer

Explanation:

When TCP/IP protocols are used for communication between two network hosts, there is a process of coding and decoding also called encapsulation and decapsulation.

This ensures the information is not accessible by other parties except the two hosts involved.

Operating Systems Interconnected model (OSI) is used to standardise communication in a computing system.

There are 7 layers used in the OSI model:

1. Session Layer

2. Transport Layer

3. Network Layer

4. Data Link Layer

5. Physical Layer

6. Presentation layer

7. Application layer

The information formats given are matched as

a. Packets - Network layer

b. Segments - Transport layer

c. Bits - Physical layer

d. Frames - Data link layer

You are considering upgrading memory on a laptop. What are three attributes of currently installed memory that HWiNFO can give to help you with this decision?

Answers

Answer:

Some of the qualities of the installed memory which HWiNFO can reveal are:

Date of manufactureMemory type Speed of memory

Explanation:

HWiNFO is an open-source systems information app/tool which Windows users can utilize as they best wish. It helps to detect information about the make-up of computers especially hardware.

If you used HWiNFO to diagnose the memory, the following information will be called up:

the total size of the memory and its current performance settingsthe size of each module, its manufacturer, and model Date of manufactureMemory type Speed of memorysupported burst lengths and module timings, write recovery time etc.

Cheers

Help need right now pls
Read the following Python code:
yards - 26
hexadecimalYards = hex (yards)
print (hexadecimalYards)
Which of the following is the correct output? (5 points)
A. 0b1a

B. 0d1a

C. 0h1a

D. 0x1a

Answers

Answer:

d. 0x1a

Explanation:

Sophisticated modeling software is helping international researchers

Answers

Answer:

A. increase the pace of research in finding and producing vaccines.

Explanation:

These are the options for the question;

A. increase the pace of research in finding and producing vaccines.

B. analyze computer systems to gather potential legal evidence.

C. market new types of products to a wider audience.

D. create more intricate screenplays and movie scripts.

Modeling software can be regarded as computer program developed in order to build simulations as well as other models. modelling software is device by international researchers to make research about different vaccines and other drugs and stimulants to combat different diseases. It helps the researcher to devoid of details that are not necessary and to deal with any complexity so that solution can be developed. It should be noted that Sophisticated modeling software is helping international researchers to increase the pace of research in finding and producing vaccines.

5. All sites are required to have the following reference materials available for use at VITA/TCE sites in paper or electronic format: Publication 17, Publication 4012, Volunteer Tax Alerts (VTA), and Quality Site Requirement Alerts (QSRA). AARP Foundation Tax Aide uses CyberTax Alerts in lieu of VTAs and QSRAs. What other publication must be available at each site and contains information about the new security requirements at sites

Answers

Answer:

Publication 5140.

Explanation:

The acronym VITA stands for Volunteer Income Tax Assistance and TCE stands for Tax Counseling for the Elderly. VITA/TCE is a certification gotten from the Internal Revenue Service in which the holders of such certification are trained on how to help people that have disabilities or that their incomes earners that are low. These volunteers help these set of people to prepare for their tax return.

In order to make the volunteers to be able to perform their work with high accuracy, the Department of Treasury, Internal Revenue Service gave out some aids for Quality Site. One of the aids which is the one contains information about the new security requirements at sites is given in the Publication 5140.

Other Questions
what is the unit price of cheese if 1.6 pounds cost $14.40? Find the value of x in the triangle shown below. Chase is making a cake for his daughter's birthday. The normal recipe calls for 8 ounces of butter and 16 ounces of sugar. Chase then decides to make a slightly smaller cake and only use 6 ounces of butter. How many ounces of sugar will he need in his smaller cake? How could a loyalist respond to the Patriots' arguments against British taxation? How can the taxes Britain collects HELP the colonists? 3. Assertion (A):- Plasma membrane is a selectively permeable membrane.Reason(R):- Plasma membrane allows entry and exit of substances from cell through the process of diffusion.a. Both A and Rare true and Ris correct explanation of the Ab. Both A and Rare true but Ris not the correct explanation of the AC. A is true but Ris falsed. Both A and Rare false4. Plasmodium is an example of Bacteria A market research firm studied the waiting time to order drinks during breakfast time at drive-thru in two coffee shop chains. For a sample of 30 locations of chain A, the sample standard deviation of waiting time was 21.2 seconds, and for a sample of 28 locations of chain B, the sample standard deviation was 31.4 seconds. Do these data suggest that the waiting time is more consistent in chain A What is 83% as a decimal SHOW WORK IF U CAN HELP ASAP!! The speed of the wooden bar is changed so that the bar hits the water fewer times each second. What happens to the frequency of the waves produced?A. IncreasesB. Does not change C. Decreases Analyze the map below and answer the question that follows.A satellite map of the Middle East. A country next to Iran and Turkmenistan is highlighted. A black star marks the capital Kabul.Image courtesy of NASA and the CIA World FactbookThe map above shows the countries of the Middle East. The country of Afghanistan is highlighted; what is its capital?A.BaghdadB.IstanbulC.KabulD.RiyadhPlease select the best answer from the choices providedABCD Which of the following statements is true?OA. Chemical reactions can either absorb thermal energy or release thermal energy.Chemical reactions can only absorb thermal energy.OC.Chemical reactions can neither absorb thermal energy nor release thermal energy.OD.Chemical reactions can only release thermal energy. On January 1, 2012, Sunland Company purchased for $690000, equipment having a useful life of ten years and an estimated salvage value of $40200. Sunland has recorded monthly depreciation of the equipment on the straight-line method. On December 31, 2020, the equipment was sold for $160000. As a result of this sale, Sunland should recognize a gain of This is a tough thing to explain, there is a history word document that looks like this (linked down below) and i need help with these answers Arts/EntertainmentScience/Technology/MedicinePublic Service/ GovernmentSportsBusinessif your confused click the document and look at the instructionsi will give 28 points and brainliest WILL MARK YOU BRAINLIEST Sahil watched a demonstration in which a scientist combined two substances in a sealed container and analyzed the results. The ending substances did not look the same as the starting substances.Sahil was given a diagram with the repeating groups of atoms that make up the starting substances, plus information about the properties of the starting and ending substances. He created a model of the repeating groups of atoms that might make up the two ending substances.Does his model correctly show why the properties of the ending substances are different from the properties of the starting substances? Describe what could be correct or incorrect about his model. Implement the method countInitial which accepts as parameters an ArrayList of Strings and a letter, stored in a String. (Precondition: the String letter has only one character. You do not need to check for this.) The method should return the number of Strings in the input ArrayList that start with the given letter. Your implementation should ignore the case of the Strings in the ArrayList. Hint - the algorithm to implement this method is just a modified version of the linear search algorithm. Use the runner class to test your method but do not add a main method to your U7_L4_Activity_One.java file or your code will not be scored correctly. What is the solution of the system? {5xy=21x+y=3 Enter your answer in the boxes. ( , ) The equation 3x + 2 = 29 is modeled below.Which is the first step in solving the equation for x? What is the price of $45 art set with 7% tax in 2001 an outbreak of hoof-and-mouth disease in europe led to the burning of millions of cattle carcasses. discuss the demand and supply implication caused by the outbreak, for an in-depth analysis of the discussion topic you may use all of the resources available to you. what impact would you expect on the supply of cattle hides, hide prices, the supply of leather goods, and the price of leather goods how does fallacious reasoning ruin the validity of an argumentA) it uses emotions rather than logic to convince people of a claim B) it convinces people to accept evidence in support of a claimC) it persuades people to accept the authors claim without proofD) it tries to persuade by using reasoning that is not sound or logical