Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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.

  • The standard ticket price is $10.00.
  • Minors (those under the age of 18) will pay $1.00 less than the standard ticket price.
  • Seniors (those over the age of 65) will receive a 15% discount.

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:

  1. Using the do…while() loop, continuously scan for integers, but add up only all the positive integers and store the total in one variable.
  2. The loop shall only be terminated when the inputted integer is zero. Afterwards, print out the total of all inputted positive integers.

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

Your Output

No Output

Expected 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 = 10

radio_button_unchecked

Test Case 2

expand_less

Your Output

No Output

Expected Output

Enter n: 5
Enter n: 5
Enter n: 5
Enter n: 5
Enter n: 5
Enter n: 0
Total of all positives = 25




Create 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. 

  • Nested lists 
  • The “*” operator 
  • List slices 
  • The “+=” operator 
  • A list filter 
  • A list operation that is legal but does the "wrong" thing, not what the programmer expects 

Provide the Python code and output for your program and all your examples. 


LATEST TUTORIALS
APPROVED BY CLIENTS