Coder Social home page Coder Social logo

bincom_internship_test's Introduction

Bincom Intership Test You have been provided with a web page showing the colors of dresses put on by Bincom staffs for the week. We are planning to produce Tshirts for staffs and we have issues deciding the colors to be used. We want to make our decision based on the analysis of the data presented in the web page. Kindly go through the web page and write a python program that answers the questions below

-->

Requirements

  1. You may use python2 or python3
  2. You may use any IDE of your choice
  3. You may use regular expression

Key Features

  1. Which color of shirt is the mean color?
  2. Which color is mostly worn throughout the week?
  3. which color is the median?
  4. BONUS Get the variance of the colors
  5. BONUS if a colour is chosen at random, what is the probability that the color is red?
  6. Save the colours and their frequencies in postgresql database
  7. BONUS write a recursive searching algorithm to search for a number entered by user in a list of numbers.
  8. Write a program that generates random 4 digits number of 0s and 1s and convert the generated number to base 10.
  9. Write a program to sum the first 50 fibonacci sequence.

THE HTML PAGE

TABLE SHOWING COLOURS OF DRESS BY WORKERS AT BINCOM ICT FOR THE WEEK

<thead>
	<th>DAY</th><th>COLOURS</th>
</thead>
<tbody>
<tr>
	<td>MONDAY</td>
	<td>GREEN, YELLOW, GREEN, BROWN, BLUE, PINK, BLUE, YELLOW, ORANGE, CREAM, ORANGE, RED, WHITE, BLUE, WHITE, BLUE, BLUE, BLUE, GREEN</td>
</tr>
<tr>
	<td>TUESDAY</td>
	<td>ARSH, BROWN, GREEN, BROWN, BLUE, BLUE, BLEW, PINK, PINK, ORANGE, ORANGE, RED, WHITE, BLUE, WHITE, WHITE, BLUE, BLUE, BLUE</td>
</tr>
<tr>
	<td>WEDNESDAY</td>
	<td>GREEN, YELLOW, GREEN, BROWN, BLUE, PINK, RED, YELLOW, ORANGE, RED, ORANGE, RED, BLUE, BLUE, WHITE, BLUE, BLUE, WHITE, WHITE</td>
</tr>
<tr>
	<td>THURSDAY</td>
	<td>BLUE, BLUE, GREEN, WHITE, BLUE, BROWN, PINK, YELLOW, ORANGE, CREAM, ORANGE, RED, WHITE, BLUE, WHITE, BLUE, BLUE, BLUE, GREEN</td>
</tr>
<tr>
	<td>FRIDAY</td>
	<td>GREEN, WHITE, GREEN, BROWN, BLUE, BLUE, BLACK, WHITE, ORANGE, RED, RED, RED, WHITE, BLUE, WHITE, BLUE, BLUE, BLUE, WHITE</td>
</tr>

</tbody>

Examine the sequence below very well, you will discover that for every 1s that appear 3 times, the output will be one, otherwise the output will be 0.

0101101011101011011101101000111 Input

0000000000100000000100000000001 Output

bincom_internship_test's People

Contributors

mustorpha avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.