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
kykrilka [37]
3 years ago
8

Assume the availability of a function called printStars. The function receives an integer value as an argument. If the argument

is positive, the function prints (to standard output) the given number of asterisks. Thus, if printStars(8) is called, ******** (8 asterisks) will be printed.
Assume further that the variable starCount has been declared and initialized to contain a positive integer value.

Write some code that prints starCount asterisks to standard output by:

first printing a single asterisk and no other characters then calls printStars to print the remaining asterisks.

Hint: Make sure to use the "end" option for print characters without the default newline, e.g. print("hello", end="")
Computers and Technology
1 answer:
In-s [12.5K]3 years ago
4 0

Answer:

a i just did it

Explanation:

You might be interested in
What OS is most commonly used by businesses?
valentinak56 [21]
Businesses commonly use windows as their OS
8 0
3 years ago
The visitor's age is stored in the variable age, the day of the week is stored in a variable day, and the price in dollars is st
Hoochie [10]

Answer:

If a museum charges different prices based on the day of the week and age of the visitor. The pricing rules are shown below.

- On Tuesday and Thursday children 10 and under get in free ($ 0).

- For all other days and ages the cost is ten dollars ($ 10).

The code in python is;

if (day == 'Tuesday' or day == 'Thursday') and age <= 10:

   price = 0

else:

   price = 10

Explanation:

The logic of the algorithm suggests that that the conditional if-statement assigns zero to the price variable if the day variable is either Tuesday or Thursday and the child's age is 10 or below but assigns 10 to the price variable if the condition is not met.

4 0
3 years ago
Need 9&amp;10. Thank you! Btw it's due today.
NeTakaya
Q9. The metric system is an internationally adopted decimal system of measurement. It is widely used in the world and is the only or most common system of weights and measures. It is now known as the International System of Units (SI). It is used to measure everyday things such as a sack of flour, the height of a person, a tank of petrol, and the speed of a car. On the other hand, the United States customary units are a system of measurements commonly used in the United States. So, for the measurement above we have:

Distance from Los Angeles:

Given that the problem does not tell us the specific point for the distance from Los Angeles. We will assume that this point is New York, so:

*Metric: The unit for length is the meter.

d = 4488460 (m)

*U.S customary: For measuring length, the U.S. customary system uses the inch, foot, yard, and mile, so:

d = 176711023 (in)
d = 14725918 (ft)
d = 4908639 (yd)
d = 2789 (mi)

The temperature on a hot day:

*Metric: Degree Celsius is a unit of thermodynamic temperature. So, on a hot day the temperature is:

T = 35°

*U.S customary: Degrees Fahrenheit is used in the U.S. to measure temperatures, so:

T = 95°

The weight of a loaf of bread: 

*Metric: The unit used for mass is the kilogram. For a mass of 0.095 (kg), the weight that is a force (Newton is the unit for measuring weight) is given by:

w = 0.931 (N)

*U.S customary: Ounces is a unit of weight for this system, so:

w = 1 ounce

Length of a pencil: 

*Metric:
d = 0.095(m)

*U.S customary: 

d = 3.74 (in)
d = 0.311(ft)
d = 0.10 (yd)
d = 5.90 (mi)

The capacity of a container:

The capacity of an element is equal to the volume that is the quantity of three-dimensional space enclosed by a closed surface, so the capacity of a container very used these days  is:

*Metric: 

V = 33.2m^{3}

*U.S customary: The cubic inch, cubic foot and cubic yard are commonly used for measuring volume. So:

V=2025988in^{3}
V =1172.44ft^{3}
V =43.42yd^{3}

<span>Q10. We can explain this concept using an example for Small Businesses. The concept of Frustrated Users (Employees) is an example of a technological problem. Interacting with technology is a huge part of the employees’ day. Using slow, outdated systems with frequent problems makes it much more difficult for them to be happy and productive. How would it impact a business if the company enabled the employees to get just 5 percent more accomplished every day? the answer is simply by keeping the technology up to date. So, the problem exposed above allows the company to find new ways and opportunities to make the job easier. The company would need to establish a training plan for the employees. Maybe establishing a diploma course that allows them to learn and know better the new technologies.</span>
4 0
3 years ago
What is a saved link to a particular web page?​
il63 [147K]

Answer:

In a website, a hyperlink (or link) is an item like a word or button that points to another location. When you click on a link, the link will take you to the target of the link, which may be a webpage, document or other online content. Websites use hyperlinks as a way to navigate online content.

4 0
3 years ago
Which of the following is a function of the slip yoke used on a driveshaft?
Harrizon [31]
It has to be all of the above because A and B are both true.

<span>It allows movement between the suspension as it reacts to the road surface, which also allows the driveshaft to change length to configure to the road.</span>

7 0
4 years ago
Other questions:
  • Which of the following would allow for more data to be stored on a CD?
    11·2 answers
  • Which of these automotive repair areas helps the vehicle change speeds to operate efficiently under all conditions?
    5·1 answer
  • A spreadsheet has some values entered:Cell A1 contains 10 cell A2 contains, cell A3 contains 7. you enter in cell A4 the followi
    14·2 answers
  • Write a class named RetailItem that holds data about an item in a retail store. The class should store the following data in att
    15·1 answer
  • Which of the following is not a component of Google Display ads' value proposition?
    9·1 answer
  • Consider the following code segment:
    8·1 answer
  • Examine the following declarations and definitions for the array-based implementations for the Stack and Queue ADTs. Assume that
    14·1 answer
  • Read the following scenario:
    10·2 answers
  • 0 -10°
    12·1 answer
  • NEXT
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!