Introduction To Programming // PART 1: YOUR CODE STARTS AFTER THIS LINE: to complete the exercise.
firstName.middleInitiallastNamefullNameSample Part 1 Output:
John Q. Smith
Write a program that will demonstrate concatenation versus addition. Ask the user to enter two numbers. The program will output the entered numbers, then output the results of concatenating the numbers, and then output the total of the numbers after they have been added together.
In the following pre tag, write the three planning lists based on the verbs and nouns you see in the problem statement.
The List of Input Variables:
The List of Output Variables:
The Process Checklist:
Sample Part 2 Output:
First Number: 10
Second Number: 25
Concatenation: 1025
Addition Total: 35
Write a program that asks a user to enter 4 numbers. Display all entered numbers. Calculate a total by adding the first two numbers and then subtracting the last two numbers. Perform this calculation with one JavaScript statement. Output the total to the page showing all the numbers and the calculations as in the sample output.
In the following pre tag, write the three planning lists based on the verbs and nouns you see in the problem statement.
The List of Input Variables:
The List of Output Variables:
The Process Checklist:
Sample Part 3 Output:
First Number: 50
Second Number: 25
Third Number: 20
Fourth Number: 40
50 + 25 - 20 - 40 = 15