Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

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.

  • Define a parametrized constructor and a copy constructor to initialize its data members. The parametrized constructor function should accept an array and its size as input parameters.
  • Define a member function to perform operator overloading on the (+)operator to add two objects of the class Array and return a new object of the class Array that contains the sum of corresponding elements of one dimensional array of two objects of class Array.
  • Define a member function void display()to display the object of class Array.

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: 


  1. 0 to 48 (inclusive) means the result is failed;
  2. 49 means that the result is passed (condoned);
  3. 50 to 73 means that the result is passed;
  4. 74 means that the result is distinction (condoned); and
  5. 75 to 100 means that the result is distinction.

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.



Input:

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



LATEST TUTORIALS
APPROVED BY CLIENTS