Friday, 16 November 2012

Enter Marks and Get Grade.


#include <iostream>
using namespace std;
int main()
{
int marks;
char grade;
cout << "Enter your test Score: ";
cin >> marks;
if (marks > 80 && marks < 100)
grade='A';
else if (marks > 70 && marks < 80)
grade='B';
else if (marks > 60 && marks < 70)
grade='C';
else
grade='F';
cout << "Your Grade is: " <<grade<<endl;
return 0;
}

Be a Compiler and Evaluate the following Logical Boolean expressions:

          25 < 7 || 15 > 36
          15 > 36 || 3 < 7
          14 > 7 && 5 <= 5
          4 > 3 && 17 <= 7
          ! false
          ! (13 != 7)
          9 != 7 && ! 0
          5 > && 7

Logical Operators


Logical Operators:

There are following logical operators supported by C++ language
Assume variable A holds 1 and variable B holds 0 then:
Operator               Description      Example
&& Called Logical AND operator. If both the operands are non zero then condition becomes true.         (A && B) is false.
||Called Logical OR Operator. If any of the two operands is non zero then condition becomes true.         (A || B) is true.
!Called Logical NOT Operator. Use to reverses the logical state of its operand. If a condition is true then Logical NOT operator will make false.          !(A && B) is true.

Calculate the Bonus and get Net Salary.


#include<iostream>
using namespace std;
int main()
{
double salary,convince_allownce,house_rent,net_salary;
house_rent=0;
convince_allownce=0;
cout << "Please Enter Your Salary: ";
cin >> salary;
if (salary > 15000)
{
house_rent=(salary/100)*50;
convince_allownce=(salary/100)*15;
}
else if (salary > 10000)
{
house_rent=(salary/100)*30;
convince_allownce=(salary/100)*10;
}
else if (salary > 8000)
{
house_rent=(salary/100)*15;
convince_allownce=(salary/100)*5;
}
else
{
cout << "No Bonus!!!!!"<<endl;

}
net_salary= convince_allownce + house_rent + salary;
cout << "Your Convince allownce is: " << convince_allownce <<endl;
cout << "Your House Allownce is: " << house_rent <<endl;
cout << "Your Net Salary is: " << net_salary <<endl;
return 0;
}

Disadvantages of Computer System


Disadvantages of Computer:

Health Risks:


              Prolonged and improper computer use can load to injuries or disorder of hands, wrists, elbows,eyes, neck and back. Computer users can protect themselves from these health risks through proper workplace design, good posture while at computer and appropriate spaced work breaks.

Violation of Privacy:

              Nearly every life event is stored in a computer somewhere. In medical records, Credit reports, Tax records, etc. In many instance, where personal records were not protected properly, individuals have found their privacy violated and identities stolen.

Public Safety:

           Adults,teens and children around the world are using computers to share publicly their photos,videos,journals,music and other personal information. Some of these unsuspecting, innocent computer users have fallen victims to crime committed by dangerous strangers.

Impact on Environment:

             When computers are discarded in landfills, they release toxic materials and potentially dangerous level of Lead(pb), Mercury(hg), and flame retardants.

Immorality:

            Last few years immorality in our society have been increased due to computer and internet. Youngster spent a lot much time on net browsing and exploring irrelevant things on internet. And Specially in our country this thing became at very large scale. And in browsing immoral websites, in last ranking our country is on the top of the list.

Advantages of Computer System

Advantages in Business Field:

Multitasking:

                    The modern multimedia options enable entrepreneurs to work various tasks all at the same time. Workers in the offices can use the DVD-ROM while installing Printer Cartridges  and running a scan thus making workload easier and more convenient. With such, the need for an outsourcing company would not be essential because all the tasks can be addressed by majority of the manpower available.

Cost-effective:

                      These computers have allowed companies to cut costs on payroll and individual office equipment. Because of the efficient and fast outputs coupled with less expenditures on operations, revenues are then maximized  Good examples for this benefit are the email messaging that lessens postage costs and video conferencing that decreases travel allowances for employees.

