Now suppose you are working in an XYZ organization as a C++ developer. Currently, the HR department of the organization is recruiting people for a vacant position in the organization. Software Team of the Organization assigns you the task of developing an application to keep track of the number and records of applicants who have applied for the post. Now keeping in mind that organization has limited number of computational resources available to them, being a C++ developer which type of memory allocation technique (Static or Dynamic) you will be using in this case? Justify your answer with valid reason in either case.
Senerio:
ATM (Automated Teller Machine) machines are electronic outlets that allow customers to do their basic transactions without interaction of bank’s representative. While programming this ATM in C++, We have created a class named CUSTOMER which stores customer data (i.e. name, NIC, age, address, account balance and transaction history etc.). There is a friend function that wants to access some private information of the class.
Question:
Being a C++ developer, analyze the whole scenario, what do you think, does a friend function contradict the rules of Encapsulation?
Give your opinion in yes or no with strong reasons.
Faisalabad Electric Supply Company (FESCO) distributes and supplies electricity to about 4.50 million customers within its territory with a population over 26 million under a distribution license granted by National Electric Power Regulatory Authority (NEPRA). The main determinant of electricity bill in Pakistan is the number of units consumed. Usually, electricity companies charge different prices as per kilowatt hour (kWh) to residential users, small commercial users and industrial companies etc according to the units consumed. For example, the approximate schedule of electricity tariffs for residential users is 5.79 Rs/kWh for 001-100 units, 8.11 Rs/kWh for 101-200 units, 10.20 Rs/kWh for 201-300 units, 17.60 Rs/kWh for 301-700 units, and 20.70 Rs/kWh for above 700 units. For commercial users, the approximate schedule of electricity tariffs is 18 Rs/kWh for sanctioned load less than 5 kW and 19.68 Rs/kWh for sanctioned load 5 kW and above. Similarly, for industrial users, the schedule of electricity charges is different. Being a student of managerial economics, analyze the above case study carefully and identify which type of price discrimination is discussed in above case study. Also discuss the reason logically.
Question No. 01
Write a program that input numbers from the user until user press “E”. Program should display total number of positive and negative numbers entered.
Draw and explain the interfacing of 256x8 ROM with 8085
Write a menu driven program for the following operations on 2-d array of 3*3 elements:
a) sort the data row wise
b) sum of diagonals
c) sum of elements except diagonals
d) transpose the matrix
e) multiplication of matrix
f) additon of matrix
g) display perfect numbers of each column
h) display prime numbers of each row
i) display max digit of each row
j) sort the data column wise
Write a menu driven program for the following operations on array for 10 elements(using class using class concept)
a) display max number from the array
b) display min number from the array
c) display sec max number from the array
d) display sec min number from the array
e) sort the data
f) search the data
g) display count of prime numbers
h) display count of perfect numbers
i) display max digit from each number
j) display sum of digits upto one digit for each number
1. Explain the term Computer Virus.
2. Give five (5) examples of antivirus applications.
3. Mention four (4) instances of how Computer Viruses are spread.
4. State three symptoms of Computer Viruses.
a) Why the business organization choose computer network for its employee computers? List down the different topologies which are used for computer networks. Is MAC address responsible for communication among computers within same LAN.
b) If a computer manufacturer called Apex created a home page for the Web, what would its URL likely be? Also, provide appropriate e-mail address for yourself, assuming that you are employed by that company.
c) What factors made Pakistan Telecommunication Company Limited (PTCL) to convert its network from circuit switching to packet switching?
d) The ubiquitous nature of mobile phones today brings tremendous convenience to our lives, but misuse of new improvements to this technology result in the loss of that convenience and other problems? Justify this statement.
Question No. 01
Write a program that input numbers from the user until user press “E”. Program should display total number of positive and negative numbers entered.