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

Unite Family (*inputs must be from keyboard.its user choice.)


Given three objects


father, mother, and child, write a JS program to concatenate all the objects into the family object using the spread operator.Input

  • The first line of input contains an object father
  • The second line of input contains an object mother
  • The third line of input contains an object child

Output

  • The output should be a single line string with the appropriate statement as shown in sample outputs

Constraints

  • Keys of the objects should be given in quotes


Sample Input

{'surname' : 'Jones', 'city': 'Los Angeles'}

{'dish': 'puddings'}

{'pet': 'Peter'}


Sample Output

Mr and Mrs Jones went to a picnic in Los Angeles with a boy and a pet Peter. Mrs Jones made a special dish "puddings"



Write a program that will sort a list of strings (names of person) enter by the user given the value of names.


Write a c++ program find the which data is greater than given data ( assume the 2 data in one Singal year only, consider leap year also as an input)

A. Define a class called day with member as date , month, year

B. Define a parametized constructor to initized the data

C. Overload>opertor using member function to check if data 1>data2.

D. Write a show _data function to show the data in dd:yyyy found


A local zoo wants to keep track of how many pounds of food each animal eats each day during a typical week. Write a program that stores this information in a two-dimensional 3 × 4 array, where each row represents a different animal and each column represents a different day of the week. The program should first have the user input the species and then the data for each animal. Then it should create a report that includes the following information:


Input Validation: Do not accept negative numbers for pounds of food eaten.

 


 

  1. Desk Check 
  • Include at least three detailed desk check

 


Create a function:

• Get food eaten

• The least amount of food eaten during the week by any one monkey.

• The greatest amount of food eaten during the week by any one monkey


Input Validation:

  • Do not accept negative numbers for pounds of food eaten.
  • Allow user to repeat
  • Format output to two decimal places

 


 

Expected Output

Check each Mimir test case for expect output

 


Program to print the Fibonacci numbers using recursion.


A set of numbers is stored in a file named numbers.txt. Write a program to copy all odd numbers to another file called odd.txt and all even numbers to a file called even.txt.

 


Write a program that asks the user to enter a filename followed by a command. If the user enters the command “print”, your program should print the contents of the file to the console exactly as it appears in the file. If the user enters the command “double”, your program should read each number contained in the file and print the number doubled to a separate line on the console.

 

Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example, the square matrix m is shown below:

1 2 3

4 5 6

7 8 9

The left-to-right diagonal = 1 + 5 + 9 = 15. The right to left diagonal = 3 + 5 + 7 =15. Their absolute difference is |15 – 15| = 0


Sample Input

3

11 2 4

4 5 6

10 8 12


Sample output

17


Note: The number 3 on the first line of input represent the dimension of the square matrix. In this case, it’s a 3 x 3 two-dimensional array.



Create an application containing an array that stores 10 integers. The application should call five methods that in turn:

a) Display all integers in the array

b) Display all integers in reverse order

c) Display the sum of the integers

d) Display all values that ae high  than the calculated average value



(a) Write an application for Cody’s Car Care Shop that shows a user a list of available services: oil change, tire rotation, battery check, or brake inspection. Allow the user to enter a string that corresponds to one of the options, and display the option and its price as $25, $22, $15, or $5, accordingly. Display an error message if the user enters an invalid item. 


(b) It might not be reasonble to expect users to type long entries such as ‘oil change’ accurately. Modify the program in (a) so that as long as the user enters the first three characters of a service, the choice is considered valid.



LATEST TUTORIALS
APPROVED BY CLIENTS