1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lyrx [107]
3 years ago
6

Write the definition of a function named printstarbucks that receives a non-negative integer n and prints a line consisting of n

asterisks followed by n dollars signs. so, if the function received 5 it would print: *****$$$$$ and if received 3 it would print ***$$$ the function must not use a loop of any kind (for, while, do-while) to accomplish its job.
Computers and Technology
1 answer:
garri49 [273]3 years ago
4 0
Don’t understand what you are asking
You might be interested in
Match each statement from the passage with the message it represents.
Serggg [28]

Answer:

Here is the answer:

4 0
3 years ago
A small cluster of three countries (China, Malaysia, and Korea) are creating a reputation for this type of outsourcing. a. Farsh
posledela

Answer:

b. Nearshoring

Explanation:

Nearshoring occurs when the organization decides to transfer the work to the companies which are less expensive and are closer in the geographical region . It enables the business to move closer to their operations . And becomes more cost effective location .

Due to this close proximity , their is lesser time difference , lesser cultural discrepancies and enable to control the decision-making processes .

7 0
4 years ago
Algorithmic Complexity: what is the asymptotic complexity (Big-O) of each code section? Identify the critical section of each.\
AleksandrR [38]

Answer:

Check the explanation

Explanation:

1) f(n) = O( 1 ), since the loops runs a constant number of times independent of any input size

there is no critical section in the code, as a critical section is some part of code which is shared by multiple threads or even processes to modify any shared variable.This code does not contain any variable which can be shared.

2) f(n) = O( log n! ), the outer loop runs for n times, and the inner loop runs log k times when i = k,ie the total number of print will be – log 1 + log2 +log3 +log4+…...+ log n = log (1 . 2 . 3 . 4 . ……. . n ) =log n!

there is no critical section in the code, as a critical section is some part of code which is shared by multiple threads or even processes to modify any shared variable.This code does not contain any variable which can be shared.

Note : Log (m *n) = Log m + Log n : this is property of logarithm

3) f(n) = O( n^2 ), since both outer and inner loop runs n times hence , the total iterations of print statement will be : n +n+n+…+n

for n times, this makes the complexity – n * n = n2

there is no critical section in the code, as a critical section is some part of code which is shared by multiple threads or even processes to modify any shared variable.This code does not contain any variable which can be shared.

4 0
4 years ago
You would like to create a graph that shows how much of your total investments are in stocks, savings, and mutual funds. You sho
sdas [7]
The answer is D. line graph
4 0
3 years ago
Read 2 more answers
Differentiate between a software package and integrated software and why users would choose one over the other.
chubhunter [2.5K]

Answer:

Software Package means software which is used collectively, implements alike purposes, or combines alike characteristics and is bundled collectively being one kit from software applications, where as, Integrated software is a combination of software specifically built to operate on almost linked applications.

Explanation:

Users should choose Software Package because of the following reasons:

Cheap price compared over buying individual application independently.

Opportunity to introduce the total of the applications at the corresponding period or just that applications you require to work.

The compatible user interface of individual application over another.

The facility to distribute data among applications.

Coming updates can refresh every application whole by the corresponding event.

Perfect for individual use, licensed use, huge or little company.

Every software holds the full-featured transcription.

7 0
3 years ago
Other questions:
  • Which of the following is an extension of the fill pattern Sunday,Tuesday?
    10·2 answers
  • The default primary key for an access database is the id field true or falser
    7·1 answer
  • What is SAFFiR? (The robot)
    12·1 answer
  • A programmer is writing a system that is intended to be able to store large amounts of personal data. As the programmer develops
    11·1 answer
  • What is the output of the following code? stackList stack; int x, y; x = 2; y = 3; stack.push(8); stack.push(x); stack.push(x +
    6·1 answer
  • What is the value of alpha[3] after the following code executes?
    6·1 answer
  • Which are options in the Form Tools Format tab?
    10·1 answer
  • Lonnie needs to use a special kind of block in his game that will tell him whether an object has slammed into his car true or no
    13·1 answer
  • 30 POINTS FOR THE CORRECT ANSWERS
    12·1 answer
  • What features should you present when demonstrating 2023 murano’s confident cornering?.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!