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

  We can combine assignment statements

We can combine assignment statements, for-loops, and if statements to perform a wide range of tasks with lists. Suppose we have a bookstore with each book defined as follows: Book = namedtuple('Book', 'author title genre year price instock') , wher..

  Function alter with two parms passed by reference

Write a function alter with two parms passed by reference: x and y. alter changes the value of x to x+y and changes the value of y to x*y. Write a main function to read in two integers, print the two integers, call the function alter using the two..

  We have to deal with student pilots

We have to deal with student pilots and airplanes. Students have a unique student id, a name, and a year that students are in. Airplanes have a unique airplane id, model, a cruising range

  Cashregister class that can be used with the retailitem clas

Write a CashRegister class that can be used with the RetailItem class that you wrote in Part 1. The CashRegister class should simulate the sale of a retail item. It should have a constructor that accepts a RetailItem object as an argument.

  File system with login authentication

Implement a simple file system with login authentication and access control - Construct a hash/salt/shadow based user/password creation system.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Use functional decomposition to solve

Use functional decomposition to solve this problem, and code the solution using functions wherever it makes sense to do so. Your program should check for invalid data such as nonpositive dimensions, number of rooms less than 1.

  Output the even numbers from 1 to 10 in ascending order

Output the even numbers from 1 to 10 in ascending order, then the odd numbers from 10 to 1 in descending order: 2 4 6 8 10 9 7 5 3 1. in C++

  If a class is derived protected

If a class is derived protected from a base class, explain how this affects the inheritance of all public, protected, and private members of the base class by the derived class.

  Calculates the student * averages and quiz averages based

Calculates the student * averages and quiz averages based upon input from the user. Modify this program to read in the following grade text file, * with a maximum number of students set to 35 and having five quiz scores for each student. The output s..

  The "continue" and "break" statements

How are the "continue" and "break" statements different from the "exit" and "return" statements?

  Distinguish syntax and purpose of while-loop and for-loop

Distinguish the syntax and purpose of while-loop and syntax of a for-loop. Give C++ code examples of both loops and descriibe the main differences.

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