SOLUTION PROBLEM 2


Problem: Provide the result of a search

  • Total of individuals surveyed;
  • Total of men;
  • Total off women;
  • Higher salary;
  • Minor salary;/li>

Sex, salary and name of the interviewees should be included in the report.
At the end (/ * col 1-2) Printing the accurate totals (1 to 5

In case of error (sex is not m or f) print the card and continue.

LAY OUT REVIEW SUGGESTIONS:
Sex Salary Name
x xxx.xxx,xx xxxxxxxxxxxxxxxxxxxx

At the end Selled totals

Mens xxxxxx
Womens xxxxxx
Higher salary xxx.xxx,xx Minor salar xxx.xxx,xx

Card Lay-out:
col 1 = F ou M
col 5-12 = sal (salary)
col 16-35 = name

In this problem, the author suggests a flowchart that can be used or not at the discretion of the programmer.Remember that IPO always starts at address 000The challenge is to develop the program from the .Variables flowchart (identified as memory addresses):
F = total women; M = Total Men
T = F + M
Sal1 <salary; Sal2> Salary

Solution

Failing to complete the program with totals.
Try to make the flowchart and end the test by programming totalization.
Download spreadsheet IPO Coding Sheet.

[pdf id=1430]