Write an algorithm that converts a decimal number

Assignment Help C/C++ Programming
Reference no: EM13186409

Each person in your team will complete:

One sequence problem (problem 1 or 2).
One selection problem (problems 3, 4, or 5)

Each team member should choose a different pair of problems.

When you are finished you will submit a single file containing all of your answers to moodle. This file can be in .doc, .docx (Word) or .rtf (WordPad) format. Don't spend a lot of time making pretty tables. For the IPO charts you don't necessarily need to use a table. You can list the three sections one above the other on the page:

Example: IPO chart
Input
firstNumber
secondNumber
Processing
Get numbers to add
Add numbers together
Display sum
Output
sum

For the problem you choose, complete the problem solving process discussed in class. You should submit written evidence of the process in the form of: a list of assumptions you've made to clarify the problem, an IPO chart, an algorithm and documentation of your testing.

1. Write an algorithm that converts a decimal number between 0 and 15 into its 4 bit unsigned binary representation.

2. Write an algorithm that converts a linear measurement in feet and inches into meters. One inch is equivalent to 2.54 centimeters.

Reference no: EM13186409

Questions Cloud

How much will deposits in the commercial banks change : The Federal Reserve has just purchased $100 million in Treasury bills from commercial banks. b. If the public holds a fixed amount of currency (so that all loans create an equal amount of deposits in the banking system), the minimum reserve ratio ..
State account for the trend of melting points : How do you account for the trend of melting points in this series of acids? octanoic (caprylic) C8H16O2 at 17.5 degrees C, decanoic (capric) C10H20O2 at 31.5 degrees C, dodecanoic (lauric) C12H24O2 at 44 degrees C, tetradecanoic (myristic) C14H28O..
State the operations manager of a large production plant : The operations manager of a large production plant would like to estimate the mean amount of time a worker takes to assemble a new electronic component. Assume that the standard deviation of this assembly time is 3.6 minutes.
What happens to output if transfers are increased by 100 : This question considers a closed economy Keynesian model that is augmented to include transfers payments to consumers (Tr = Transfers) that increase consumers' disposable incomes and lower government savings. a) Suppose you had the following c..
Write an algorithm that converts a decimal number : Write an algorithm that converts a decimal number between 0 and 15 into its 4 bit unsigned binary representation and write an algorithm that converts a linear measurement in feet and inches into meters. One inch is equivalent to 2.54 centimeters.
Find the boiling point of water : celsius absorbs 281kJ of heat from a mountain climber's stove at an elevation where the boiling point of water is 89 degrees celsius, how many kJ are required to boil the water?
Determine the increase in the price of peanut butter : what will happen to equilibrium quantity od peanut butter traded in the market after the 30% increase in the price of peanut butter? stay the same, increase, decrease, or not enough information to tell what will be the expected change in the quant..
Compute the equivalent mass of p2o5 : sample of fertilizer by the procedure of this experiment and obtain 1.000g of MgNH4PO4 * 6H20. Calculate the equivalent mass of P2O5 initially in the sample.
Find the periodic payment required to amortize a loan : Find the periodic payment required to amortize a loan of $227,000 over 360 months with interest charged at the rate of 8(1/8)%/year compounded monthly.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Accepts a pointer to a c-string as an argument

Write a function that accepts a pointer to a C-string as an argument and capitalizes the fist character of each sentence in the string. For instance, if the string argument is "hello

  Illustrate example from ansi c programming language

Illustrate example from ANSI C programming language, without using nested procedures, to show the fact that "assignment-by-sharing in conjunction with quasi-dynamic object binding

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Write program which prompts user to enter numbers

Write down the program which prompts the user to enter numbers, findsout how many positive and negative values have been entered, and calculates sum and average of numbers entered.

  The grid is populated randomly

Initially, the grid is populated randomly with occupied and empty cells. Once the initial grid has been created, the program loops. Each iteration of the loop represents a tick or time step in the environment.

  Allows you to enter 10 phonecalls into an array

Create a main() function that allows you to enter 10 PhoneCalls into an array. If a PhoneCall is already been placed to a number, do not allow a second PhoneCall to the same number

  Write a program to find out all 3-digit

Write a program to find out all 3-digit Narcissistic number. A number n is a 3-digit Narcissistic number if: (a) 100   n   999, (b) The sum of its own digits each raised to the power of 3 equals to itself. For example: 153 is a Narcissistic number ..

  The program calls a function called getgrades

The program calls a function called GetGrades that will read in grades from the keyboard, the number of grades should also be input by the user.

  Given the following test scores and grade equivalents

Given the following test scores and grade equivalents, write a function which is passed a score, and returns a letter grade based on the score entered. A number less than 0 or greater than 100 is invalid.

  Braces for blocks of code

C-- should have braces for blocks of code, an if statement, while statement, and a double, int, and character. Each statement ends with a semi-colon and you must have a main routine

  Write a small program to simulate a raffle

Write a small program to simulate a raffle (a gambling game) for a group with 100 members. You can simply identify each member with a no-duplicated ID numbers from 01 to 100. A number ticket with a positive 4-digits integer number will be randomly cr..

  Businesspartner class that contains a first name

Create a BusinessPartner class that contains a first name, company name, and a telephone number. Create a Contacts class that contains a dynamically allocated array of BusinessPartners as well as the owner's name and cell phone number.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd