rss
twitter
    Find out what You Want :)
Home    Downloads    Corner    Market    News sites    About Us

Thursday, October 27

Cs 201 Assignment #01 Solution

CS 201 Assignment # 01 Solution
Fall October/2011
Problem Statement: Virtual Restaurant 
You are required to write a program for BILLING SYSTEM of a virtual restaurant. The basic idea is that by entering the meal price, your billing system will calculate the Sales Tax, Total amount and Complement offer upon that meal. The program will process the billing of undetermined number for customers. At the end, program will show sum of total amount of all the customers. 

Detailed Description:
Billing System should work as under: 

> You are required to take meal price as input from user. 
> After getting this input, program will calculate the sales tax on it as given below: 

Meal Price Sales Tax applicable 
Less than or equal to 1000 No sales Tax on it. 
Greater than 1000 and less than or equal to 2000 1% of meal price. 
Greater than 2000 2% of meal price.

> After calculating the sales tax, program will calculate and display the total amount of the meal according to given formula: 
Total Amount = Meal_Price + Sales_Tax 
> Now, program will prompt to serve the complement sweet dish to customer on the basis of total amount as given below:

Total Amount Sweet Dishes
Less than 1000 Candies
Greater than or equal to 1000 and less than 2000 Sweet Bread
Greater than or equal to 2000 and less than 3000 Pudding
Greater than or equal to 3000 and less than 4000 Cake
Other amounts Trifle

> After displaying the information of one customer, the program should ask the user if he/she again wants to process the bill of another customer. The user will be given two options. If user selects "Y or y", the program will start the processing of another customer. If user selects "N or n", the billing system exits.

> Before exiting from billing system, this program should display the total number of customers it processed, and sum of total amount of all the customers.

You are required to write a program for BILLING SYSTEM of a virtual restaurant. The basic idea is that by entering the meal price, your billing system will calculate the Sales Tax, Total amount and Complement offer upon that meal. 

Solution:-

#include
#include
int main()
{
int price; 
cout << "Please enter meal price? ";
cin >> price;
float saleTax;
if(price<=100)
{
saleTax = 0.0 * price;
}
else if(price <= 200)
{
saleTax = 0.1 * price; 
}
else
{
saleTax = 0.2 * price;

int totalAmount;
totalAmount = price + saleTax; 
cout << "The total price of Meal is = " << totalAmount << endl;
getch(); 
}

Cs101 Assignment #01 Solution

Cs101 Assignment #01 Solution
Fall October/2011
Q.1. There are multiple ways to enhance the performance of a computer system. Discuss what role a cache can play in boosting up the performance of a computer system? (5 Marks)

Answer:
A CPU cache is a cache used by the central processing unit of a computer to reduce the average time to access memory it is different as compare to the main memory which is used to copy data from the secondary storage it store the data inside the page file and then take it from there as compare to cache memory it exists inside the CPU and directly gives the data to cpu to process the instructions lets see a figure which will make it more clear. The cache is a smaller, faster memory which stores copies of the data from the most frequently used main memory locations. As long as most memory accesses are cached memory locations, the average latency of memory accesses will be closer to the cache latency than to the latency of main memory. It is Volatile memory, also known as volatile storage, (FutureBlog) is computer memory that requires power to maintain the stored information,When the processor needs to read from or write to a location in main memory, it first checks whether a copy of that data is in the cache. If so, the processor immediately reads from or writes to the cache, which is much faster than reading from or writing to main memory. Most modern desktop and server CPU's have at least three independent caches: an instruction cache to speed up executable instruction fetch, a data cache to speed up data fetch and store, and a translation [Future Blog] look-aside buffer (TLB) used to speed up virtual-to-physical address translation for both executable instructions and data. Data cache is usually organized as a hierarchy of more cache levels which are L1 and L2 etc.

Q.2. Generally there is a concept that “Memory” and “Storage” are same terms. Do you agree? Justify your opinion with a real life example. (5 Marks)

Answer:-
AS we know nowadays these are very common terms which we use in our daily life so for that you called mostly the Ram as the memory of the system and the Storage device which is called the hard disk or Flash (USB) memory or can be a memory card. So what’s the difference between them lets see it in real life that in Memory which is Volatile (FutureBlog) and need powers to maintain if the electricity is off then it is going to wash each and everything. As compare to the Storage Non-Volatile memory which doesn’t need the power all the time when the data is store to it and power went off next time you can see the data inside it. As we can see a new functions which start from the XP Windows Os from Microsoft. Hibernate it store the data to the hard drive from the Memory You can say the Memory to storage when you hibernate the system it will open next time all the files and applications where you were working. So it’s an example from real life.

Q3).Convert the following Octal Number to Hexadecimal Number by writing each and every step of conversion process: (5 Marks) (53324)8 => (?)16
 

