Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do all of this in python no C++ or C language provide both the source code and output for each problem Problem 11 Create an

Do all of this in python no C++ or C language provide both the source code and output for each problem

Problem 11

Create an array of 10 integers and pre-populate it with 10 numbers. Then write a function called printit which will loop through the array and print the values out. Call the function to show it works. Now write another function called finditem and pass it the array and a number to find, call the function which should return a boolean if it's found or not. Test it out on the number 50. If the number fifty is in your array it should print True otherwise false.

Problem 12

Learn how to convert from decimal to binary. Do three examples by hand of the conversion (upload your hand written conversions into your PDF). Now, write a program to convert decimal to binary and test it on the problems you solved by hand to make sure your answers are correct Regardless of the programming language the code to convert digital to binary is only a few lines long and you can find examples of it online very easily. You dont need to worry about negative numbers. Show your three handwritten solutions as well as the source code and output of your program proving it gets the same answers as you did by hand. Please watch this quick video on how to convert by hand:

https://www.youtube.com/watch?v=1TxAm9931TE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions