Bookmark Maker
In this assignment, let's build a Bookmark maker by applying the concepts we learned till now.
Refer to the below image.
Instructions:
Warning
By following the above instructions, achieve the given functionality.
Create a program that will output the multiples of 5. It must start at 0 and show however many numbers the users asks for. In addition, the numbers should output on a new line every time a multiple of 100 is reached.
Prompt:
This program will output the multiples of 5. How many numbers do you want to see? [user types: 42]
Output:
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
105 110 115 120 125 130 135 140 145 150 155 160 165 170 175 180 185 190 195 200
205
Notes and Hints:
1) You can use any type of loop, but there is an obvious choice here.
This is a very short trivia game. See if the user can guess the year that MDC (formerly Dade County Junior College) first started offering classes (1960). If the user guesses incorrectly, ask if they want another attempt. Once the user gets it right, report the number of guesses needed and end the program.
Initial Output:
MDC was originally named Dade County Junior College.
Output (per loop)
In what year were classes first offered? [user types: 1980]
That answer is incorrect. Do you want to try again? [user types: y]
In what year were classes first offered? [user types: 1960]
Your answer is correct! It took you 2 tries to guess it.
Notes and Hints:
1) You can use whatever loop you feel is best
2) You must accept the upper and lower case versions of Y and N in the user's reply
3) The program must end when the user gets it right. Do not ask if they want to continue.
We have talked a bit about how chars are really just ASCII integers. Let's see this in action. We will show the characters starting at ASCII 33 and end with a user-supplied number. Use a for loop to output the characters with two spaces between each.
Prompt:
This program will output the ASCII characters starting at 33
Enter the integer for the last ASCII character you wish to see: [user types: 43]
Output:
! " # $ % & ' ( ) * +
Notes and Hints:
1) You MUST use a FOR LOOP
2) Hint: Which operator from Chp 3 allows us to convert from one data type to another?
3) FYI only: http://www.asciitable.com/
Modify the previous program to use the Do-While Loop instead of the While Loop. This version of the program will ask the user if they wish to enter another name and accept a Y or N answer. Remove the "exit" requirement from before.
Output:
Enter the full name of a person that can serve as a reference: [user types: Bob Smith]
Bob Smith is reference #1
Would you like to enter another name (Y or N)? [user types: y]
Enter the full name of a person that can serve as a reference: [user types: Maria Garcia]
Maria Garcia is reference #2
Would you like to enter another name (Y or N)? [user types: N]
You have a total of 2 references
Notes and Hints:
1) You MUST use a DO-WHILE LOOP
2) You must accept the upper and lower case versions of Y and N in the user's reply
3) Hint: That function you used in the previous problem with have a small issue here. That is because there is a newline (Enter) in the keyboard buffer after the user types Y or N. Do you remember how we ignored that extra newline in Chp 3?
Create a program that will prompt the user to enter the name (first and last) of a person that can serve as a reference for a job application. The name will be confirmed on screen and the prompt will keep appearing until the user types "exit". At the end, the total # of references will be shown.
Output:
Enter the full name of a person that can serve as a reference (type 'exit' to quit): [user types: Arthur Morgan]
Arthur Morgan is reference #1
Enter the name of another person that can serve as a reference (type 'exit' to quit): [user types: Sadie Adler]
Sadie Adler is reference #2
Enter the name of another person that can serve as a reference (type 'exit' to quit): [user types: John Marston]
John Marston is reference #3
Enter the name of another person that can serve as a reference (type 'exit' to quit): [user types: exit]
You have a total of 3 references
Notes and Hints:
1) You MUST use a WHILE LOOP
2) Hint: Remember which function was needed to store a user entry that contained a space? Forgot? Check the Chp 3 outline.
As the network administrator for your organization, you have been tasked to create a new network for newly set up workstations.
a. What network topology will you adopt? Explain your reasons, compare the chosen topology to 2 other topologies, and establish why the one you chose is better than the rest.
b. What type of IP addressing will you use, when assigning IP addresses to the workstations on the network? Explain your answer with practical examples.
c. Assuming your organization recommended that you adopt the star topology, which network device will u use as the central connection point, and why.
Central Hospital has recently acquired and installed five laptops and ultra-modern biometric devices (computer embedded systems). As an IT consultant, you have been invited to do the following to the hospital staff;
a. Identify and explain the machines’ input devices and output devices.
b. Explain how these machines work together to receive inputs, process these inputs, generate output, and store the output onto output devices.
.Atemperature reading in
Fahrenheit degrees is to be read into
the computer and converted into
Celsius degrees, using the formula C =
(5/9)(F –32
2.1 Study the following descriptions and write only the statements to achieve the required
objectives in both algorithm and C++ syntax.
2.1.1 The array called quantity has 20 elements. Write statements that will help in counting
how many of these elements have a value of less than 50. Also determine the sum of
the values that are more than or equal to 50. Display these 2 answers.
2.1.2 The array called itemPrice has 150 elements. Write the statements to determine and
display the highest price. If there is more than one item with this price, the number of
items must also be displayed.