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
Vinil7 [7]
2 years ago
10

Can someone please tell me what I’m doing wrong ? Please and it’s due on Thursday!!

Computers and Technology
1 answer:
liberstina [14]2 years ago
8 0

Answer:

Sure. In Unit test 5, it's looking for 1 instead of 0. You are returning 0 instead of 1.

0 requires 1 digit to express it and should therefore return 1.

In line 6, change the 0 to a 1.

You might be interested in
Consider an array of integers consisting of the numbers: 8 12 19 32 45 55 67 72 89 90 92. Suppose the binary search algorithm is
ankoles [38]

Answer:

Answered below

Explanation:

Index of the first element compared to the key is 5. The element itself is 55.

This index is evaluated by the addition of the index of the first element which is 0(zero) and the the index of the last element which is 10.

( Index of the last element is determined by subtracting the one from the total number of elements)

After the addition, the result is divided by 2 to get the first index from which the binary search begins.

firstIndex = 0

lastIndex = array.length - 1

midpoint = (firstIndex + lastIndex) / 2

6 0
3 years ago
How should you complete the code A - valid = false B- valid = true
JulsSmile [24]

Answer:

A. for an if-else statement in python, if the condition is false, The else statement is executed.

B. if the condition of the if-statement is true, the indented block of code is executed.

Explanation:

The if-statement is a conditional statement in programming for decision making. It is also known as branching as it makes decisions based on two paths. It comes with another keyword called 'else'.

The If-else statement makes a decision based on the output of a condition which is defined in the if-statement. If the condition is met, the code block just after the if-statement is executed, but the else-statement block is executed if otherwise.

8 0
3 years ago
To change the overall design of an entire document to include colors, fonts, and effects, a user should apply a?
lisov135 [29]
Try to use color swatch if not then idk
4 0
3 years ago
Read 2 more answers
Assume that the "read/write file to hard disk" library is part of the kernel. Assume that this library uses 1MB of RAM. Assume t
scZoUnD [109]

Answer:

The Answer is 1 MB.

Explanation:

In order to replace the library it must write 0 MB to hard drive then only it can be replaced. Therefore 1 MB is the correct answer.

5 0
4 years ago
Write an algorithm to get the value of length and breadth of a rectangle from the user and find its area. inn qbasic
Shalnov [3]

Answer:

IN PYTHON ::

x=int(input('Enter length:'))

y=int(input('Enter width:'))

print('Area of the rectangle is', x*y,'squared units')

I hope it will be useful.

5 0
3 years ago
Other questions:
  • Technology that is attached to a tag and used to identify postal packages is a(n) _____.
    12·2 answers
  • Which Windows feature captures and stores copies of folders and files at specific points in time, allowing users or administrato
    10·1 answer
  • Consider the following two implementations of the same algorithm, each written in a different language.
    11·1 answer
  • Assume passwords are selected from four character combinations of 26 lower case alphabetic characters. Assume an adversary is ab
    9·1 answer
  • What are some common security threats for our home devices and IoTs?
    14·1 answer
  • Write a program that prompt the user to enter the coordinate of two points (x1, y1) and (x2,y2), and displays the slope of the l
    10·1 answer
  • Wireshark is an example of what type of utility? A) Packet sniffer B) Port scanner C) Vulnerability scanner D) Content filter
    11·1 answer
  • Biosolids are used as a chemical free natural choice for fertilizing.
    5·1 answer
  • 4. //Program prompts users for names and quantities for a $2.00 product and displays total for each user until “XXX” is entered
    15·1 answer
  • All of the salespeople in hyperactive media sales use laptops, so that they can take their applications and data on the road to
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!