Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

State University, Owerri Course Code CSC 443 Department of Computer Science Title: PROGRAMMING USING OOPASCAL (DELPHI) Group2 Assignment Question 4. a) Outline the stages in

image text in transcribed

State University, Owerri Course Code CSC 443 Department of Computer Science Title: PROGRAMMING USING OOPASCAL (DELPHI) Group2 Assignment Question 4. a) Outline the stages in program development. b) Given that the population of Nigeria in 2017 was 120 million and the growing rate is 7 percent. If Nigeria is to maintain her current rate of growth, write a DELPHI program that will determine the first year in which Nigerian population will exceed 180 million. Question 5. a). Explain with examples the following types of control structures in Delphi programming language i. IF THEN ELSE ii. NEXTED IF STATEMENT iii. WHILE LOOPS b). With examples, discuss the differences between the FOR LOOP and the WHILE LOOP. c). Name and show the various symbols use in Delphi as comparison operators. Question 6. a) Discuss the general overview of OOPASCAL language using FUNCTIONS,AVALIABLE CONTROL STRUCTURES, and COMPOUND STATEMENTS. b) An Owerri based stock holder realizes that if he invest N500 in a blue chip company at 6% compound interest annually, the balance the first year will be N530.00 ( N500+N30 interest) and also second year N561.80 ( N530+N31.80 interest). Write a DELPHI program that will determine the first year in which the ending balance will exceed N1000 Question7 . a) By means of flowcharts only, discuss the three control structures in OOPASCAL language b) Experience has shown that the profit from a given sales price J can be expressed in the formula PROFIT =J(200J). Write an OOPASCAL program that will produce the tabular ourput for integer sales prices ranging from N200 to N800 c) What are the limitation of FOR ...LOOP in writing an OOPASCAL program? Question 8 a). Give a brief description of the general overview of a PASCAL programming language using i. program structure ii. Compound statement. b) i. PASCAL is not case sensitive. Explain ii. Under what conditions is the symbol:= used. c) Write an OOP program to determine the volume of a cylinder given that a cylinder volume an be expressed as V=R2H. Note. =3.142 d). Discuss the available control structures in OOPASCAL programming language. Question 9 a) A cashier produces receipt of items purchased in a shop by a customer. Each data group consist of item name, the price of the item, and the quantity of item being purchased. Write a simple OOPASCAL Program to realize this. Note that the cashier is not in position to know in advance the number of different items being purchased, hence it is advisable to use a data terminator "POLYNEK

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago

Question

What Is acidity?

Answered: 1 week ago

Question

Explain the principles of delegation

Answered: 1 week ago

Question

State the importance of motivation

Answered: 1 week ago

Question

Discuss the various steps involved in the process of planning

Answered: 1 week ago