Free Essay

Develpment Software.Pdf

In: Other Topics

Submitted By KOFFI
Words 699
Pages 3
FACULTY OF MEDIA, INFORMATION & COMMUNICATION TECHNOLOGY

DEVELOPMENT SOFTWARE 511 Due Date: Chapters Covered: 6 MAY 2013 An overview of computers and programming Working with data, creating modules and designing High Quality programs Understanding Structure Modularization Making Decisions Designing & Writing a complete program Looping Arrays File Handling & Applications 100 DIP-DS 511

Maximum Marks: Unique Assignment Number:

Background This assignment is based on the content to be covered in the first semester. Naturally all material provided or prescribed will be used. Purpose: The purpose of the assignment is to: a. Ensure that you come to thorough grip with content, in particular of the provided or prescribed material and b. Gain an in depth understanding of the core concepts and the significance of the theories discussed in the module. PC TRAINING & BUSINESS COLLEGE
1

HIGHER EDUCATION AND TRAINING FACULTY OF MEDIA, INFORMATION AND COMMUNICATION TECHNOLOGY DIPLOMA IN INFORMATION TECHNOLOGY ASSIGNMENT COVER SHEET: DEVELOPMENT SOFTWARE 511

Name of Learner…………………………………………………….… Student No: ………………………….. Module…………………………………………………………………..…Date: …………………………………….. ICAS Number……………………………………………………………..Year: …………………………………….. ASSESSMENT CRITERIA

Question Number 1 2 3 4 Total Examiner’s Comments

Mark Allocation 30 40 20 10 100

Examiner’s Mark

Moderator’s Marks

Moderator’s Comments

NB: All Assignments will be handled in as it forms part of continuous assessment that goes towards the final mark.

QUESTION 1

[30 MARKS]

2

Draw the hierarchy chart and design and the logic for a program that contains housekeeping, detail loop, and end-of-job modules, and that calculates the service charge customers owe for writing a bad check. The main program declares any needed global variables and constraints and calls the other modules. The housekeeping module displays a prompt for and accepts a customer’s last name. While the user does not enter “ZZZZ” for the name, the detail loop accepts the amount of the check in dollars and cents. The service charge is computed as R20 plus 2 percent of the check amount. The detail loop also displays the service charge and then prompts the user for the next customer’s name. The end-ofjob module, which executes after the user enters the sentinel value for the name displays a message that indicates the program is complete.

QUESTION 2 [40 MARKS] Create the logic for a dice game PIG, in which a player can compete with the computer. The object of the game is to be the first to score 100 points. The user and computer take turns “rolling” a pair of dice following these rules:  On a turn, each player rolls two dice. If no. 1 appears, the dice values are added to a running total for the turn, and the player can choose whether to roll again or pass the turn to the other player. When a player passes, the accumulated turn total is added to the player’s game total. If a 1 appears on one of the dice, the player’s turn total becomes 0; in other words, nothing more is added to the player’s game for that urn, and it becomes the other player’s turn If a 1 appears on both of the dice, not only is the player’s turn over but the player’s entire accumulated total is reset to 0. When the computer does not roll a 1 and can choose whether to roll again, generate a random value from 1 to 2. The computer will then decide to continue when the value is 1 and decide to quit and pass the turn to the player when the value is not 1. [20 MARKS]







QUESTION 3

The Lancaster District maintains five soccer teams as shown in the table below: Team Number 1 2 3 4 5 Team Name Goal Getters The Force Top Guns Shooting Stars Midfield Monsters

3.1 Design a program that accepts a player’s team number and displays the player’s team name (10) 3.2 Modify Lancaster District program so that after the last player has been entered, the program displays a count of the number of players registered for each team. (10)
3

QUESTION 4

[10 MARKS]

4.1

Draw a structured flowchart or write structured pseudo code describing your preparation to go to work or school in the morning. Include at least 2 decisions and two loops
TOTAL MARKS: 100

4

Similar Documents