Make class BaraBitkaar as described in lecture to represent 16Byte or 128bit numbers. Make three functions as BitKaar of A8 i.e. PrintBinary(), PrintDecimal(), and PrintHexadecimal() respectively. Also make a member function SetValue(char * valuestring), that takes as parameter a 128 character string for example "11111111111100000000000001111111101010100101111111111111111111111111111111111111111111111111111111111011111101110101111101011011" containing the binary representation and sets the value of private members accordingly. Remember there is a member char var[16] which contains the binary value.
Declare the base class circle with attribute radius. Assign the values in default constructor, member functions are getdata() to get input values for data members, develop member function area() to find the area of circle and display() to print the area of circle using multilevel inheritance.
Declare the class Employee, consisting of data members are emp_number and emp_age. Invoke a null constructor Employee() when an object is created, the parameterized constructor Employee(en, eg) to assign values for the data members, show() member function is used to display the information of Employee. Finally free the resources of data objects using destructor member function.
Declare the class Employee, consisting of data members are emp_number, emp_name, department, salary and net_salary. The member functions are GetEmpDetails() to accept information for an employee, Calculate_DA() to calculate DA=20% of salary and display() to display the information of a employee.
Write a function second_last_digit in C++ and call function that print the second last digit of the given number. The second last digit is being referred to the digit in the tens place in the given number.
For example, if the given number is 197, the second last digit is 9.
Note 1 - The second last digit should be returned as a positive number. i.e. if the given number is -197, the second last digit is 9.
Note 2 - If the given number is a single-digit number, then the second last digit does not exist. In such cases, the program should print -1. i.e. if the given number is 5, the second last digit should be print as -1.
Write a program that print the second last digit of the given number. The second last digit is being referred to the digit in the tens place in the given number.
For example, if the given number is 197, the second last digit is 9.
Note 1 - The second last digit should be returned as a positive number. i.e. if the given number is -197, the second last digit is 9.
Note 2 - If the given number is a single-digit number, then the second last digit does not exist. In such cases, the program should print -1. i.e. if the given number is 5, the second last digit should be print as -
Write a program that print the second last digit of the given number. The second last digit is being referred to the digit in the tens place in the given number.
For example, if the given number is 197, the second last digit is 9.
Note 1 - The second last digit should be returned as a positive number. i.e. if the given number is -197, the second last digit is 9.
Note 2 - If the given number is a single-digit number, then the second last digit does not exist. In such cases, the program should print -1. i.e. if the given number is 5, the second last digit should be print as -
Introduction to computer 500
A program is required to calculate wages for employees of network Ltd. using the following formulae i) Basic salary = No of Hours * hourly rate ii) Lunch Allowance = Ksh. 200.00 iii) Gross Salary = Basic Pay + Lunch Allowance iv) Income Tax charged on gross pay as follows: Gross Tax <2000 0% 2001-3000 5% 3001-4000 7% 4001-5000 9% >5000 11% v) Net pay = Gross pay – Tax Hourly rate and lunch allowance are constant values. The number of hours worked should be read from the keyboard. Write a VB.NET program to implement the process.
Using appropriate diagrams, analyses the process flow for recognition evolvement, typically arranged as a hierarchy