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

The company decided to have their own company website. Select a Domain Name for the company, describe on the processes that needed




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

123456789 9876543218

Sample Output1

Easy


Sample Input2

229 390

Sample Output2

Hard




question: Cards Game


There are M people from 1 to M . Andy has N cards with her. Starting with person Z , he gives the cards one by one to the people in the numbering order. Z, Z+1, Z+2,.....,M, 1, 2,....Z-1. Your task is to output the number of the person who will get the last card.


input 1:- 3 3 2

output 1:- 1

input 2 :- 1 100 1

output 2:- 1


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:

question: Difficult Addition


Arjun is trying to add two numbers. since he has learned addition recently, an addition which requires carry is difficult for him . your task is to print "Easy" if the addition doesn't

involve carry, otherwise print "Hard"


Input 1 :- 229 390

output 1 :- Hard

Input 2 :- 123456789 9876543210

output 2 :- Easy




Write a program that computes the cost of a long distance call. The cost of the call is determined according to .

• A call made between 8 AM and 6 PM is at a rate of 6 rupees per minute.


• A call made before 8 AM or after 6 PM is charged at a rate of 3.75 rupees.


if call starts at any time between 8:00 AM and 6:00 PM, and it ends after 6:00 PM then it will be charged at the rate of 6 rupees per min for the time before 6:00 PM and for rest of time the rate will be 3.75 rupees per min For example if call starts at 5:55 PM and ends at 6:05 PM then charges on this call be 48.75(30 rupees for first 5 mins and 18.75 rupees for rest of the time) if a call starts at time before 8:00 AM but ends after 8:00 AM then it will charged at rate of 3.75 rupees for time before 8:00 AM and for remaining minutes after 8:00 AM the rate will 6 rupees per min. For example if a call starts at 7:49 AM and ends at 8:01 AM the charge on that call will be 47.25 rupees (41.25 for first 11 min and 6 rupees for last min).



Control Structures: As a build-up from the previous question, consider 3 possible scenarios of input: A character, number, or word. Your program should then do the following:

  • In case the input is a character it should indicate if it’s a vowel or not
  • when a number is entered then it’s should check if it’s a prime
  • Finally, if a word is entered the system should check if it’s a palindrome or not.

(use two-dimensional array)A company has four salespeople (1-4) who sell five different products (1-5).each salesperson passes in a slip for each different type of product sold. Each slip contains the following:


a) salesperson number


b) product number


c) total dollar value of that product sold that day


Thus, each salesperson passes in between 0 and 5 sales slips per day. Assume the information from the slips for last month is available. Write a program that will read all information for last month’s sales (one salesperson’s data at a time) and summarize the total sales by salesperson by product. All totals should be stored in the two-dimensional array sales. After processing all the information for last month, print the results in tabular format with each of the columns representing a salesperson and each of the rows representing a product. Cross total each row to get the total sales of each product for last month; each column to get the total sales by salesperson for last month.

  1. Write a shell script to read any file line by line in bash by using loop.

Write C program/ shell script which use few of the system calls directly.


LATEST TUTORIALS
APPROVED BY CLIENTS