Write a python program to print the following output.
Input
The first line of input contains a single line positive integer N.
The second line of input contains a space-separated integers denoting the cost of the item.
Output
The output is a single line integer.
Explanation
For example, Given N = 2 and cost = 10 200
Ram has to pay for both the items, he won't get anything for free.
So the output is 210.
Sample Input1
4
1 1 2 2
Sample Output1
4
Sample Input2
2
10 200
Sample Output2
210
int x = 32 % 4;
int y= 21 / 15;
cout << x < y;
Create a program that will allow user to enter 10 names od teacher A's students to be stored in array name stud_name then display vertically
Create a program that will allow user to enter 10 names od teacher A's students to be stored in array name stud_name then display vertically
Create a program that will store the values 90 88 78 95 in array name Grades, then display horizontally with 5 space each value.
Convert the following IEEE single-precision floating point numbers from hex to decimal:
a. 42F48000
b. CAB00000
c. 00700000
d. 3ABC0000
Create a c++ program that asks the user to input the full name 10 times using for, do while and while loop. Then display.
Construct a c++ program to compute the sum of the digits of the numbers input from the user. Display the number input by the user as well as the sum. Use for loop Control structure.
write a C++ program that gets a number from user. according to given number program should calculate and display the multiplication table of given number as shown as below in the function"void multiplicationTable";
A teacher wants to maintain the attendance for the classroom. After storing the attendance, he wishes to print the details of the top 3 attendance percentage holders. Create a class with the private data members: name (string), roll_no (integer), percent (float). Create a constructor which will initialize name with NULL, roll_no with 0 and percent with 0.0. Public data members: A function get_details() – which will accept all the details from the user, a function show_details() – which will display all the details. Define another function called get_attendance() which will return the attendance of the calling object. Using the get_attendance() function, get the attendance and sort the records in descending order.
Show the details of the top 3 attendance percentage holders by invoking the
show_details() function. Define a destructor which prints “Objects destroyed successfully”.