Difficult Addition
Arjun is trying to add two numbers. Since he has learned addition recently, an addition which requires a carry is difficult for him. Your task is to print Easy if the addition does not involve a carry, Otherwise print Hard.
Input
The first line of input contains two space separated integers A and B.
Output
If the addition does not involve a carry,print Easy, otherwise print Hard.
Explanation
When calculating 229 + 390, we have a carry from the tens digit to the hundreds digit, so the answer is Hard.
Sample Input1
229 390
Sample Output1
Hard
Sample Input2
123456789 9876543218
Sample Output2
Easy
Write A phyton code to read A dataset and print all Features i.e. columns of the dataset. Determine the descriptive statics i.e. maximum, minimum mean median, count, variance, standard deviation etc. of the numeric Features like age, salary, etc. May be present in the dataset.
Write A phyton code to read A dataset and print all Features i.e. columns of the dataset. Determine the descriptive statics i.e. maximum, minimum mean median, count, variance, standard deviation etc. of the numeric Features like age, salary, etc. May be present in the dataset.
Que.Define a class Array with one dimensional array of integers and its size as data members.
Using Visual Studio, create a new Console App project.
Write a program that:
Asks the user to enter the final mark for a module; and
Displays the module result based on the following rules:
0 to 48 (inclusive) means the result is failed;
49 means that the result is passed (condoned);
50 to 73 means that the result is passed;
74 means that the result is distinction (condoned); and
75 to 100 means that the result is distinction.
numbers in string 2 :
if I given string is " I am 25 years and 10 months old " the numbers are 25 , 10 . code should print sum of the numbers 35, avg of the numbers 17.5 in the new line.
but if my input is Anjali25 is python4 the output should be sum of numbers 29 , avg of the numbers 14.5
how to write the program for this input Anjali25 is python4... have to check character by character...
Using Visual Studio, create a new Console App project.
Write a program that:
a. Asks the user to enter the final mark for a module; and
b. Displays the module result based on the following rules:
Instead of forcing the user to enter all of the data at once and displaying all of it, the program will provide menu options that allows user to add new records, delete, update and view all records. It should also provide an option called settings that allows the user to set the grading criteria that will be used in the computation of grades. You may include an additional functionality that allows the user to search a specific record of a student given the student number. A sample menu driven application is given below
Mini Grading System
1. Add New Record
2. Edit Record
3. Delete Record
4. View All
5. Settings
6. Search
7. Exit
Enter your choice:
Let we have 8 nodes in the network. Compare the network performance with different connectivity device's like repeater, hubs, switches, router, bridges and gateway.
Create and Print List -3:
You are given N numbers as input. Create a list and add the N numbers which are given as input and print the list.
The first line of input is an integer N. The next N lines each contain an integer.
Explanation:
In the given example,
N=4 and the numbers are 1, 2, 3, 4. So, the output should be [ 1, 2, 3, 4 ]
Sample Input 1
4
1
2
3
4
Sample Output 1
[1, 2, 3, 4]
Sample Input 2
3
13
21
19
Sample Output 2
[13, 21, 19]
can i get code without using append by using +operator