1 suppose you buy a budget-priced pocket pc and discover that the chip inside can't do multiplication, only addition. you program your way out of this quandary by writing a recursive method, mult(), that performs multiplication of x and y by adding x to itself y times. its arguments are x and y and its return value is the product of x and y. write such a method and a main() program to call it. does the addition take place when the method calls itself or when it returns?

Answers

Answer 1
/* Works only if a >= 0 and b >= 0 */ int pow(int a, int b) {  if (b == 0)  return 1;  int answer = a;  int increment = a;  int i, j;  for(i = 1; i < b; i++)  {  for(j = 1; j < a; j++)  {  answer += increment;  }  increment = answer;  }  return answer; }   /* driver program to test above function */ int main() {  printf("\n %d", pow(5, 3));  getchar();  return 0; }

Related Questions

Patagonia was one of the first companies to offer employees a child care program. plans such as child care, sick-leave pay, vacation pay, pension and health care that provide additional compensation to employees beyond base wages are known as

Answers

The answer is fringe benefits. These are benefits in which are being provided to employees or workers in which provides conditions that be of benefit for their employees or workers and that they also provide fair market value towards their employees or workers working for them.

Plans such as child care, sick-leave pay, vacation pay, pension and health care that provide additional compensation to employees beyond base wages are known as Fringe benefits.

Fringe benefits are a form of compensation provided to employees over and above the normal salary or wages.

They are offered to employees as an incentive to retain them and to attract potential employees. These benefits can include a variety of options such as health insurance, retirement benefits, child care, sick-leave pay, vacation pay, and pensions, among others. Patagonia, by offering a child care program, is providing a fringe benefit that supports the well-being and work-life balance of its employees. These benefits are considered part of the employee's total compensation package and can be a significant factor in job satisfaction and employee retention.

When Scott says, “Human resources is one of the most important things we do in our business,” what is he referring to?

Answers

Scott's reference to Human Resources refers to the treatment of employees. Employees are important to a business for numerous reasons. Retention of employees reduces the costs associated with the on boarding of new hires. Employees that feel invested in also often form loyalty for their employer and may contribute more than expected to their tasks.

Which pattern of internal migration is most often found in developed countries?

Answers

Seasonal migration is the pattern that is normally found in countries that are developed. This occurs because people tend to visit whatever vacation spots are currently popular and spend at least a week in that location. This pattern is much less likely to occur in countries that are undeveloped.

In developed countries, the most common internal migration pattern is the rural-to-urban shift, influenced by the search for better employment and life quality. The brain gain is also notable as countries attract highly skilled workers for their economies.

The pattern of internal migration most often found in developed countries is the rural-to-urban shift. This occurs when individuals move from rural areas to urban centers, seeking improved employment opportunities and a better quality of life. Additionally, highly skilled migrants move to developed countries, contributing to a phenomenon known as the 'brain gain', where the destination country benefits from the skills without having to produce them domestically. However, these migrations are influenced by various factors, including wage differentials, cultural attachment, family proximity, and economic opportunities. It's worth noting that while economic pull factors are significant, they're not the sole reasons people migrate. Factors such as cultural ties and commitments to family and friends also play a significant role in the decision to move.

When comparing two distributions, it would be best to use relative frequency histograms rather then frequency histograms when?

Answers

when the distributions have different numbers of observations

Use relative frequency histograms to compare two distributions when sample sizes differ, as they provide a normalized comparison by showing proportions instead of raw counts, allowing for a fair comparison of distribution patterns.

When comparing two distributions, it would be best to use relative frequency histograms rather than frequency histograms when the sample sizes of the distributions being compared are different. Relative frequency histograms show the proportion of scores in each interval as a percentage of the total number of observations. This allows for an easier comparison between distributions since it normalizes the data. For instance, if one distribution is based on a sample of 35 observations and another on 356 observations, using relative frequencies will make the two distributions comparable by adjusting for sample size.

It is also essential to consider the distribution of data points. The relative frequency shows the proportion of data points within each value, allowing you to compare the shapes of the distributions independently from the size of the data set. When absolute frequencies are used, a distribution that's based on a smaller sample size can look less significant compared to one based on a larger sample size, even if their shapes are similar.

