Assignment Sections – These Must All be Included in Your Submission
Your assignment must contain the following components either in the documentation or as separate electronic files, where indicated:
1. All assumptions made other than those stated in the question that you make about the problem. There will virtually always be assumptions you are implicitly making so think about this very carefully! (5%)
2. Your algorithm written in a uniform fashion using a pseudocode or a similar style and adhering to the conventions required in the unit. Your algorithm should be presented at an appropriate level of detail sufficient to be easily implemented. Submit your high- level algorithm (where necessary) along with algorithms of your decompositions as appropriate to the question. (20%)
3. A set of test data with expected results and desk check results from your algorithm. (20%)
4. A copy of your source code in the document. Make sure you use the code style required in the unit. (20%)
5. An electronic file containing source code named as described above (5%)
6. An electronic file being your compiled program which operates correctly. (20%)
7. Results of applying your test data to your final program, including a sample printout of your program in operation. (5%)
8. Self-assessment of how successful you were in achieving the requirements and a discussion of any problems you encountered. (5%)
Please submit the printed sections in order.
Marks may be deducted otherwise.
Each question is worth equal marks. And each part must have a separate program and separate set of documentation submitted.
You should read this question as if the change giver is a bank teller who has to give amounts of money to customers but can’t count very well so needs you program to help them.
You are asked to write a simple C program that will accept an integer value in the range of 5-95 and as a multiple of 5 representing the number of cents to give to a customer in their change. The program should calculate how many coins of each denomination and display this to the user. Valid coin values are 50, 20, 10 and 5. Your solution (program and algorithm) should be modular in nature. This requires the submission of a high-level algorithm and suitable decompositions of each step.
Note that for this problem the principle of code reuse is particularly important and a significant number of marks are allocated to this. You should attempt to design your solution such that it consists of a relatively small number of functions that are as general in design as possible and you should have one function in particular that can be reused (called repeatedly) in order to solve the majority of the problem. If you find that you have developed a large number of functions which each perform a similar task (or have a lot of repeated code) then attempt to analyse your design to generalise the logic so that it may be reused.
You are to extend your solution to Question 1 above by allowing the user to enter the amount of change as dollars and cents as a double (real number). Valid dollar values are 100, 50, 20, 10, 5, 2 and 1. You program should output the correct combination of dollar and cent denominations required and should be able to work for any valid dollar amounts. Cents amounts should be multiples of 5 as in the previous question.
In this question you will need to explicitly convert a double to an integer to break the inputted double down to its component parts as integers. You can use the following code as the basis for doing this:
Which of the following electron configurations correspond to an excited state? Identify the atoms and write the ground-state electron configuration where appropriate.a. b. c. d.Jul 18 2021
Suppose that a price-searcher firm had consumers who were all identical to each other. The individual consumer's demand function is given by: qp- 40 -3P. The firm decide...Apr 15 2020
uppose Equation 2 represents the production function of both Mexico and Spain. Use the following information to answer the next questions. L = Population (millions) K = C...May 26 2020
Behaviorally Anchored Rating Scales (BARS) is a sophisticated performance rating method. Which of the following is not true with regard to BARS?[A] BARS minimizes subject...Nov 27 2017
Think About ItIn Exercises 87 and 88, two particles travel along the space curves and It the particles collide, do their paths and intersect?Aug 04 2021
What is a technological monopoly?Jun 07 2021
Jeff and Steve are playing tennis. Every point comes down to whether Steve guesses correctly whether Jeff will hit the ball to Steve’s left or right. The outcomes are: [R...May 02 2020
The compound Pb3O4 (red lead) contains a mixture of lead(II) and lead(IV) oxidation states. What is the mole ratio of lead(II) to lead (IV) in Pb3O4Jul 18 2021
What is the bond order ofJul 25 2021
These are important factors to consider as you conduct your research:A group of angel investors owns 40% of the virtual business.Each virtual team member was selected to ...Apr 06 2021