write a c++program ether even or odd
Create a program that will transpose the elements (values) of a 16-element two-
dimensional integer array (4x4) Transpose. The value of each element should be obtained
from the user (or inputs).
For example:
Original Entries Transposed Entries
1 2 3 4 1 5 9 3
5 6 7 8 2 6 0 4
9 0 1 2 3 7 1 5
3 4 5 6 4 8 2 6
write python programming that will do the following
Create a java program that generates elements (randomly from 10 – 75) of a 2-dimensional array
(5x5) using the Random Class then perform the following:
1) Output the array elements
2) Output the sum of prime numbers in the array
3) Output the elements in the main diagonal.
4) Output the sum of the elements below the diagonal.
5) Output the sum of the elements above the diagonal.
6) Output the odd numbers below the diagonal.
7) Output the even numbers above the diagonal.
Write a Python program that retrieves values a, b, and c from the user,
calculates and prints the roots of a quadratic equation for any given values of a, b and c.
Given an array A of N integers and two integers X and Y, find the number of integers in the array that are both less than or equal to X and divisible by Y.
A teacher has taken exam of his students. He has stored marks in a dictionary where keys are the student's name and values are student's marks. Now he wants to know the name of students obtained minimum and maximum marks from this dictionary. You need to write a python function Find-min-max(A) which takes dictionary as input and returns the name of student pair having minimum and maximum marks in the class. If input dictionary is empty return "Invalid Input".
Write a program to take a String as input then display the words in spaced format.
Example:
Enter a String
Asia is the largest continent
Asia
\t is
\t \t the
\t \t \t largest
\t \t \t \t continent
You have to generate electricity bill for a customer with the details as give below: Customer ID, Customer Name, Customer Address, Contact No, Units Consumed, Total payable amount. Following are the norms to calculate the unit amount:
a) for initial 100 units it will cost 6 rupees per unit
b) for next 100 units it will cost 8 rupees per unit
c) for next all units it will cost 10 rupees per unit
Suppose you are planning to go to park so you are going to check tickets criteria online. The
ticket rates details have been given
*If children below 10 are not allowed to swing
*If age is between 10 to 15 allowed to swing and getting 10% discount
*If age is between 15 to 20 allowed to swing and getting 5% discount *If age is more than 20 not then not eligible for swing and discount
The age of person will run until you enter the age of last family member and then calculate the total charge amount after entering each person's age. Assume price of ticket is 100 Rs. each person.