1 / 7

PROBLEM SOLVING

This document provides a framework for problem analysis, program design, coding, testing, debugging, maintenance, and documentation in computer programming. It includes steps and elements involved in the programming life cycle.

wfelicia
Download Presentation

PROBLEM SOLVING

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. PROBLEM SOLVING 1.2 Problem Solving Prepared by : Pn Nurul Zakiah Binti Kasnun @ IT Department

  2. PROGRAMMING LIFE CYCLE • Programming Life Cycle: A framework or discipline, which uses certain techniques needed in computer programming development.

  3. PROBLEM ANALYSIS PROGRAM DESIGN PROGRAM CODING TESTING AND DEBUGGING MAINTENANCE DOCUMENTATION Steps involved in programming life cycle:

  4. ELEMENTS of PROBLEM ANALYSIS • Purpose : To describe in detail a solution to a problem and information needed in solving the problem. • Elements : • Input • Process • Output

  5. Problem 1: Write a program that will get 3 numbers as input from the users. Find the average and display the three numbers and its average. • Problem Analysis: Input: 3 numbers. Process: 1. Add the three numbers 2. Divide the total of the three numbers with 3 Output: The three numbers and its average

  6. Exercises • Write a program that will get length and width for a rectangle as input from the users. Find the area and display the length, width and its area. • Write a program that will calculate and display the sum of multiplication of 3 numbers. • Write a program that will get weight of rice in gram unit as input. Program will convert to kilogram and display the weight of rice in kilogram.

  7. Cont..Exercises • Write a program that calculate and display average for 3 integers. • Write a program that will get length of wire in cm unit as input. Program will convert to meter and display the length of wire in cm and meter.

More Related