Consider a square matrix A of size Nx N and an integer X which is an element of A. Find the row number R and column number C of X in A, and calculate the sum of Rand even, find the sum of the digits of all even numbers in the matrix, and if the sum is odd, then find the sum of digits of all odd numbers in the matrix.
Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings while reading the input or while printing, as these contribute to the standard outp
Constraints: 1) 1<N<= 35.
II) 0 <= RC < N.
III) X is always an element of A.
IV) Elements of A are unique.
Write a C program that takes input as name of the end user. Use for loop and print the name entered in the reverse order. 5. Write a program in C that accepts the Id, Name, and Grade of 5 students using any loop. Write a switch case, which should display the description of the grade along with the Id and Name. Description of grade given below in Table 1 Grade Description E Excellent V Very Good G Good A Average F Fail
The program you will develop needs to accept input from a source, run the input through several comparisons, and then calculate an output. You will use variables, assignments, if-else functions, and arrays.
In this scenario, you need to create a program that will take a user's age and determine a ticket price based on their age.
has to be done in .asm // mips assembly code
Create a string that is a long series of words separated by spaces. The string is your own creative choice. It can be names, favorite foods, animals, anything.
I always want to look at the positive side of things, so I decide to seriously look at positive numbers, too!
Will you code along with me?
Instructions:
Input
1. A series of integers
Output
The first multiple lines will contain message prompts to input the integers.
The last line contains the total of all positive integers inputted.
radio_button_unchecked
Test Case 1
expand_less
No Output
Enter n: 2
Enter n: 3
Enter n: 4
Enter n: -1
Enter n: -5
Enter n: 1
Enter n: 0
Total of all positives = 10radio_button_unchecked
Test Case 2
expand_less
No Output
Enter n: 5
Enter n: 5
Enter n: 5
Enter n: 5
Enter n: 5
Enter n: 0
Total of all positives = 25Create an EMPLOYEE class having First Name, Last Name, socialSecurityNumber(SSN). Class SalariedEmployee extends class Employee having weeklySalary as a member. An overloaded method CalculateEarnings to calculate a SalariedEmployee’s earnings. Class HourlyEmployee also extends Employee and have hourlyWage and hoursWorked as data members with overloaded method CalculateEarnings. Class CommissionEmployee having commissionRate and grossSales as data members extends class Employee with overloaded method CalculateEarnings.
In main class make ArrayList of Employees to display:
1)Employee with highest Earning.2)Employee with Lowest Earning.3)Average Earnings of all employees.4)Earning of employees on odd positions.5)Display Earning according to alphabetical order.
A member class has id, name and payment rate. In member class make abstract method: calculateSalary(): that calculates Salary of each member in arraylist. Write another class ContractMember that extends Member
a. Provide a data member contractStart and contractEnd (LocalDateTime)
b. Provide a static constant TAXRATE and initialize it to 0.07
d. Override the method calculateSalary which calculates the salary by finding the number of days between the start and end of the contract and callculating the salary for these days @ of the rate defined earlier. The method then deducts tax from this amount @ the TAXRATE and returns the net payable amount as salary.
Build a class AdHocMember which extends the ContractMember
a. Add an instance variable status (booelan).
b.Provide getter,setter and appropriate constructor. The status of an AdHocMember is true by default
c.Override the calcualteSalary method so that it calculates the salary as done in the ContractEmployee if the status is true and returns 0 otherwise.
write a program to print the ticket numbers of N people in the order in which they will be allowed to enter the garden
declare two variables x and y. assign values to these variables. Number x should be printed only if it is less than 2000 or greater than 3000 and number y should be printed only if it is between 100 and 500
Provide your own examples of the following using Python lists. Create your own examples.
Provide the Python code and output for your program and all your examples.