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

Index of Last Occurrence

Write a program to print the index of the last occurrence of the given number N in the list.Input


The first line of input will contain space-separated integers.

The second line of input will contain an integer N.Output


The output should be the index of the last occurrence of the number N.Explanation


For example, if the given list of numbers and N are

2 4 5 6 7 8 2 4 5 2 3 8
2


Number 2 present at index locations 0, 6, 9, as the last occurrence, is at index 9. So the output should be 9.


Sample Input 1

2 4 5 6 7 8 2 4 5 2 3 8

2


Sample Output 1

9


Sample Input 2

65 87 96 31 32 86 57 69 20 42 32 32

32


Sample Output 2

11




Write a class for Distance which have two parts inches and feet as floating data members. Write an overloaded function for (+) binary operator to add the inches and feet of two distance objects. Main function is also necessary to show the working of the Class.




Create a class called STRING, the class has two private member str and size of String and int type respectively. Provide a copy constructor for the class that initialize objects with other object. Write member function for the class that show the string and size for each object. 


Create a class called Time that has separate int member data for hours, minutes, and seconds. One constructor should initialize this data to 0, and another should initialize it to fixed values. Another member function should display it, in 11:59:59 format. The final member function should add two objects of type time passed as arguments.

write the flow chat program for project to identify total population of residence in rural area


 create a program using one dimensional array that accept five inputted numbers. Then it should accept for a number to be search among the five inputter numbers. If it is found, display the message “searched number is found!”, otherwise “search number is lost!”.


C++ programme


Define a class Flight with the following specifications


Private Members a data member are

Flight number of type integer A data member Destination of type string A data member Distance of type float A data member Fuel of type float A member function CALFUEL() to calculate the value of Fuel as per the following criteria


Distance Fuel

<=1000 500

more than 1000 and <=2000 1100

more than 2000 2200

Public Members


FEEDINFO() A function FEEDINFO() to allow user to enter values for Flight Number, Destination, Distance & call function CALFUEL() to calculate the quantity of Fuel. SHOWINFO() A function SHOWINFO() to allow user to view the content of all the data members.

(Implement the concept of class and objects)


Design a pay roll system to find the employee total salary using single inheritance. The base class employee consisting of data members such as emp_number and emp_name. The derived class salary consisting of data members such as Basic_pay, HRA, DA, PF, Net_pay.


Explain with an example how one user defined data type can be converted to a predefined data type


In this assignment you have to write a program in JAVA to create the Standard Deviation (SD) of the sales for the past 10 years. The standard deviation gives the sales manager a full idea of how the market changed in the past 10 years. 1. Design an Input dialog box window which accepts last year’s sale from a drop down menu: Year 2017 2016 2015 For example, if last year’s sale selected is 2017, the SD will be calculated from 2008 to 2017.


LATEST TUTORIALS
APPROVED BY CLIENTS