The type of factors which influence the behavior and value of the people in an organization includes organizational, individual, and ______________ factors.
a. customer service
b. productivity
c. group
d. interpersonal
e. leadership

Answers

E. Leadership . is the anseer

Organizational behavior is defined as the study of how people should interact with one another in a group. These principles and behaviors are applied for making the business operate more effectively.

The factors influencing the behavior and value of the people also includes leadership factor.

The organizational behavior for influencing people mainly includes the organizational, individual, and leadership factors for making the organization more effective and efficient in its workings.

The organizational behavior encourages leadership factors so that in a large organization having multiple departments and huge management are easily handled by the leaders who guide the subordinates effectively.

To know more about organizational behavior, refer to the link:

https://brainly.com/question/23820437

Name 5 banking task that can be done online

Answers

- Check Account Balances
-View all of your bank accounts IRA's and securities
- Send Money 
-Receive Money
- Add a new card to your account

Answer:

1. Online payment of bills

2. Checking account balance

3. Stop payment request

4. Fund transfer service

5.Viewing account statement or printing bank statement

Explanation:

Online banking is also called internet banking or web banking, means conducting banking services via the internet.

1. Online payment of bills - Settlement of bills can be done online without the need to involve payment of cash, it may be telephone bills, electricity or gas bill e.t.c.

2. Checking account balance - A bank customer can check his account online to know the balance in his bank account.

3. Stop payment request - The countermand of a check can be done online, countermand means reversing an earlier mandate given to a bank, that is stopping the payment of a check.

4. Fund transfer service - Transfer of fund either between one account and the other or between a customer in one bank and a customer in another bank can be done via online banking.

5. Viewing account statement or printing bank statement - Instead of waiting for bank statement to be sent by the bank at the end of a period, through online banking, a customer can view the debit and credit in his account or even print the statement directly.  

Glenn goes fishing every weekend. sometimes it takes an hour to catch a fish, sometimes it takes 15 minutes, and sometimes it takes 45 minutes. glenn catches fish on a __________ schedule of reinforcement.

Answers

The answer is variable interval. This otherwise known as VI, it is a type of operant conditioning reinforcement schedule in which reinforcement is set to a reaction after a particular amount of time has passed (which is sometimes an unpredictable amount of period), but this amount of time is on a varying variable schedule.

If the aggregate supply curve is upward sloping, an increase in aggregate demand will

Answers

If the A/S upward sloping the the A/D curve will tend to the right leading to an increased demand for goods. 

Ski trips and ski jackets are complements. the cross elasticity of demand for ski trips with respect to the price of a ski jacket is​ _______.

Answers

If the price of the ski trip has increased then the demand for the ski jacket will likely decrease because of the demand curve in terms of the ski jackets that will be shipping to the leftward as the ski trip were to increase.

The cross elasticity of demand for ski trips with respect to the price of a ski jacket is negative, indicating that these goods are complements and demand moves inversely with price changes.

In the context of ski trips and ski jackets being complements, the cross elasticity of demand for ski trips with respect to the price of a ski jacket is negative. This is because an increase in the price of ski jackets, which are a complement to ski trips, would typically lead to a decrease in the demand for ski trips. The cross elasticity of demand measures how the quantity demanded of one good (ski trips) changes in response to a price change in another good (ski jackets).

As these are complementary goods, used together, the relationship between their price and demand is inversely related. Therefore, if the price of a ski jacket increases, fewer ski jackets are sold, and consequently, the demand for ski trips decreases, reflecting a negative cross elasticity.

OSHA issues fines against companies which have safety violation in order to _______.
a. Convince them OSHA is out to get them
b. Confuse them into paying for unnecessary improvements
c. Castigate them for trying to hurt employees
d. Compel them to make safety improvements

Answers

OSHA issues fines against companies which have safety violation in order to D. Compel them to make safety improvements.

OSHA stands for the occupational safety and health administration. The OSHA administration makes sure that all safety requirements are being followed by a business to ensure quality and safety of their employees and consumers. OSHA conducts safety inspections to make sure there are no safety violations, if there are, there is a time limit set for when/how to fix the violation.

Answer:

