4.15 LAB: Convert to reverse binary
Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in reverse binary. For an integer x, the algorithm is:

As long as x is greater than 0
Output x % 2 (remainder is either 0 or 1)
x = x / 2

Please help me!!

4.15 LAB: Convert To Reverse BinaryWrite A Program That Takes In A Positive Integer As Input, And Outputs

Answers

Answer 1

A program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in reverse binary is

num = int(input())

while num > 0:

   y =(num % 2)

   print(y, end='')

   num = (num//2)

print()

num = int(input("Enter a number"))

string = ""

while num > 0:

   y =str(num % 2)

   string+=y

   num = (num//2)

reverse=string[::-1]

print(reverse)

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1


Related Questions

Wendy Patel is entering college and plans to take the necessary classes to obtain a degree in architecture. Research the programs and apps that Wendy might use in her degree program and recommend a computer with sufficient hardware specifications to adequately support her through the degree program. Provide a link to the computer you locate and justify why you feel the computer will best meet her needs. Why did you choose the central processing unit? Why did you choose the amount of RAM? Why did you choose the storage device?

Answers

Some of the programs and apps that Wendy might use in her degree program of architecture are:

AutoCAD Mobile AppMorpholio Trace Pro.ARki. ArchiSnapper 5.MagicPlan.Shapr3D

A recommended computer that Wendy Patel can use in her university study of obtaining a degree in architecture is an ASUS ZenBook S Ultra Slim Flip Laptop.

The RAM is 16GB RAM and the CPU is an 11th Generation Core i7-1165G7 chip that would help her navigate through her design projects.

What is Architecture?

This refers to the process of designing and constructing buildings with the aid of software.

Hence, we can see that Some of the programs and apps that Wendy might use in her degree program of architecture are:

AutoCAD Mobile AppMorpholio Trace Pro.ARki. ArchiSnapper 5.MagicPlan.Shapr3D

A recommended computer that Wendy Patel can use in her university study of obtaining a degree in architecture is an ASUS ZenBook S Ultra Slim Flip Laptop.

The RAM is 16GB RAM and the CPU is an 11th Generation Core i7-1165G7 chip that would help her navigate through her design projects.

Read more about architecture here:

https://brainly.com/question/9760486

#SPJ1

Bruno works in a food processing plant. One of his jobs is to monitor the refrigeration equipment so that all the foods are being stored at a safe temperature. He inspects the thermometers on the 10 refrigerators that hold packaged meat ready for shipment. Which refrigerator needs Bruno’s attention?

A.
the one reading 38°F.

B.
the one reading 37.7°F.

C.
the one reading 40°F.

D.
the one reading 42.8°F.

Answers

The refrigerator that needs Bruno’s attention is option D. the one reading 42.8°F.

Check more about Temperature  below

What Is the Best Temperature for My Refrigerator?

There are different kinds of temperature for any  refrigerator. The Food and Drug Administration states that 40 degrees Fahrenheit or lower is the recommended refrigerator temperature (FDA).

Note that Salmonella, E. coli, and listeria, three bacteria are those that can result in foodborne diseases, and thus cannot grow at these temperatures.

Therefore, based on the above, The refrigerator that needs Bruno’s attention is option D. the one reading 42.8°F.

Learn more about refrigerator from

https://brainly.com/question/13143746
#SPJ1

what is network security and why we need it?​

Answers

Answer:

Network Security protects your network and data from breaches, intrusions and other threats. This is a vast and overarching term that describes hardware and software solutions as well as processes or rules and configurations relating to network use, accessibility, and overall threat protection.

Explanation:

brainliest please

Write a C++ program which reads a given integer n and prints its twin
prime.
"A twin prime is a prime number that is either 2 less or 2 more than another prime
number" for example, either member of the twin prime pair (41, 43). In other
words, a twin prime is a prime that has a prime gap of two".
Sample Output:
Enter an integer:
11
Twin prime number of 11 is:
13

Answers

The C++ program that reads a given integer n and prints its twin prime is given below:

The Program

#include <iostream>

#include <cmath>

using namespace std;

int main() {

   const int num_primes = 10005;

   bool primes[num_primes];

   for (int i = 2; i != num_primes; ++i) {

       primes[i] = true;

   }

   for (int i = 2; i != int(sqrt(num_primes)); ++i) {

       if (primes[i]) {        

           for (int j = 2; i * j < num_primes; ++j) {

               primes[i*j] = false;

           }

       }

   }

   int n;

cout << "Input an integer:\n";

   cin >> n;

cout << "Twin primes are:\n";

       for (int i = n; i - 2 >= 0; --i) {

           if (primes[i] && primes[i-2]) {

               cout << i-2 << " " << i << endl;

               break;

           }

   }

   return 0;

}

The Output

Input an integer:

Twin primes are:

11 13

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

8. What should one do in order to gain the most benefit from the concept of learning styles?
a. Be rigid
b. Be persistent
c. Be imaginative
d. Stay flexible

D stay flexible

Answers

The thing that a person should do in order to gain the most benefit from the concept of learning styles is option D: stay flexible.

What does learning styles mean?

Learning styles can be categorized, identified, and described in a variety of ways. They are, in general, broad patterns that give teaching and learning direction.

Another way to think of learning style is as a set or a given group of elements, actions, as well as attitudes that support a person's learning in a specific circumstance.

Therefore, based on the above, The thing that a person should do in order to gain the most benefit from the concept of learning styles is option D: stay flexible.

Learn more about learning styles from

https://brainly.com/question/3274282
#SPJ1

how to print name 100 times in python

Answers

Answer:

How do you print a name 100 times in python? Use range () to print a string multiple times. Use range (stop) to create a range of 0 to stop where stop is the number of lines desired. Use a for-loop to iterate through this range. In each iteration, concatenate the string to itself by the number of times desired and print the result.

Explanation:

Amed is utilizing a feature that will use two tables. The first table contains a primary key matched to a foreign key in the second table. The query results will include all entries from the first table. Which feature is he using?

left outer join
right outer join
self join
inner join

Answers

Answer:

left outer join

Explanation:

Marc is a gamer and is in the market for a new computer to support a lot of graphics. He needs to find a computer with a high amount of RAM, because the higher the RAM, the faster it will function.

A: True
B: False

Answers

Since Marc is a gamer and is in the market for a new computer to support a lot of graphics. He needs to find a computer with a high amount of RAM, because the higher the RAM, the faster it will function is option A: true statement.

What is the statement of the higher the RAM, the faster it will function about?

In regards to computing, when the RAM is known to be faster, one can say also that  the faster will be the computer  the processing speed.

Note that when there is a faster RAM, a person or a computer user can be able to increase the speed through which the computer memory moves information to other parts of the system.

This implies that  there is a fast processor and thus an equally faster means of talking to the other areas of the system, making the computer to be much more good.

Therefore, Since Marc is a gamer and is in the market for a new computer to support a lot of graphics. He needs to find a computer with a high amount of RAM, because the higher the RAM, the faster it will function is option A: true statement.

Learn more about RAM from

https://brainly.com/question/13196228

#SPJ1

Besides UEFI, what other type of firmware might you see on a motherboard?

Answers

Besides UEFI, the other type of firmware that you might see on a motherboard is BIOS.

What is a computer hardware?

A computer hardware can be defined as a physical component of an information technology (IT) or computer system that can be seen and touched.

The hardware components of a computer.

Some examples of the hardware components of a computer system and these include:

MonitorMouseRandom access memory (RAM).Read only memory (ROM).Central processing unit (CPU)KeyboardMotherboard BIOS chip

In Computer technology, the two types of of firmware that you might see on a motherboard are Basic Output-Input system (BIOS) and Unified Extensible Firmware Interface (UEFI).

Read more on motherboard BIOS chip here: brainly.com/question/17373331

#SPJ1

MC Qu. 05 The most common way to access the Internet i...
The most common way to access the Internet is through

Answers

Answer: The most common way to access the internet is through Mobile phone

Difference between us 2.0
and 3.0 flash drive

Answers

USB 2.0 offers a transfer rate of about 480 Mbps, whereas USB 3.0 offers a transfer rate of about 4,800 Mbps

What are Thear Platforms?

Answers

A computing platform or digital platform is an environment in which a piece of software is executed. It may be the hardware or the operating system, even a web browser and associated application programming interfaces, or other underlying software, as long as the program code is executed with it.

Answer:

A conglomerate technology company.

Explanation:

Thear Platforms is commonly known as Thear. It is a conglomerate technology company with different platforms.

Some platforms by Thear are as follows

1. Thear Blog (Blogging Site)

2. Thear Library (Educational Site)

3. Thear Updates (News Site)

and many others....

You may access these at https://thear.me/

Karen has a discrete analog clock in the shape of a circle. Two hands rotate around the center of the circle, indicating hours and minutes. The clock has 60 marks placed around its perimeter, with the distance between consecutive marks being constant.
The minute hand moves from its current mark to the next exactly once every minute. The hour hand moves from its current mark to the next exactly once every 12 minutes, so it advances five marks each hour. We consider that both hands move discretely and instantly, which means they are always positioned exactly over one of the marks and never in between marks.
At midnight both hands reach simultaneously the top mark, which indicates Zero hours Zero minutes. After exactly 12 hours or 720 minutes, both hands reach the same position again, and this process is repeated over and over again. Note that when the minute hand moves, the hour hand may not move; however, when the hour hand moves, the minute hand also moves.
Karen likes geometry, and she likes to measure the minimum angle between the two hands of the clock at different times of the day. She has been writing some measures down, she noticed that some angles were repeated while some others never appeared. For instance, Karen noticed that both at three o'clock and at nine o'clock the minimum angle between the two ands is 90 degrees, while an angle of 65 degrees not appear in the list.
Karen decided to verify, for any integer number between 0 and 180, if there exists at least one time of the day such that the minimum angle between the two hands of the clock is exactly A degrees. In this lab you will code a program to help Karen to answer this question and display which hour meet the angle.
NOTE: Your program needs to perform operation(s) and use control statements to solve the problem. Solutions that imply to create a switch-case or if-else for all 181 (or 91) possible values (Hard Coding) automatically will be scored with 0.
Input:
The program gets as input an integer value A s.t. (0<= A <= 180), which represents the angle to be verified. Validate that this input is within the valid range.
Output:
If there exist at least one time of the day such that the minimum angle between the two hands of the clock is exactly A degrees, then display how many hours met the specified angle and those hours in ascending order (24-hour military time clock). Otherwise display "There is no hour where the hands are A degrees apart".

Answers

Answer:

no idea

Explanation:

but I want you to know, you are a great person

A design team is working on a design project for an event ticketing app to reduce paper tickets. They suggest the following design problem statement: Ricki is an avid sports fan and wants to avoid printing tickets that will be discarded once they’re in the stadium. What element is missing in the problem statement? (UX)

User name

User need

Insight

User characteristics

Answers

The element that is missing here are users characteristics. The correct option is D.

What is problem statement?

A problem statement is a succinct description of an issue that needs to be addressed or a condition that needs to be improved.

It determines the difference between the current and desired states of a process or product. The problem statement should address the Five Ws while focusing on the facts.

The problem itself, plainly stated and with enough please start to establish why it is crucial; the method of solving the problem, often asserted as a claim or a working thesis; and the purpose, statement of objective, and scope of the document the author is preparing.

As in the given scenario, Ricki is an avid sports fan and wants to avoid printing tickets that will be discarded once they’re in the stadium it requires user characteristics.

Thus, the correct option is D.

For more details regarding problem statement, visit:

https://brainly.com/question/11657822

#SPJ1

Provide a code example for a shape with no outline. What can you do to ensure this is the
outline that will be used?

Answers

A code example for a shape with no outline or one that its borders has been removed has been given below:

The Code

Dim rngShape As InlineShape

For Each rngShape In ActiveDocument.InlineShapes

   With rngShape.Range.Borders

       .OutsideLineStyle = wdLineStyleSingle

       .OutsideColorIndex = wdPink

      .OutsideLineWidth = wdLineWidth300pt

   End With

Next rngShape

Read more about shapes and borders here:

https://brainly.com/question/14400252

#SPJ1

Write an expression that computes the sum of two double variables total1 and total2, which have been already declared and assigned values.

Answers

The expression that computes the sum of two double variables total1 and total2, which have been already declared and assigned values is total1+total2.

What is double variable?

The double data type is built into the compiler and is used to define numeric variables that hold numbers with decimal points.

Many programming languages, including C, C++, C#, and others, recognize the double as a type.

A variable can be declared as double by prefixing it with the double keyword. You mostly used this data type, which has 14 or 15 decimal digits.

However, it must be used with caution because it requires 8 bytes of memory storage and is an expensive method.

total1+total2 is the expression that computes the sum of two double variables total1 and total2, which have already been declared and assigned values.

Thus, this can be the expression that computes the sum of two double variables total1 and total2.

For more details regarding double variable, visit:

https://brainly.com/question/1979738

#SPJ1

Which type of memory management system is feasible for mobile computing?

Answers

The  type of memory management system is feasible for mobile computing is known to be built in memory (RAM).


What is memory management in mobile computing?

The term Memory Management is known to be the act of controlling as well as coordinating computer memory.

It  is one that tends to share some parts known as blocks to a lot of running programs to be able to optimize the total  performance of the system.

Therefore, based on the above, The  type of memory management system is feasible for mobile computing is known to be built in memory (RAM).

Learn more about memory management from

https://brainly.com/question/27993984

#SPJ1

Describe the differences between power and authority

Answers

Answer:

power is authjority

Explanation:

Classify the following devices as input or ourput. Draw a line from the picture to the correct name of the device.​

Answers

Answer:

input: keyboard + mouse

output: monitor + printer

What question should you ask when deciding which device to design for first? (UX)


Where will users go once they access the app or website?

Where will users be when they access the product?

When will users access the product?

How much do users pay for internet access, cellular access, or wi-fi signal?

Answers

Answer:

I think it's either "Where will users go once they access the app or website?" or "How much do users pay for internet access, cellular access, or wi-fi signal?"

This one's tricky

Write the contribution of baise pascal and dr herman hollerith in the histroy of computer

Answers

Answer:Computers truly became a revolutionized invention during the last part of the 20th century. They have already helped win wars, solve seemingly insoluble problems, saved lives and launched us into space. Their history spans more than 2500 years to the creation of the abacus. This resource provides a brief history of computers.The Pascaline

In 1642, an eighteen year old French scientist, writer and philosopher, Blaise Pascal (1623–1662), invented the very first mechanical calculator. It was named the Pascaline.

It had been created as an aid for Pascal’s father, who was a tax collector. Pascal built fifty of these gear driven calculating machines and couldn’t manage to sell many due to their expensive cost.

Explanation:

Which is best app to create websites​

Answers

Answer:

Wix.

Explanation:

Wix is a cloud-based website builder that includes web hosting and design services.

Its user-friendly drag-and-drop tools and over 500+ ready-made templates help you build your website without either having specialist skills or hiring a web developer. Wix accelerates the web development process and gives you the creative freedom to build the website you desire.

Wix is an ideal website builder for small and medium eCommerce businesses. It has over 200 million registered users across the world and is available in 17 languages (Wix).

According to Enlyft, Wix’s largest customer base is in the US (57%), followed by the UK (6%) and Canada (6%). Is Wix the Best eCommerce Platform? Wix eCommerce is an eCommerce website builder that lets you create a custom online store, sell products, and scale your business to the next level.

It’s also an excellent eCommerce platform for small and medium businesses that’s easy to use, customize, and relatively affordable. However, whether it’s the best eCommerce platform for you will depend largely on your specific business needs.

To tell an audience a story about a data set, it is best to use a _____________.

A) memo
B) graph
C) dashboard
D) report

