COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A program is designed to accept the name and price of an item and calculate the total price including GCT of 16.5%.What variables can be used to store the input from the user?
A
name, price, totalprice
B
price and GCT
C
name, price, GCT
D
name and price
Explanation: 

Detailed explanation-1: -The algorithm development phase includes analysis (understanding the problem), proposed solution (logical sequence of solution steps), and testing (following algorithm).

Detailed explanation-2: -Data abstraction is the separation of the logical view of data from its implementation. Procedural abstraction is the separation of the logical view of an action from its implementation.

There is 1 question to complete.