d. Compel them to make safety improvements

Explanation:

OSHA is an agency of the US government that works to maintain a safe and healthy environment for workers and it does this by enforcing standards and doing inspections in which fines are issued when this standards are not met. The idea is that companies maintain standards that fulfill the regulations and like that avoid deaths, injuries and diseases among employees.

According to this, OSHA issues fines against companies which have safety violation in order to compel them to make safety improvements.

The rights of disabled individuals to access public businesses is guaranteed by which entity?

Answers

The rights of disabled individuals to access public businesses is guaranteed by the Americans with Disabilities Act of 1990. It was the nations first comprehensive civil rights law addressing the needs of people with disabilities, also prohibiting discrimination in employment, public services, and public accommodations.

What type of writing in james t. farrell lonigan?

Answers

was an American novelist, short-story writer, and poet. Farrell based his writing on his own experiences, particularly those that he included in his celebrated "Danny O'Neill Pentology" series of five novels.

A court adjudicates henry mentally incompetent and appoints inez to be his guardian. later, without inez's knowledge, henry signs a contract to sell his farm to jason for its real market value. the contract is

Answers

The contract Henry entered into to sell his farm is void and not enforceable. Henry is not mentally competent to enter into such arrangements and the courts will not uphold the sale.

Prior to being banned in 2002 by the mccain feingold act, unlimited monetary contributions that were ermarked for party building expenses at the grassroots level or for generic party advertising were known as

Answers

The answer is soft money. In addition, when cash is funded to a political party with no restrictions involved to the amount that can be acknowledged, this is known as a soft money contribution. The resources can originate from people and political act working group as with hard money but they can also come from any other basis such as company. The law articulates that this money can only be used for party building doings such as supporting the passageway of a law and voter registering and not for supporting a specific aspirant in an election.

Under what circumstances might stockholders be displeased with a corporation's performance?

Answers

I would say the shareholders could disapprove of the performance of their company if it was to consistently to lose money over say several quarters with no signs of improvement or no encouragement by management that this was a temporary situation,

In which type of business does the owner have total control?

Answers

Sole proprietorship is the answer.

The average do-it-yourself bedroom makeover costs $475 with a standard deviation of $86 (fictional data). tanya redoes her daughter's room for $602. what percent of bedroom makeovers cost less than tanya spent? (round z score to two decimal places.)

Answers

Given with $475 as the previous cost of the do-it-yourself bedroom makeover, $602 as the cost when she redoes her daughter's room, and $86 as the standard deviation. The percent of bedroom makeovers cost less than Tanya spent, that is rounded to two decimal places is 93.06%.
Final answer:

The question involves calculating the percentile of bedroom makeover costs using the z-score. For Tanya's makeover cost of $602, the z-score is approximately 1.48, which corresponds to about 93% of makeovers costing less than what Tanya spent.

Explanation:

The question involves finding the percentile for Tanya's bedroom makeover cost within a given distribution. To calculate this, we first determine the z-score, which is the number of standard deviations an observation is above or below the mean. The formula for the z-score is:

Z = (X - μ) / σ

where X is the value in question, μ is the mean, and σ is the standard deviation. Plugging in Tanya's makeover cost ($602), the mean ($475), and the standard deviation ($86), we get:

Z = (602 - 475) / 86 ≈ 1.48

To find the percentage of makeovers that cost less than Tanya spent, we look up the z-score of 1.48 in the standard normal distribution table, or use a calculator equipped with a normal distribution function, to find the percentile corresponding to the z-score. Rounding the z-score to two decimal places, we find that approximately 93% of bedroom makeovers cost less than Tanya spent.

\

Employees earn $5,000 per day, work five days per week, monday through friday, and get paid every friday. if the previous payday was january 26 and the accounting period ends on january 31, what amount is the ending balance in the wages payable account?

Answers

Employees earn $5,000 per day,work five days per week, monday through friday, and get paid every friday.it means every week every empoyee is paid $25,000 ON Friday . If the previous payday was january 26 and the accounting period ends on january 31.that means, january 26 is the friday ,the day on which payment made. then neaxt day i.e january 27 is saturday , in same way january 28 is sunday. so, from january 29 to january 31st ,there are 3 days ,where january 31st is the dat eon which accounting period ends . so payment for 1 day $5000. thus payment for 3 days = 3 x $5000 = $15000 thus $15000 is the amount in the ending balance in the wages payable account

