Click here to Skip to main content
11,705,098 members (45,568 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++
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 19-Nov-12 16:31pm
Edited 19-Nov-12 18:42pm
Sergey Alexandrovich Kryukov at 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.
stib_markc at 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 at 20-Nov-12 12:15pm
Nice misleading title.

You have a future in spam authoring...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

o boy !! is that an assignment....should look here->
JackDingler at 20-Nov-12 12:13pm
My 5!
chandanadhikari at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 595
1 OriginalGriff 289
2 Andy Lanng 175
3 CPallini 162
4 ppolymorphe 126
0 OriginalGriff 8,958
1 Sergey Alexandrovich Kryukov 8,276
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100