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
Sunny_sXe [5.5K]
4 years ago
9

Find the number of ideal integers within the given segment [low,high] inclusive. An ideal number is a positive integer that has

only 3 and 5 as prime divisors. An ideal number can be expressed in the form of 3^x*5^y, where x and y are non-negativeintegers
Computers and Technology
1 answer:
Alex Ar [27]4 years ago
6 0

Answer:

  1. low = 10
  2. high = 50
  3. count = 0
  4. for i in range(low, high + 1):
  5.    if(i % 3 == 0 and i % 5 == 0):
  6.        count += 1
  7. print(count)

Explanation:

The solution code is written in Python.

We can create low and high variables to store the lower bound and upper bound in the range (Line 1-2)

Next create a counter variable, count (Line 3).

Use a for loop to traverse through the number between lower bound and upper bound and check if the current number-i is divisible by 3 and by 5, increment the count by one.

After the loop, print the count and we can get the number of ideal integers within the range (Line 8).

You might be interested in
A computer technician has successfully returned a laptop to full operation and verified system functionality. Actions the techni
lianna [129]

The computer technician has successfully returned a laptop to full operation and verified the system functionality. The actions that were performed by the technician included modifying the registry and applying patches to the operating system. The next step in the troubleshooting process should be to document the solution.

B. Document the solution.

<u>Explanation:</u>

Since the laptop has returned to successful full operation and functionality has bee verified already, rebooting the computer, consulting the manufacturer repair logs and manuals, and testing all the peripherals makes no sense.

The next step is to document the solution that has been used for future reference purposes.  

6 0
4 years ago
9. A change in the appearance of a value or label in a cell
alexandr402 [8]

Answer:

format

alignment

excel

=

Explanation: i'm an accountant

4 0
3 years ago
Bill's manager has asked him to send all staff members the directions for checking out the new projector. In one to two sentence
lawyer [7]
He could probably send an email to everyone.
or if they are at work he could conduct a conference.Or can paste the instructions on a public tasks board.

Hope it helps you.

:)
3 0
3 years ago
Read 2 more answers
Develop a multithreaded app that can find the integer in the range 1 to 10000 that has the largest number of divisors. It should
skelet666 [1.2K]

Answer:

its not letting me Write out the code so here are screenshots

Explanation:

5 0
4 years ago
Clunker Motors Inc. is recalling all vehicles from model years 2001-2006. A bool variable named norecall has been declared . Giv
nikitadnepr [17]

Answer:

The statement (in Python) is as follows:

recalled = modelYear >=2001 and modelYear <=2006

Explanation:

Required

A statement without an if statement to assign true or false to recalled

Using an if statement, the comparison is

if modelYear >=2001 and modelYear <=2006:

    recalled = True

else:

    recalled = False

To rewrite the statement without using the "if" keyword, we simply equate variable recalled to the stated condition i.e.

recalled = modelYear >=2001 and modelYear <=2006

Note that, we assume that there is an input fo variable modelYear

8 0
3 years ago
Other questions:
  • Type the correct answer in the box.
    7·1 answer
  • Where does cable termination occur in most buildings?
    9·1 answer
  • Rachelle is an office manager for an active real estate agency. She’s overseeing a transition to a more complete reliance on ele
    9·1 answer
  • How much memory did the first smartphone have?
    11·1 answer
  • The GeForce GTX 1060 graphics card requires 120 W of power. You plan to install it in a PCIe 3.0 ×16 slot. Will you need to also
    13·1 answer
  • What is the output of the following program?
    11·2 answers
  • Assignment 4: Evens and Odds
    9·1 answer
  • Write code that prints: Ready! firstNumber ... 2 1 Run! Your code should contain a for loop. Print a newline after each number a
    15·1 answer
  • A pointer can be used as a function argument, giving the function access to the original argument.
    8·1 answer
  • Choose a common cloud-based application from the lesson.(Infrastructure as a service, Software as a service, Platform as a servi
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!