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

  Estimate the lattice energy of xy in kj/mol

Consider a hypothetical salt XY.X^(2+) has the same radius of K+. Y^(2-) has the same radius as Br-  Estimate the lattice energy of XY in kJ/mol.

  What volume of solution should be given to the patient

What volume of solution should be given to the patient? Express your answer using two significant figures.

  Compute delta e for the reaction at 25c

at 25C, delta H for the combustion of liquid octane, to form CO2 solid and H2O liquid is -5471kJ/mol. Calculate delta E for this reaction at 25C.

  Calculate the energy released in the theta decay

Calculate the energy released in the θ (theta) decay of 226Ra. What fraction of the mass of a single 226Ra is destroyed in the decay? The mass of 222Rn is 222.01757 u.

  Which one of the following is a buffer solution

Which one of the following is a buffer solution?

  Crystalline ammonium nitrate from a cold pack

For an experiment, you have a calorimeter with 350 g of water at 24°C. 175 g of crystalline ammonium nitrate from a cold pack is placed into the calorimeter.

  Calculate a two-component composition

Calculate a two-component composition/ pressure phase diagram for methanol and ethanol at 300 K. The enthalpy of vaporization of methanol is 43.5kJ/mol and ethanol is 43.5 kJ/mol. The boiling points of methanol and ethanol are 337.2 K and 352 K, r..

  What cations are present in solution after you react

What was the percent copper in the alloy? Besides copper, what cations are present in solution after you react the alloy nitric acid?

  Chemical properties of molecules

The physical and chemical properties of molecules are determined by their shapes. Why? Provide examples.

  State compressed at constant temperature for delta s system

sample of ideal gas be compressed at constant temperature for delta s system to be -3.4j/k

  Calculate the activation energy and frequency factor

Rate constants, in s^-1, for a reaction were determined over the temperature range of 700.0 to 1000.0 K. A linear fit of In K vs. 1/T yielded a slope of -13500.0 K and intercept of 15.7. Calculate the activation energy (Ea) and frequency factor (A..

  What is a catchy

What is a catchy, orignal slogan for the element neon that describes one of its important uses?

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