You require an algorithm that will receive an integer from the screen, add 5 to it, double it, subtract 7 from it, and display the final number on the screen.
Need help with the input, output, and processing. Also with the solution algorithym.
2 answers
Answer
I'm looking for the answer too but I'm not sure if it's correct or not
BEGIN
PROMPT INT1
READ INT1
SUM=INT1+5
PRODUCT=2*(INT1+5)
DIFFRENCE=7-2*(INT1+5)
TOTAL=7-2*(INT1+5)
DISPLAY TOTAL
END
BEGIN
PROMPT INT1
READ INT1
SUM=INT1+5
PRODUCT=2*(INT1+5)
DIFFRENCE=7-2*(INT1+5)
TOTAL=7-2*(INT1+5)
DISPLAY TOTAL
END