FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
You are designing a computer program that calculates the amount of change a customer should receive. You create a program design document using the following pseudocode to demonstrate the program flow:|item1 = input cost of item 1|item2 = input cost of item 2|item3 = input cost of item 3|total = item1 + item2 + item3|amtPaid = input amount paid|change = ____ Notice the blank at the end of the program. Which expression correctly completes the blank?
A
amtPaid * item1 + item2 + item3
B
item1 + item2 + item3-amtPaid
C
total-amtPaid
D
amtPaid-total
Explanation: 

Detailed explanation-1: -Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is a “text-based” detail (algorithmic) design tool. The rules of Pseudocode are reasonably straightforward. All statements showing “dependency” are to be indented.

Detailed explanation-2: -Definition: Pseudocode is an informal way of programming description that does not require any strict programming language syntax or underlying technology considerations. It is used for creating an outline or a rough draft of a program. Pseudocode summarizes a program’s flow, but excludes underlying details.

Detailed explanation-3: -Pseudocode is sometimes used as a detailed step in the process of developing a program. It allows designers or lead programmers to express the design in great detail and provides programmers a detailed template for the next step of writing code in a specific programming language.

There is 1 question to complete.