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

Find the Duplicate in the array

Given an myArray write a JS program to find duplicate in the Array.


input1

[1,2,3,4,5,7,7,8]

output1

7

input1

{'light'', "dark", "twinlight"]

output2

false


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

inputString += inputStdin;

});


process.stdin.on("end", (_) => {

inputString = inputString

.trim()

.split("\n")

.map((str) => str.trim());


main();

});


function readLine() {

return inputString[currentLine++];

}


function main() {

let myArray = JSON.parse(readLine().replace(/'/g, '"'));


/* Please do not modify anything above this line */


/* Write your code here */

}



An e-commerce company plans to give their customers a discount for the New Years holiday. The discount will be calculated on the basis of the bill amount of the order placed. The discount amount is the product of the sum of all odd digits and the sum of all even digits of the customer’s total bill amount.


Write an algorithm to find the discount amount for the given total bill amount.



Sample Input


billamount = 2514795


Sample Output


Output = 34

1.      Write a menu driven program to implement of list as a stack containing integers.


A rain drop of mass 3gm starts to fall from rest under the effect of gravity from a height of

100m. There is an air drag acting on the rain drop, the drag force is given by the equation,

Fd = bv.

Here, b = a × 10-3kgs-1s

a = 2

(a) Determine the governing differential of the system.

(b) Build a SIMULINK model of the system using transfer functions.

(c) Show velocity vs time graph with and without the effect of air drag on the same

plot.

(d) Show height vs time graph with and without the effect of air drag on the same

plot.

(e) From your graphs, determine the approximate time required for the rain drop to

reach the ground.


Write a c++ program using two dimensional array that will store the student id number, average quiz score, midterm exam score, and final exam score maximum of 25 students(score must from 0 to) and 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:




iven an integer N  denotes N×N  matrix. Initially, each cell of matrix is empty. U r given K  tasks. In each task, you are given a cell (i,j)  where cell (i,j)  represents

ith  row and jth  column of given matrix.

I/p format

  • first line contains two space-separated integers N and K where N is number of rows and columns in given matrix and K is number of tasks respectively.
  • Next K lines contain two space-separated integers i and j.

O/p format

Print K space-separated integers denoting numberr of empty cells in matrix.


1. Start off by importing the cars.csv file in the jupyter notebook.

2. Generate a line plot graph for the column ‘model’ and ‘hp’.

a. Map the ‘model’ column on the x-axis.

b. Map the ‘hp’ column on the y-axis.

c. Provide the x-axis label as Models of the cars.

d. Provide the y-axis label as Horse-Power of Cars.

e. Set the title as Model Names vs HorsePower. 





How to find the maximum and minimum from the list by using loops


Write a program that inputs a numerator and denominator then display their quotient and remainder


Sample output:

Enter numerator: 91

Enter denominator: 6

Quotient is: 15

Remainder is: 1


You have been appointed as IT Head of a soon to be opened bank in India by the name of “People’s bank” which will have branches all over India. People’s bank is a private sector bank. Highlight atleast 5 security threats that a bank may face in today’s times and suggest 5 innovative IT security mechanisms to ensure that such threats do not harm your bank & that your systems remain as secure as ever.



LATEST TUTORIALS
APPROVED BY CLIENTS