1 / 5

P6, M2, D2

P6, M2, D2.

channer
Télécharger la présentation

P6, M2, D2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. P6, M2, D2

  2. 1. Design a program to be used by an interior decorator to estimate the cost of painting a room. The decorator needs to enter the height of the room (between 2 and 6 metres), then the length of all four walls (minimum 1 metre; maximum 25 metres). The program should then calculate the total area of the room. The program should allow a choice of three paints: • Luxury quality which cost £1.75 per square metre • Standard quality which costs £1.00 per square metre. • Economy quality which costs £0.45 per square meter. The decorator should also be able to choose to use undercoat paint if required, which costs an additional £0.50 per square metre. The program should display an itemised bill with a total (P6)

  3. M2 2. Write a justification of the data types you have chosen for the variables you have defined in your design and the way you have structured the system, for example by splitting it into a number of different procedures.

  4. D2 Develop an algorithm using pseudo-code to describe how the calculation should be done to estimate the cost of the decorating for any given size of room, choice of paint and undercoat

  5. Grading Tips • The design produced should use a variety of design tools such as structure diagrams to identify the different procedures and story board to design the user interface (P6) • When working towards M2 remember that your justification of the choice of data type will need to cover why you chose the data types you did, what the alternatives were and why you did not consider them suitable. In some cases this will be quite straightforward, for example where text input is made. However, with numeric data you will need to consider not only if the value will be integer only or if a floating point data type is required, but also the likely range values the variable will hold. (M2) • You should annotate the algorithms you produce to explain how they work and how they meet the requirements of the system. (D2)

More Related