Click here to Skip to main content
11,926,805 members (53,776 online)
Rate this:
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 17:31pm
Edited 19-Nov-12 19:42pm
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.
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

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

Solution 1

o boy !! is that an assignment....should look here->
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.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