Answer:-
First we will convert this to binary to decimal
 
Another Solution

Q.1. There are multiple ways to enhance the performance of a computer system. Discuss what role a cache can play in boosting up the performance of a computer system? (5 Marks)

Answer:-
Cache memory is random access memory RAM that a computer microprocessor can access more quickly than it can access regular RAM. As the microprocessor processes data, it looks first in the cache memory and if it finds the data there (from a previous reading of data), it does not have to do the more time-consuming reading of data from larger memory.


Q.2. Generally there is a concept that “Memory” and “Storage” are same terms. Do you agree? Justify your opinion with a real life example. (5 Marks)

Answer:- 
The term memory refers to the amount of RAM installed in the computer, whereas the term storage refers to the capacity of the computer’s hard disk. To clarify this common mix-up, it helps to compare your computer to an office that contains a desk and a file cabinet.
The file cabinet represents the computer's hard disk, which provides storage for all the files and information you need in your office. When you come in to work, you take out the files you need from storage and put them on your desk for easy access while you work on them. The desk is like memory in the computer: it holds the information and data you need to have handy while you're working.

Saturday, October 22

Mgt 502 Assignment # 01 Solution

Mgt502 Organizational Behavior

Assignment No. 1 Fall 2011 solution

“Attitudes at Workplace”

Mr. Asim works in a Software company “Soft Solutions”. After spending a year in the organization, he experienced that the management is biased; the promotions are mostly on the basis of personal choices and favoritism. It caused dissatisfaction to him that's why he decided to discuss this issue with the superiors. He met higher management and described all his reservations in this regard. He also suggested some improvements in the annual evaluation process and the promotion criteria. After a year, despite his hard work, best performance and punctuality; colleagues junior to him were promoted with increments and he was retained on the same position. He realized that the situation is not going to improve. So he decided to leave the Company and thus resigned.

Looking at the above scenario, answer the questions below:

Question No.1:
Which methods of expressing dissatisfaction have been used by Mr. Asim? (5+5)

Question No.2:
What are the other ways Mr. Asim could have used to express his dissatisfaction and what would have been the impact of that decision on his work related attitudes? (5+5)

Important Tips
1. This Assignment can be best attempted from the knowledge acquired after watching video lecture no. 1 to lecture no.09 and reading handouts as well as recommended text book.

Solution:

Question No.1:

Which methods of expressing dissatisfaction have been used by Mr. Asim? (5+5)



Answer:

Following Two Methods of Expressing Dissatisfaction have been used by the Mr. Asim:



1. Voice Method

Mr. Asim actively and constructively attempting to improve conditions, He met higher management and described all his reservations in this regard. He also suggested some improvements in the annual evaluation process and the promotion criteria.



2. Exit

Mr. Asim Behavior directed toward leaving the organization, and thus resigned because He realized that the situation is not going to improve.



Question No.2:

What are the other ways Mr. Asim could have used to express his dissatisfaction and what would have been the impact of that decision on his work related attitudes?



Employees respond to job dissatisfaction in one of the four ways.

1. Exit

2. Voice

3. Loyalty

4. Neglect



According to above He can use following two other ways to express his dissatisfaction:



1. Loyalty

Mr. Asim remain with the organization but response passively to his job dissatisfaction by accepting the status quo with-out raising any objections or making any suggestions for improvement but optimistically waiting for conditions to improve, including standing up for the organization in the face of external criticism/ crisis, and reposing trust in the organization



Impact of that decision



Management takes the right decisions and set things in order:



2. Neglect

Mr. Asim may remain in the organization and exhibit passive withdrawal behaviors such as putting forth less effort.



Impact of that decision

He will be promoted with increments

HRM 624 GDB # 1 Solution

HRM624 - Conflict Management

GDB No#1 Solution

 
Total Marks 20
Starting Date Friday, October 21, 2011
Closing Date Tuesday, October 25, 2011
Status Open

Discussion Question (GDB – 1)
Consider you are walking alongside a road where you see a fender bender. Both the drivers have developed a conflict on this issue and none of them is ready to accept his mistake. Both of them are talking about litigation and that even in a harsh tone. 

As a student of conflict management, you are well aware about the techniques of Alternate Dispute Resolution (ADR). Which technique of ADR do you think would be more suitable in this situation to resolve the matter on the spot? Discuss with solid reasons.

