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
shtirl [24]
3 years ago
15

Suppose you are developing a cricket game in which you are asked to enter score of every ball and can score maximum 6 on each ba

ll, if the user will enter -1 or enter score greater than 6 then it means your player is out. And display total score and balls faced by player on console using do-while loop.
Computers and Technology
1 answer:
Charra [1.4K]3 years ago
8 0

The cricket game program illustrates the use of loops (the while loop)

While loops are used to perform repetitive operations.

The program in Python, where comments are used to explain each line is as follows:

#This gets input for the scores

score = int(input("Score: "))

#This initializes the total score to 0

total = 0

#This is repeated until the score is greater than 6 or less than 0

while not(score < 0 or score >6):

   total+=score

   #This gets another input for the scores

   score = int(input("Score: "))

#This prints the total scores    

print(total)

Read more about loops at:

brainly.com/question/19344465

You might be interested in
Kate saves her work on a secondary storage device that is fairly new, and uses flash technology instead of disks.
almond37 [142]

Answer:

B.) SSD

Explanation:

I hope I helped! ^-^

8 0
3 years ago
A 9-year old male castrated Westie presents on emergency after being rescued from a house fire. On presentation, the dog has a r
SVEN [57.7K]

Answer:

The correct option to the following question is Carbon monoxide

Explanation:

Most common symptom of Carbon Monoxide poisoning are dizziness, headache, weakness, vomiting, upset stomach, confusion, and chest pain. The Carbon monoxide or CO symptom is often that described as “flu-like.” If the breaths in a lot of the Carbon monoxide or CO then it can make pass out any person or it kills you.

5 0
3 years ago
The number of bytes in an array is always a multiple of the number of ____ in an array.
liq [111]

Answer:

The Correct answer for the given question is "elements " .

Explanation:

The number of bytes is always multiple by the number of array elements in an array to getting total memory occupy by any array .

For example :

int a[100];

Since in c language int is 2 bytes

So memory in number of bytes =2*100=200 bytes

Indexes is keep the track of physical location of any file this is also used to track the logical location of file in database so this option is wrong

Subscripts are the index number of an array so we will never used subscripts to getting total memory occupy by any array so this option is wrong

Iterators  are the loop so this option is wrong.

Due to this the correct answer is elements.

4 0
4 years ago
Select the correct answer.
sashaice [31]

Answer:

A. Project Manager

Explanation:

3 0
3 years ago
Read 2 more answers
Does anyone know how to delete a question you put up? I'll give you 20 points.
Rudik [331]
Answer: I don’t believe you can unless someone reports it.
3 0
3 years ago
Other questions:
  • An array created during the execution of a program is called a(n) ____ array.
    11·1 answer
  • *Could someone please help me with this***
    5·1 answer
  • Many computer users and some operating systems call subdirectories ____.
    10·1 answer
  • Will a pair of bar magnet ,with keepers on the two ends, act as a magnet
    13·1 answer
  • You are considering creating a mobile app. Describe a basic statement for the app you would create and whether your app should b
    7·1 answer
  • Which of the following You tubers uses the word "flip" as a curse word
    8·2 answers
  • Which items in the list below are viruses. Click in the box to select your answer(s).
    8·1 answer
  • Https://www.canva.com/design/DAEdipB8WJ4/etwBH9c1cMBNIaThAaOUqg/view?utm_content=DAEdipB8WJ4&amp;utm_campaign=designshare&amp;ut
    5·1 answer
  • Who is your favorite XC2 character, and why?
    15·1 answer
  • A web application's code prevents the output of any type of information when an error occurs during a request. The development t
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!