Answers

Your answer should be (B
it is best to use a graph.

What is the relationship between the ask phase of the data analysis process and the plan phase of the data life cycle?

Answers

Answer:

The data analytic lifecycle is intended for use with data science initiatives and Big Data issues. The cycle reflects a real project by being iterative.

Find the following measures of central tendency for the given set of data. {1, 3, 9, 11, 2}

Answers

Answer:

(1+3+9+11+2)/5=26/5=5.2

1. How are you going to apply proper selection of tools in your daily life?

2. Do you think knowing each tool used for computer systems servicing will be a big help for you in the future?

3. How important for a student like you to know the scope of work you should properly accomplish?​

Answers

Answer:

PROPER TOOLS SELECTION 2. Tool •Is a handheld device that aids in accomplishing a task •Range from a traditional metal cutting part of a machine to an element of a computer program that activates and controls a particular function. 3. Preparing for the task to be

Explanation:

why is this happening and how do I fix it?

Answers

Answer:

who is known as prophet of the computer?why?

"As a busy professional and avid book lover, I want to be able to reserve books in advance, so that I can pick them up based on my schedule.” (ux)

What component of the user story addresses the persona’s goal to access books they want to read when they arrive at the library?


Demographic

Benefit

Action

Role

Answers

Answer:

The answer is benefit

that it


What statement is an example of the specific requirements of smart goal?

Answers

Answer:

Specific: I’m going to write a 60,000-word sci-fi novel.

Measurable: I will finish writing 60,000 words in 6 months.

Achievable: I will write 2,500 words per week.

Relevant: I’ve always dreamed of becoming a professional writer.

Time-bound: I will start writing tomorrow on January 1st, and finish June 30th.

Explanation:

I did this mark brainiest

characteristics of third generation of computer​

Answers

Answer:

1. Use of Integrated Circuits (IC) instead of transistors.

2. Use of Semi-conductor memory.

3. Small size than previous generation computers.

4. Use of magnetic storage devices.

5. Improved faster operations and more dependable output.

6. Use of mini computers.

7. Use of monitors and line printers.

Other Questions
Which sentence about the Age of Contact is false?Spanish explorers brought disease that killed many Native Americans.Spanish explorers introduced Native Americans to horses.Spanish explorers made first contact with Native Americans in Texas.Spanish explorers settled the land in Texas and lived among the NativeAmericans. Describe a meaningful event or experience involving language and explain how it has changed or affected the person you are today Who was squanto? a pequot who fought new england colonists a pequot who taught colonists how to survive a representative of the wampanoag who refused to recognize the colonists a representative of the wampanoag who negotiated peace with the colonists Through analyzing these two poems, "The New Colossus" and "Unguarded Gates," you have been introduced to the two major andopposing views on U.S. immigration in the early 20th century. Imagine that you are debating the author, Thomas B. Aldrich, aboutAmerica's immigration policy. Select and refute three reasons that Aldrich uses to oppose "new" immigration to the United States.To review the poem, click "+" below. You can also click "My Work" to access your notes. Which are correct representations of the inequality 6x 3+ 4(2x - 1)? Select three options. Solve x = 27. A x=9. Bx = 19,683 C_x=33. DX = 3 what are the vertex and range of 7= |x +2| -3 please help me I need help i have problems HELP ITS URGENTGKHJLKGFHHB Whenever you communicate online, remember _______________.a.to delete anything you dont want to keepb.everything you put online is available foreverc.to always share your personal informationd.all of the above Time (min)3. A car accelerates at 2 m/s. Assuming the car starts from rest, how much timedoes it need to accelerate to a speed of 16 m/s?[ t = (vi-vi//a ] What is the ph of a buffer solution prepared with 0.055 m sodium acetate and 0.01m acetic acid. the pka value of acetic acid is 4.76 at 250c. What parts of the house is the stranger most interested in ?story - where is here Find measure. m 5 A movie theater is open x hours Monday through Thursday and y hours Friday through Sunday. Write an algebraic expression that represents the number of hours per week the theater is open. Use the sentence to answer the question.George said you need to take out the garbage before dinner, but Grandma said you could wait until you finish your dinner.Which type of pronouns are used in the sentence?(1 point).second personthird personO first personO intensive pronoun Ann, Claire and Josh collect stickers. One week, Ann collects 7 more stickers than Josh. Josh collects twice as many stickers as Claire. If they collect a total of 157 stickers, how much stickers did each collect? what positive number raised to the second power is equal to 64 In which phase of microbial growth does the number of dead microbial cells exceed the number of live cells? select one: a. lag b. log c. stationary d. death A sample of gold has a mass of 15.7 g and displaces 0.81 cm3 of water in a graduated cylinder. what is the density of gold?