Is the gathering organizing sharing and analyzing of the data and information?

Answers

Knowledge management.

Please give me Brainliest! :D 

When kelly reprimands sarah each time sarah is late for work, kelly is applying?

Answers

Kelly is likely applying behavior modification. A behavior modification is a way of having to use techniques or methods in which is helpful in having to make a behavior or reaction to be increased or decreased in which Kelly is demonstrating as she reprimands Sarah whenever she is late.

A ________ is an example of pre-digital data storage that is comparable to a database. mis

Answers

A LIBRARY CARD CATALOG is an example of pre-digital data storage that is comparable to a database.
A library card catalog stores information about all the items that are available in a particular library or groups of libraries. The traditional library card catalog has now been replaced with an electronic version.

How did collis p huntington spend his money business wise?

Answers

Huntington was a railroad tycoon who was a key player in the transcontinental railroad. Huntington also developed railroads up and down the east coast in the 1880s. Huntington was one of the key 4, the 4 railroad tycoons who worked/ competed to complete the transcontinental railroad.

mila is at a flea market.

Answers

She will give up on the t-shirt and use the money to buy jeans.

She will buy the t-shirt for $8 and not order juice at lunch.
The last option :) hope this helps

The ability of a business to identify customers before they make a purchase is ________.

Answers

The answer is addressability. This is where the messages in the marketing are being customized in means of having to pair or match the needs of the customers or their specific needs—in order to make their customers want the product that they produce and sell it to them.

The term _____________ describes a situation where a ________________ causes a reduction in the buying power of income, even though actual income has not changed. question 3 options:

Answers

The term income effect used in economics describes a situation where a higher price causes a reduction in the buying power of income, even though actual income has not changed. 
It denotes the change in demand of a good or service as a result of a change in a consumer's discretionary income. 

N the days of one-party democratic politics in texas, the __________ was a loosely knit coalition of anglo business and oil company executives, bankers, and lawyers who controlled state policy.

Answers

 The establishment was a loosely knit coalition of those who controlled state policy in the days of one party democratic politics in Texas such as the Anglo business and oil company executives, lawyers, and bankers. Political change in Texas and the nation eroded the conditions that fostered Democratic dominance.






________ is very strong and durable and is therefore commonly used for cookware, dinnerware, and much ceramic sculpture.

Answers

The answer to this question is stone-ware
Stoneware being made by heating objects that made from clay into a certain temperature which make it become really hard and could be used for various purpose. The usage of stonewares started around 4000 B.C but started to popularized by European traders in 1700s.

Final answer:

Ceramic is a strong and durable material used for cookware, dinnerware, and ceramic sculpture. Porcelain is a type of ceramic invented in China in the 8th century CE.

Explanation:

Ceramic is a very strong and durable material commonly used for cookware, dinnerware, and ceramic sculpture. It can withstand high temperatures, chemical weathering, and is resistant to water immersion. Porcelain, which is a type of ceramic, is a fine and translucent white ceramic invented in China in the 8th century CE. It was made from kaolin clay or porcelain stone, fired under controlled conditions, and often decorated with unique designs and glazes.

How often must you renew your florida boater education card?

Answers

There is no renewal necessary.

The Florida Boater Education Card must be obtained once and does not need to be renewed.

In Florida, the Boater Education Card, also known as the Florida Boating Safety Education Identification Card, is required for anyone born on or after January 1, 1988, who operates a vessel with a motor of 10 horsepower or more. Once an individual completes a boating safety education course approved by the Florida Fish and Wildlife Conservation Commission (FWC) and obtains their Boater Education Card, it is valid for life. There is no expiration date on the card, and therefore, it does not need to be renewed.

The card serves as proof that the holder has completed the necessary education to operate a boat safely in Florida waters. It is important to carry this card with you whenever you are operating a vessel, as law enforcement officers may ask to see it during safety checks or after an incident on the water.

In summary, the Florida Boater Education Card is a one-time requirement, and once obtained, it remains valid indefinitely without the need for renewal.

