if a five-digit number is input through the keyboard, draw a flowchart to print code a as 1st three digits and code b as last two digits. example: input: 12345 code a: 123 code b:45
You visit a shop to get your assignment typed and printed. WAP to calculate bill of a job work based on following rates.
Rate of typing is Rs. 3/- per page
Printing of fist copy if Rs. 5/- per page and later every copy Rs. 3/- per page.
User should enter the number of pages in assignment and no. of print out copies your group want.
Sometimes we want some part of our code to be executed more than once. We can repeat the code in our program. For example, we need to display our name for a hundred or more times it is not practical to write the same code. Which concept will be used? Explain it with the help of suitable example
v> Write a Java programme (named EmployeePay.java) that calculates the weekly
pay for each of your employees based on the total number of hours they have
worked in a week using the following guidelines.
•
All employees are paid a regular hourly rate of some amount. (Determine
that amount in Ghana cedis)
•
Indicate the number of regular working hours for all employees in a week
•
Some employees occasionally work overtime and are supposed to be paid for
the hours they have worked overtime. (Determine the overtime hourly rate in
Ghana cedis. Note: Overtime hourly rate should be more than the regular
hourly rate).
•
Employees can however only do a maximum of 2 overtime hours each day
v> Write a Java programme (named EmployeePay.java) that calculates the weekly
pay for each of your employees based on the total number of hours they have
worked in a week using the following guidelines.
•
All employees are paid a regular hourly rate of some amount. (Determine
that amount in Ghana cedis)
•
Indicate the number of regular working hours for all employees in a week
•
Some employees occasionally work overtime and are supposed to be paid for
the hours they have worked overtime. (Determine the overtime hourly rate in
Ghana cedis. Note: Overtime hourly rate should be more than the regular
hourly rate).
•
Employees can however only do a maximum of 2 overtime hours each day.
Your programme should work as follows:
i. Create data fields (variables) of the appropriate data types to store all the
variables you will use
ii. When the programme runs, prompt an employee to enter the total
number of hours he/she has worked for the week.
[Binary search and overflow] Write a C program with a function that performs binary
search. Assume that the elements of the array are unsigned integers, and the following
elements are present along with other elements in the array: 4294967290, 4294967295,
10400.
Write a bash script that takes two arguments as command-line arguments for the above arithmetic operations (add, sub, mul, div and exp). The first argument should be the name of the operations, ie. -- ‘add’, ‘sub’, ‘div’, and ‘exp’. The subsequent arguments should be two (or more) operands. Thus, depending upon the operations requested, you may call the appropriate function (bash subroutine), which should perform the corresponding arithmetic operation, using the supplied arguments.
Write a program that will create 2 two-dimensional arrays then compares the content of each array location.. The program should create a third 2-dimensional array that displays the result of the comparison as either less than (<), greater than (>) or equal n(=).
Write a program that will enter integers into the array then search for an element inside the array. The program should tell the location where the element was found. The user will be the one to determine the number of integers to be entered into the array.
Question: program that will create 2 one-dimensional arrays then performs multiplication of integers entered into the array. Find the sum of all integers in Array 1, Array 2 and the sum of all products. The number of integers to be entered shall be determined by the user.