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
Stels [109]
3 years ago
8

Question 1

Computers and Technology
1 answer:
Margaret [11]3 years ago
8 0

First of all, the print statements should be indented, and the last if statement should be x % 2 == 1 inside of the parentheses.

Other than those few mistakes, the output of the program when the user types in 9 is:

A

C

and whatever the last thing is in the final if statement.

I hope this helps!

You might be interested in
In this exercise we will practice using loops to handle collections/containers. Your job is to write a program that asks the use
kati45 [8]

Answer:

In Python:

chars = 'abcdefghijklmnopqrstuvwxyz'

letter = input("Sentence: ")

for i in range(len(chars)):

   count = 0

   for j in range(len(letter)):

       if chars[i] == letter[j].lower():

           count = count + 1

   if count > 0 :

       print(chars[i]+": "+str(count)+" times")

Explanation:

This initializes the characters of alphabet from a-z

chars = 'abcdefghijklmnopqrstuvwxyz'

This prompts the user for sentence

letter = input("Sentence: ")

This iterates through the initialized characters

for i in range(len(chars)):

This initializes count to 0

   count = 0

This iterates through the input sentence

   for j in range(len(letter)):

This compares the characters of the sentence with alphabet a-z

       if chars[i] == letter[j].lower():

If there is a match, count is incremented by 1

           count = count + 1

If there is an occurrence of character,

   if count > 0 :

The character and its count is printed

       print(chars[i]+": "+str(count)+" times")

5 0
3 years ago
The moon is almost directly between the sun and earth
anastassius [24]
That's true for a few days out of a month ... a day or two before and after each New Moon. When it does actually get DIRECTLY between, that's when we get a solar eclipse.
3 0
3 years ago
Read 2 more answers
All of the following statements about MapReduce are true EXCEPT: MapReduce handles the complexities of network communication. Ma
sineoko [7]

Answer:

The correct option is;

MapReduce runs without fault tolerance

Explanation:

Map Reduce is a technique of processing or a framework of software, that is geared towards managing, sorting and handling large data by working in the Map and Reduce phases where the map function involves the dividing, filtering and sorting of the data and mapping of the split data while the reduce method involves the rearranging, summary activities having the data reduced.

8 0
4 years ago
Do you want to install the updates how?
Volgvan

Answer:

output:

10

13

Explanation:

should be, may be, probably is

6 0
3 years ago
Which of these is an exampleof output?
Ugo [173]

Answer:

b.

Explanation:

a mouse, fingerprint sensor, and keyboard are all input because we use these to put into into a computer where a beep of the microwave is output because it releases a sound or the sound goes out of the microwave.

8 0
3 years ago
Other questions:
  • What is the advantage of defining a target user?
    14·1 answer
  • Raul looks at different technologies that will help him do his job. What part of the process is this?
    13·1 answer
  • Write code to print the location of any alphabetic character in the 2-character string passCode. Each alphabetic character detec
    10·1 answer
  • What vi command do you use to insert the a file named "file2.txt" to the end of your current file?
    12·1 answer
  • A computer "nibble" consists of four "bits," each bit being either a 0 or a 1. If characters are represented using a code that u
    12·1 answer
  • When entering data into a cell, which keyboard key is used to remove characters to the left of the insertion point?
    12·1 answer
  • You attempt to telnet to system 192.168.1.240. You receive the following message: "Connecting To 192.168.1.240...Could not open
    5·1 answer
  • You should contact your references _____ a job interview.
    15·2 answers
  • Write a method that computes the average of the values in an array of doubles. The header of the method is as follows:
    14·1 answer
  • Write a SELECT statement that returns one row for each customer that has orders with these columns: The email_address from the C
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!