Create a staff/worker information system using C Struct where you’ll be able to –
a ) Insert staff/worker details with id, name and monthlySalary
b ) Display staff/worker details (searched by id)
c ) Update monthlySalary of a staff/worker
Write a program to overload operators in the same program by writing suitable operator member functions for following set of expressions:
O2=++O1;
O3=O2--;
O4=!O3;
O5=-O4;
[Here O1,O2,O3,O4 and O5 are objects of a class “overloading”, and this class is having one integer data member]
given an integer value N as input write a program to print a shaded diamond of 2 *N -1 rows using an asterisk characters
if the sequence number is 8001 for the SYN flag and sequence number for SYN + ACK is 15000 from server then what is the acknowledgement number for SYN + ACK
15001
8001
8002
15002
A customer opens an account at a bank with an initial amount. The account number, name, and balance of the customer are generated. Write a programme to input data for 5 customers and write into a FILE. Later, display the data of all customers by reading from the FILE
How do you insert a pie chart to represent temperature value in cell B10 to M10
Reducing Fraction to Lowest Term
Create a Python script that will reduce an input fraction to its lowest term.
Program Requirements:
1. Define a function that will check first if the input fraction is a VALID fraction.
2. Define a function that will split a VALID fraction and return a list that consists the numerator and denominator.
3. Define a function that will accept two parameters (numerator and denominator to determine the greatest common divisor.
4. Define a function that will accept two parameters (numerator, denominator) and will return the reduced fraction.
Sample Output:
Input a fraction: 4/6
Reduced fraction is 2/3
Reducing Fraction to Lowest Term
Create a Python script that will reduce an input fraction to its lowest term.
Program Requirements:
Function 1: Function that will check first if the input fraction is a VALID fraction:
Your answer:
Function 2: Function that will split a VALID fraction and return a list that consists the numerator and denominator.
Your answer:
Function 3: Function that will accept two parameters (numerator and denominator) to determine the greatest common divisor
Your answer:
Function 4: Function that will accept two parameters (numerator, denominator) and will return the reduced fraction:
Your answer:
Sample Output 1:
Input a fraction: 4/6
Reduced fraction is 2/3
write c++ code to get following output 0,1,4,9,16,25 (use array)
If (A>B) OR (B<C) then
A = A + C
Else
B = C - A
For x = 1 to 10
A = A + x
Next x
if ((a>=b) AND (b==c)) OR (a<=c) then
a = b + c
else
a = b - c