Determine the number of occurrence of element

Assignment Help Chemistry
Reference no: EM132432027

In this activity, you will be given a series of programming problems you will commonly encounter in novice programming competitions. You are to (a) list down Technical Work Items, (b) create a visualization of your work items using Flowcharts, and (c) compose Pseudocodes that represents your flowcharts. Keep your answers as simple as possible without compromising on the logical aspect of your identified solution.

  • On the first page of your solution, list down the Technical Work Items you identified that would help to eventually solve the problems provided.
  • On the second page, draft a flowchart representation of your solution. Use your listed Technical Work Items as your guide. Be sure to adhere to our set of guidelines as discussed in Module002.
  • You may use additional papers if needed.
  • On the last page of your solution, write a translation of your flowcharts to pseudocodes.

QUESTION 1:Write a program that accepts an integer input from the user and display the least number of combinations of 200s, 100s, 50s, 20s, 10s, 5s, and 1s.

[Test your solution using this samples]

  • Input: 250

Output: 1x200s, 1x50s

  • Input: 1127

Output: 5x200s, 1x100s, 1x20s, 1x5s, 2x1s

  • Input: 1127

Output: 5x200s, 1x100s, 1x20s, 1x5s, 2x1s

  • Input: 19

Output: 1x10s, 1x5s, 4x1s

[Hints]

  • Use division to determine the number of occurrence of each element (i.e. 200, 100) in the input (e.g. Given 500 if we divide it by the largest number possible; which is 200; we will get 2. Therefore, there are 2x200s.)
  • Use subtraction to determine the remaining value of the input. (e.g. In the 500 example, since there are 2x200s, we still have 100 to process. The 100 came from 500 - (2*200) = 100.)
  • Use the next largest number possible (i.e. 100) to check the number of occurrence. Continue until the remaining value of the input is zero.

Reference no: EM132432027

Questions Cloud

Evaluate the effectiveness of people and legislation : Evaluate the effectiveness of people and legislation in establishing change for one of the following progressive reforms. Make sure to include a summary.
5 areas of object-oriented programming : The below program either violates or misses 5 areas of object-oriented programming in C++ including:
What would be the total FUTA tax : The Wash Your Paws Self-Service Dog Wash, a California business, had two employees during the year. What would be the total FUTA tax
Discussion about the religious marketplace : As you have read this week, in many contemporary and pluralistic societies, people of varying religious traditions coexist in the same physical spaces.
Determine the number of occurrence of element : Use division to determine the number of occurrence of each element (i.e. 200, 100) in the input (e.g. Given 500 if we divide it by the largest number possible
Explain what the financial statements are : Jane Jones is an aspiring entrepreneur and your friend. Explain what the financial statements are and how these will help her understand her business
How do the women spend their time : What do the men do during different parts of the day and evening? How do the women spend their time? What about the children? Do the boys and girls
How did fanatical and violent man come to regarded as a hero : Respond to the following prompts. Replies should be at least 500 words, total. How did a fanatical and violent man like John Brown come to regarded as a hero.
Discuss cancer on a cellular and molecular level : Discuss cancer on a cellular and molecular level. Discuss traditional treatment for cancer and innovative "non-traditional" treatments

Reviews

Write a Review

Chemistry Questions & Answers

  Steps in the mechanism for the following reaction

Show all the steps in the mechanism for the following reaction, When benzene is mixed with deuterated sulfuric acid, deuterium is slowly incorporated onto the ring. Show the mechanism for this reaction and explain how this relates the sulfonation of ..

  Prior to placing piece of metal into the graduated cylinder

This assignment inhibits chemistry Laboratory Questions.

  Write the structures of the saytzeff elimination

Write the structures of the saytzeff elimination

  Calculate ph - chemistry questions

Chemistry Questions on Calculate P H

  How many mols of hydrogen can produce

how many mols of H 2 can produce

  Analysis of corrosion mechanisms

Analysis of corrosion mechanisms and preventative measures

  Chemical and pharmaceutical science

Write an equation for the formation of an acetal from reaction of excess methanol with benzaldehyde in the presence of an acid catalyst.

  Calculate the approximate sulphur

Calculate the approximate SO 2 mass emission in lb/day.

  What is the structure - stereochemistry

What is the structure (including functional groups)? Stereochemistry (racemic or single enantiomer)?

  Design a qualitative analysis scheme

Design a qualitative analysis scheme

  What will be the resultant pressure

What will be the resultant pressure when the stopcock is opened?

  The 1h nmr spectrum

Integrals for some of the resonances in the 1H NMR spectrum are higher than they should be due to the shear number of hydrogens in this compound

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