Increased access to the market:

                      Because of the Internet, businesses have opened their doors to various opportunities all around the globe. For those selling goods, then customers can readily purchase them over the Web thus resulting to an increase in the sales of the firm. Also, advertising strategies are well utilized because by just simply posting a good multimedia scheme over the Web, firms can readily maximize their marketing plans.

Organisation:

            Different types of software are utilized to store a wide array of documents that must be kept confidential for years. With the help of computers, storage and retrieval of files are easily done with just a click of the mouse.

Some other Benefits:

             Those are the benefits that businesses are enjoying from the various innovations in computers now. Further, here are the societal advantages.

Education edge:

                   Nowadays, PC's enable students to search from a wide range of online resources. Hence, they can save time on looking for the best Internet source that can answer each of the queries. Instead of spending so much time looking for books, then this could answer the worries for students who want to hasten their tasks. Also, a new trend in education is online teaching. Through the Web, people can freely enroll in a specific course provided that you get to pay the fees on the specified date. This scheme can be very helpful for individuals who want to get a degree yet are to busy to get into the usual classroom setting.

Communication benefit:

                   Social networking sites, chat, and video conferencing sites are accessible because of computers. People across the globe can now talk to their loved ones in real time with the help of these gadgets. What is good about this communication option is that it is more cost effective than the usual telephone. By embracing such, people can now deliver messages and create a copy of that using quality printer cartridges in just a second.

Job opportunities:

                   These gadgets open up a wide array of workload for people. That is, experts are needed in software and hardware maintenance and checks. With the increasing demand for these professionals, unemployment is then lessened at a considerable percentage.

Home Entertainment:

                     During weekends, you may utilize your personal computer to watch films using its DVD-ROM. Aside from this, you may as well play games all throughout the day. You can simply install a variety of files that you can use for the whole day of indoor fun. From the latest TV shows to the more modern games, you can have them in your CPU just minutes.

These are some advantages of computer in our life. But there are lot much advantages of computer system in our lives. We are becoming dependent on computer due it's immense  speed and accuracy. If we continue trusting on computer then the time will come when people will become free and robots will work under the custody of Human Being.

Difference Between WiFi and WiMAX?


Wi-Fi:

Wifi (or WiFi) is a popular technology that allows an electronic device to exchange data wirelessly (using radio waves) over a computer network, including high-speed Internet connections. The Wi-Fi Alliance defines Wi-Fi as any "wireless local area network (WLAN) products that are based on the Institute of Electrical and Electronics Engineers' (IEEE) 802.11 standards". However, since most modern WLANs are based on these standards, the term "Wi-Fi" is used in general English as a synonym for "WLAN".
A device that can use Wi-Fi (such as a personal computer, video-game console,smartphone, tablet, or digital audio player) can connect to a network resource such as the Internet via a wireless network access point. Such an access point (or hotspot) has a range of about 20 meters (65 feet) indoors and a greater range outdoors. Hotspot coverage can comprise an area as small as a single room with walls that block radio waves or as large as many square miles — this is achieved by using multiple overlapping access points. The Wi-Fi Alliance has since updated its test plan and certification program to ensure all newly certified devices resist brute-force AP PIN attacks.



WiMAX:

WiMAX (Worldwide Interoperability for Microwave Access) is a wireless communications standard designed to provide 30 to 40 megabit-per-second data rates, with the 2011 update providing up to 1 Gbit/s for fixed stations. The name "WiMAX" was created by the WiMAX Forum, which was formed in June 2001 to promote conformity and interoperability of the standard. The forum describes WiMAX as "a standards-based technology enabling the delivery of last mile wireless broadband access as an alternative to cable and DSL"
The bandwidth and range of WiMAX make it suitable for the following potential applications:
  • Providing portable mobile broadband connectivity across cities and countries through a variety of devices.
  • Providing a wireless alternative to cable and digital subscriber line (DSL) for "last mile" broadband access.
  • Providing data, telecommunications (VoIP) and IPTV services.
  • Providing a source of Internet connectivity as part of a business continuity plan.
  • Smart grids and metering