Exercise # 8- Student Number Password Description of the Problem Write a program that inputs your student number and printout your Biography when the student number is correct. Use a Do While / While loop to repeat the process when an incorrect student number is placed. Sample Output Enter your student no. : 29766512 Name : Lastname, Firstname MI Course : [your course here] Favorite (write something here]: [your favorite 1] Favorite [write something here] : [your favorite 2] Favorite quotation : “quotation here" Enter your student no. : 88888888 "Incorrect Student No.!!"
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
Write a C++
is correct. Use a Do While / While loop to repeat the process when an incorrect student number is placed.
![f Facebook
O Exercise-7-Do-While.p x
O Exercise-6-For-Loop- X
Monkeytype
b My Questions | bartleb x
G while inside do while
O File
D:/APPS/Exercise-7-Do-While.pdf
Exercise-7-Do-While.pdf
1 / 1
100%
+
Enter your student no. : 88888888
"Incorrect Student No.!!"
1
Note : Template will not be available for this one. As the code is very short to finish the exercise.
Problem-Solving Tips
1. Prompt the user to input their student number. You will use a single cin statement.
2. Using a do statement to execute outputs and while for conditions.
3. Write a cout statement that outputs the given screen output when condition is met.
4. Be sure to follow the spacing and indentation conventions mentioned in the text.
5. If you have any questions as you proceed, ask your instructor for assistance.
DEV
4:52 PM
P Type here to search
.56
5/4/2021](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb2e65080-8ba9-450e-8941-a8e15afec3fb%2F05b4da9c-a2e8-4339-8ff7-cfbea27eb5c1%2Fh8xxcen_processed.png&w=3840&q=75)
![f Facebook
O Exercise-7-Do-While.p x
O Exercise-6-For-Loop-
Monkeytype
b My Questions | bartleb x
G while inside do while
O File
D:/APPS/Exercise-7-Do-While.pdf
Exercise-7-Do-While.pdf
1 / 1
100%
+
Exercise # 8- Student Number Password
Description of the Problem
Write a program that inputs your student number and printout your Biography when the student number
is correct. Use a Do While / While loop to repeat the process when an incorrect student number is placed.
1
Sample Output
Enter your student no. : 29766512
Name : Lastname, Firstname MI
Course : [your course here]
Favorite [write something here]: [your favorite 1]
Favorite [write something here] : [your favorite 2]
Favorite quotation : "quotation here"
Enter your student no. : 88888888
"Incorrect Student No.!!"
Note : Template will not be available for this one. As the code is very short to finish the exercise.
4:52 PM
P Type here to search
Hi
5/4/2021](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb2e65080-8ba9-450e-8941-a8e15afec3fb%2F05b4da9c-a2e8-4339-8ff7-cfbea27eb5c1%2Fkiudhwg_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)