Solution:
I suggest that meditation will be most suitable ADR technique to resolve conflict between Fender Bender because it is a voluntary and confidential process in which neutral third party help in discussing difficult issue, developing options, negotiating an agreement and formalizing agreement. According to above scenario, Fender Bender is much annoyed with each other and talk in a harsh tone so for this purpose there will be a need of mediator who helps while resolving problem. The mediator can be any person like police or any other person who play neutral rule, talk for penalty etc and helps both parties for creating their own solution.

.......
it can b mediator n may b conciliation also because thy are getting harsh so here we should use conciliation.When the parties are too angry to speak with each other, a conciliator may be all that is needed.

Mgmt 611 GDB Idea Solution

Mgmt 611 Solution

GDB No#1

GDB:
Suppose you are working as a manager in multinational company and dealing with different working groups and teams successfully. You notice that Ahmed, one of your subordinates, performs well in team and displays his full energy for achieving goals but whenever he is assigned any task to get completed independently within specific time frame, he becomes hesitant, tries to avoid that task and becomes stressed out. Being a good mentor, what do you think why he shows such withdrawing behaviors in spite of performing well and which technique or tool you would use to control his stress and booming his potential to work independently?

Solution:
There is a lack of confidence in Mr. Ahmed so he is unable to perform well independently. Organization has certain expectation from Mr. Ahmed that he can perform better in team work so he will also completed tasks independently and all focus and concentration move towards Mr. Ahmed. Mr. Ahmed feels hesitation and loses its self confidence due to organizational demand.
 
Tool used for controlling stress:

Self Awareness:


With the help of this tool Mr. Ahmed can motivate itself and booming its potential to work independently. Self Awareness basically creates awareness about you. It tells how you judge yourself like your capabilities, skills, strength, leadership qualities and your weak areas. On the basis of this analysis you can motivate yourself and accomplish tasks in a better way.

Friday, July 1

ENG 201 Assignment# 4 Solution


Eng201 Assignment#4
Solution

Q1: As a Marketing Manager of Martini Cola, you have to introduce your latest soft drink to the Cafeteria Administration, University of the Punjab, Lahore. You have to make use of at least THREE Visual Aids to reinforce your viewpoint. What sort of Visual aids will you employ to make your presentation more persuasive? Give at least three reasons for selecting these aids.

1. Table

Reason
The table is one of the most versatile and widely used visual aids. Tables are used so often because they can help writers achieve several common objectives. For Example they are an excellent tool for groups of detailed facts in a concise and readable form

2. Pie Charts

Reason

Pie charts are unsurpassed in their ability to depict the composition of a whole. FOr example to show how much each of several food sources contributes to the total amount of dietary fat consumed by the average people.

3. Photographs

Reason

With a photograph, you can show your readers exactly what they would see if they personally were to look at an object. Photographs can help you achieve a variety of communication purpose such as
To show the appearance of some thing the readers have never seen
To show the condition of something
To help the readers recognize something
To help your audience find something

Q2: Choose the correct option for the given statements or questions. (5)

1. The conversion of verbs or adjectives into nouns is termed as:
a) Wordiness
b) Nominalization
c) Inflection
d) None of the above

2. Choose the option that best describes the given statement:
The air conditioner is too loud, Ali can't sleep.
a) Sentence fragment
b) Comma splice
c) Fused sentence
d) Run- on sentence

3. Which of the following is not the usage of the Colon?

a) To express ratios
b) To separate titles from subtitles
c) To clarify the meaning of certain words
d) To introduce and emphasize lists, quotations and explanations.

4. Which of the following statements is NOT correct?

a) Use a comma after an introductory clause or phrase.
b) Use a comma between all items in a series.
c) Do not use a comma between multiple adjectives.
d) Do not use a comma between cumulative adjectives.

5. Which one of the following is NOT a sentence-ending punctuation mark?
a) Full stop
b) Question mark
c) Exclamation mark
d) Colon

Tuesday, May 31

ECO 403 GDB Solution

ECO 403 GDB Solution
Semester 2011

Unemployment is an economic problem as well as a social issue.
It affects the living of all the people in a society whether they are
young or old, educated or uneducated, skilled or unskilled. Why
unemployment is increasing day by day in Pakistan? Write down at
least one reason.

Answer:

Unemployment is increasing day by day in Pakistan due to many
reasons. Reasons are job search and wage rigidity in the country.

*Job search:
1. Workers have different abilities and preferences.
2. Jobs have different skill requirements.
3. Geographic mobility of workers.
4. Flow of information is imperfect.

*Wage rigidity:
1. Minimum wage laws.
2. Labor unions.
3. Efficiency wages.

  • Sectoral shifts.
  • Unemployment insurance (This is for European countries)

Discus Your Study Problems Here

Is This Blog Is Useful For You?

Face Book Fans