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
tigry1 [53]
3 years ago
8

Hioo ^U^

Computers and Technology
1 answer:
AlexFokin [52]3 years ago
6 0

Answer:

Hie ......... . thanks for the points

Have a good day

You might be interested in
Create a program that will play the “cows and bulls” game with the user. The game works like this: Randomly generate a 4-digit n
riadik2000 [5.3K]

Answer:

Welcome to the Cows and Bulls Game!

 Enter a number:

 >>> 1234

 2 cows, 0 bulls

 >>> 1256

 1 cow, 1 bull

 ...

"""

import random

def compare_numbers(number, user_guess):

   cowbull = [0,0] #cows, then bulls

   for i in range(len(number)):

       if number[i] == user_guess[i]:

           cowbull[1]+=1

       else:

           cowbull[0]+=1

   return cowbull

if __name__=="__main__":

   playing = True #gotta play the game

   number = str(random.randint(0,9999)) #random 4 digit number

   guesses = 0

   print("Let's play a game of Cowbull!") #explanation

   print("I will generate a number, and you have to guess the numbers one digit at a time.")

   print("For every number in the wrong place, you get a cow. For every one in the right place, you get a bull.")

   print("The game ends when you get 4 bulls!")

   print("Type exit at any prompt to exit.")

   while playing:

       user_guess = input("Give me your best guess!")

       if user_guess == "exit":

           break

       cowbullcount = compare_numbers(number,user_guess)

       guesses+=1

       print("You have "+ str(cowbullcount[0]) + " cows, and " + str(cowbullcount[1]) + " bulls.")

       if cowbullcount[1]==4:

           playing = False

           print("You win the game after " + str(guesses) + "! The number was "+str(number))

           break #redundant exit

       else:

           print("Your guess isn't quite right, try again.")

Explanation:

7 0
4 years ago
Which are examples of embedded systems? Choose two answers.
SVEN [57.7K]

Answer:

An operating system inside a virtual machine

Smart TVs

Explanation:

We can explain an embedded systems like a system within other system, in this case we have two examples, the smart TV have an operative system in some cases an Android system, and this system is within the television system, the virtual machine is the same concept, we can have an Android system running in a windows system.

7 0
3 years ago
6.12 Nested Increments Write a program for spiritual lumberjacks who want to show their appreciation for each tree they 'kill' b
Nina [5.8K]

Answer:

trees_to_cut = int(input("How many trees do you wants to cut? "))

print(str(trees_to_cut) + " tree(s) will be cut.")

for i in range(trees_to_cut):

   print("Tree #" + str(i))

   

   rings = int(input("How many rings in tree " + str(i) + "? "))

   print("There are " + str(rings) + " ring(s) in this tree.")

   for j in range(rings):

       print("Celebrating tree #" + str(i) + "'s " + str(j+1) + ". birthday.")

Explanation:

*The code is in Python.

Ask the user to enter the number of trees to cut

Print this number

Create a for loop that iterates for each tree

Inside the loop:

Print the tree number. Ask the user to enter the number of rings. Print the number of rings. Create another for loop that iterates for each ring. Inside the inner loop, print the celebrating message for each birthday of the tree

7 0
4 years ago
Which of the following demonstrates how digital music are files played? An analog player changes the recording to digital, and s
Arada [10]

Answer:

An analog player changes the recording to digital, and sends the digital signal to a speaker to be played.

Explanation:

An audio signal can be defined as a representation of sound, either as an analog or digital signals.

An analog audio signal refers to a continuous signal that is represented by a changing level of quantity such as voltage with respect to time and sequence of bits such as 16kbps, 32kbps, 64kbps, 96kbps, 128kbps, 196kbps, and 320kbps.

Note: Kbps means kilobits per seconds.

On the other hand, a digital audio signal can be defined as the recording, storage and reproduction of sounds by encoding the audio signals in a digitized format.

An analog player is a type of audio player such as a turntable, which is designed to read informations as a continuous signal.

In order to play a digital audio or music files, an analog player changes the recording to a digital format and sends the digital signal to a speaker to be played.

A speaker can be defined as an electronic output device that is typically used for the conversion of an electromagnetic wave to sound wave.

Basically, this conversion is done through the help of a hardware electronic component known as transducers.

6 0
3 years ago
Which plot element is typically the turning point in the most intense moment of a story
Valentin [98]

The climax. The climax is when the story peaks and has the most suspense. The story falls closer to it's end after the climax.

4 0
3 years ago
Read 2 more answers
Other questions:
  • A bunch of computer scientists take over an island and start their own country. They want the license plates to use binary numbe
    11·1 answer
  • If the object instance is created in a user program, then the object instance can access both the public and private members of
    9·1 answer
  • Which type of system must you connect to and use to make changes to Active Directory?
    15·1 answer
  • Email applications can either be local email client programs or web-based applications. Which application is an example of a loc
    13·2 answers
  • In this project, you’ll create a security infrastructure design document for a fictional organization. The security services and
    5·1 answer
  • If you need to use arrows in a chart, which feature or menu option of a word processing program would you use?
    13·2 answers
  • #Write a function called "replace_all" that accepts three #arguments: # # - target_string, a string in which to search. # - find
    11·1 answer
  • Which leader of the Jamestown colony am I?
    15·2 answers
  • During the Inspect and Adapt event, how are reflection, data collection, problem solving, and identification of improvement acti
    5·1 answer
  • How can having more than one goal cause truble in the work place
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!