Preview

Introduction to Computing

Satisfactory Essays
Open Document
Open Document
467 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Introduction to Computing
Introduction to Computing

Lab Manual Lab 3

Visual Logic
Problem Solving using Flow Charts

Session: Fall 2013
Faculty of Information Technology
UCP Lahore Pakistan
Lab Content
This lab is focused on training students on Visual Logic to enhance their problem solving skills.
Lab Task 1
Write a program that reads three nonzero integers and determines and prints if they could be the sides of a right triangle.
(Hint: Use Pythagoras theorem).
Lab Task 2

The cost of an international call from New York to Pakistan is calculated as follows: Connection fee is $1.99. Charges for first three minutes are $2.00 and $0.45 are charged for each additional minute. Write a program that prompts the user to enter the number of minutes the call lasted and outputs the amount due.
Lab Task 3
(Separating Digits in an Integer) Write pseudo code and design flow chart that inputs one five-digit number separates the number into its individual digits and prints the digits separated from one another.
Lab Task 4
Design flow chart of a BMI calculator application that reads the user’s weight and height and then calculates and displays the user’s body mass index. The formula for calculating BMI is:
BMI = Weight / (Height * Height) unit: Height is in meter
Also, the application should display the following information from the scale provided below.
BMI VALUES
Underweight: less than 18.5
Normal: between 18.5 and 24.9
Overweight: between 25 and 29.9
Obese: 30 or greater

Lab Task 5
Design flow chart that will determine if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available:
a) Account number
b) Balance at the beginning of the month
c) Total of all items charged by this customer this month
d) Total of all credits applied to this customer's account this month
e) Allowed credit limit
The application should input each of these facts, calculate the new balance =

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    2.Write a program to (a) display a “?” (b) read two decimal digits whose sum less than 10 (c) display them and their sum on the next line. Page: 80…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    2. An analysis of your client’s body composition, including calculated body mass index (BMI) and BMI goals.…

    • 645 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    A retail store gives each of its customers a maximum amount of credit. A customer’s available credit is determined by subtracting the amount of credit used by the customer from the customer’s maximum amount of credit. As you did in programming challenge 1, perform steps 1 through 6 of the programming process to design an application that determines a customer’s available credit.…

    • 636 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Visual Logic can be installed from the CD that accompanies our textbook. It is a nifty tool…

    • 5177 Words
    • 21 Pages
    Good Essays
  • Satisfactory Essays

    Yes Man

    • 296 Words
    • 2 Pages

    BMI is a simple mathematical formula, based on height and weight, that is used to measure fatness.…

    • 296 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Intro to Computers

    • 609 Words
    • 3 Pages

    | Allows users to organize data in rows and columns and perform calculations and recalculate when data changes.…

    • 609 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Sophomores, Good Day !

    • 514 Words
    • 3 Pages

    4. Create a flowchart that reads three numbers and prints “THEY ARE THE SAME” if they are all the…

    • 514 Words
    • 3 Pages
    Good Essays
  • Good Essays

    David Etheridge Java: Graphical User Interfaces – An Introduction to Java Programming Download free eBooks at bookboon.com 2 Java: Graphical User Interfaces – An Introduction to Java Programming © 2009 David Etheridge & Ventus Publishing ApS ISBN 978-87-7681-496-0 Download free eBooks at bookboon.com 3 Contents Java: Graphical User Interfaces Contents 1. 1.1 1.2 1.3 1.4 1.5 1.6 1.7…

    • 4571 Words
    • 19 Pages
    Good Essays
  • Powerful Essays

    * Software products may be developed for a particular customer or may be developed for a general market…

    • 1222 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    When later, in 1990s, the WWW ( World Wide Web) was invented, people were able to transfer not only a plain text, but also pictures, sounds, videos, and other files. Since…

    • 1530 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Software engineering is an engineering approach for software development. We can alternatively view it as a systematic collection of past experience. The experience is arranged in the form of methodologies and guidelines. A small program can be written without using software engineering principles. But if one wants to develop a large software product, then software engineering principles are indispensable to achieve a good quality software cost effectively. These definitions can be elaborated with the help of a building construction analogy.…

    • 1197 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    This paper is about my opinions on an article I was asked to read; “Weaving a New Web”, main points in the article are somewhat addressed, I didn’t quite understand what exactly you wanted to me to do, but I did my best.…

    • 620 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    What is Soft Computing ? (adapted from L.A. Zadeh) Lecture 1 What is soft computing Techniques used in soft computing…

    • 728 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Introduction to Computers

    • 1806 Words
    • 8 Pages

    Computer is a processing machine which processes raw data to produce meaningful data. It has tremendous change with comparison to calculator.…

    • 1806 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    add math project

    • 1089 Words
    • 5 Pages

    Body mass index (BMI) is defined as the individual's body mass divided by the square of their height. The formulae universally used in medicine produce a unit of measure of .A frequent use of the BMI is to assess how much an individual's body weight departs from what is normal or desirable for a person of his or her height. The weight excess or deficiency may be accounted for body fat although other factors such as muscularity also affect BMI significantly. Who regards a BMI of less than 18.5 as underweight may indicate malnutrition, eating disorder, or other health problems, while a BMI greater than 25 is considered overweight and above 30 is…

    • 1089 Words
    • 5 Pages
    Good Essays