A 5-year zero-coupon bond was issued with a $1,000 par value to yield 8%. what is the approximate market value of the bond? $597 $681 $275 $482

Answers

For this you need to determine the Net Present Value of the bond. The formula is the face value of the bond ($1,000) divided by (1 + the yield (8%) )^time to maturity (5). 1000/(1.08)^5 = $681 Therefore $681 is the correct answer

It is estimated that 100,000 fans will attend a football game. Forty-two percent of them will not be able to park at the stadium, so satellite parking will be used. Twenty buses will shuttle fans from the satellite parking areas. Each bus can carry 70 fans. How many trips will each bus have to make to get everyone to the stadium?

Answers

The answer is: 30 Trips


Total fans = 100,000

The amount of fans that need satelite parking

= 100,000 x 42%

= 42,000 fans


There are 20 buses and each of them can carry 70 fans in one trip. So the maximum number of fans that all of them can carry in one trip:

= 70 x 20

= 1400 fans


Total trips that each bus need to take all fans to stadium

= 42,000 / 1400

= 30 trips

Each bus will have to make 30 trips to shuttle all the fans from the satellite parking areas to the stadium.

To determine how many trips each bus needs to make, we first need to find out how many fans will not be able to park at the stadium. Given that 42% of the estimated 100,000 fans will use satellite parking, we calculate:

42% of 100,000 = 0.42 * 100,000 = 42,000 fans

Next, we find out how many trips are needed to shuttle these 42,000 fans to the stadium using 20 buses, where each bus can carry 70 fans per trip. First, we find the total number of fans one bus needs to transport:

Total fans per bus = 42,000 fans ÷ 20 buses = 2,100 fans per bus

Then, we calculate the number of trips each bus must make:

Trips per bus = 2,100 fans ÷ 70 fans per trip = 30 trips

Therefore, each bus will have to make 30 trips to shuttle all the fans from the satellite parking areas to the stadium.

Other Questions
Which graphical display shows marginal and conditional distributions at the same time? What is the unofficial title of groups like the media that influence the government? a. silent power b. anchor of balance c. fourth branch of the government (fourth estate) d. interpreters of the law The sale price of an item is $45 after a 40% discount is applied. What is the original price of the item? Help with questions. Write a chemical equation for the reduction step in hte formation of silver nanoparticles Find the 20th term in arithmetic sequence -4, 1, 6, 11, 16, what organelles do plant cells have that animal cells do not The length of a rectangular plot of land is 10 yards more than its width. If the area of the land 600 square yards , find the dimensions A triangle has base 15ft and area 60ft2. What is the height?j Which of the following adaptations would help a tree-dwelling nocturnal scavenger survive in its environment? PLZ HELP ILL GIVE A BRAINLIEST SHOW ALL WORK!!!! Which of the following is an appropriate unit for speed? *note: you can choose more than one.A. miles/hourB. meters/second C. blocks/minD. newtons/sec Which government type allows citizens to have the greatest amount of political influence? Can you subnet the 172.16.128.0/17 network address to support this subnet? The daughter of a 79-year-old woman asks the nurse why her mother gets so many infections. the daughter states, "my mother has always been healthy, but now she has pneumonia. last month she got cellulitis from a bug bite she scratched. the month before she had a urinary infection. why does she seem to get sick so often now?" what is the nurse's best response? A direct variation function contains the points (2, 14) and (4, 28). Which equation represents the function? Holding police officers responsible for any unprofessional (or criminal) behavior is referred to as Which term applies to the biological aspect of a woodchuck living in underground burrows, eating plant food, and feeding often in open areas? A. productivity B. niche C. ecosystem D. energy flow Which of these can be used as a hook in the introduction of an informative essay? Check all that don't apply a short history, an analogy, a quotation, an anecdote, a dictionary definition, an in-depth analysis. The trade winds are tropical winds that blow toward the Equator. Which of the following explains why the trade winds blow towards the Equator? Question 1 options:The Equator receives the most heat energy.The Equator is at a low elevation.The ocean's tides are highest at the Equator.Ocean currents flow away from the Equator. Steam Workshop Downloader