Click here to Skip to main content
15,885,777 members
Please Sign up or sign in to vote.
1.00/5 (7 votes)
See more:
7. Write a program to get a password from the user. Check the user’s password from the internal password that is ‘12345’. If the password is correct, display “you are welcome!” Else allow him to try 3 times. Also, display the number of times he is left with each time he tries. The third time the program exits.

8. Write a program to get marks for 5 subjects and display the following:
• Display the total (total the marks for all 5 subjects)
• Display the average.
• Based on the average marks, display the grade as follows:
1. If the students average is between 0 – 50 = Grade D
2. If the students average is between 51 – 60 = Grade C
3. If the students average is between 61 – 75 = Grade B
4. If the students average is between 76 -100 = Grade A

9. Write a C++ program that receives input for 5 children and prints the names of their teacher inside a loop. (Teachers names are fictitious. So give your own name).

10. Write a program to display the following menu:

• S – Sales
• A – Accounting
• E – Engineering
• H – Human Resource
• F – Finance
1. Based on the user’s selection, display the department name.
• Hint : use Switch…case.
Posted
Updated 19-Nov-12 18:42pm
v2
Comments
Sergey Alexandrovich Kryukov 19-Nov-12 23:48pm    
Total abuse. This is just rude and dishonest. Did you try to lie in the title of the question about "fix my mistake"? Why? Your post is a big mistake.
--SA
stib_markc 20-Nov-12 4:48am    
Your mistakes are : Wrong question, wrong place. Fix : Do something by yourself and then come here if you are stuck at any point.
JackDingler 20-Nov-12 12:15pm    
Nice misleading title.

You have a future in spam authoring...

1 solution

o boy !! is that an assignment....should look here->
[^]
 
Share this answer
 
Comments
JackDingler 20-Nov-12 12:13pm    
My 5!
chandanadhikari 20-Nov-12 21:34pm    
thanks JackDingler

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900