Question: please ignore the first picture I cannot remove it. Thank you U R e EN Question #1: Display a message (3 pts) Write a complete
U R e EN Question #1: Display a message (3 pts) Write a complete C++ program that displays the following output exactly as in the sample output. You are to use a single cout statement to output the message. There is no need to declare any variables for this question Comp 218/Winter 2021 Poge 2 of 6 Assignment Welcome to COMP 218 C++ Programing! In this course, you will learn: 1. Develop an algorithm for the solution of a word problem. 2. Write a complete CH. program given an algorithe. a. Describe the output of . C++ program written by someone else, 4.Start judging the officiency of a progran. 5. Write a complete program eeeeee Here is the evaluation scheme for this course Assignments - 10N 01 - 2.0N1 2 - 2.ONI --- ON #4 - ON Ters Test - SON 01 - 10N-- 1681 W3 -- 255 Final Ex-369 Please note: No make-up for any testo. Questions #2: New Number (6 pts). Write a complete program that ask the user prompt a number with 6 digits and output the encrypted password. Your program should behave as follow: 1. Display a welcome message. 2. Ask the user for the input number. 3. Use a constant variables to store the value 10 in the program. 4. Display the encrypted number, which is equivalent by 1) Swap the 1st and 6th digits 2) Replace the second digit with the remainder of the second digit divided by 2. 3) Add 1 to the third digit of your input. 4) Replace the fourth digit with the remainder of the third digit divided by 3. 5) Swap the 4th and 5th digits. 5. Display a farewell message, so that the user knows that the program has terminated normally Following are the sample screen shots to illustrate the expected behavior of your program. Assume a perfect user who will always enter a correct input with 6 digits. User Input at the keyboard is marked with a red circle. Note: Your program must display the same information and formatted the same. Welcome to New Number Program Please enter a 6-digits number : 123456 Generating the new number... The new 6-digits number is : 604511 Thank you for using New Number Program! Figure 2 - Sample output #1 for Question 2 Welcome to New Number Program ***** Please enter a 6-digits number : 001231 Generating the new number... The new 6-digits number is : 102320 Thank you for using New Number Program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
