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

Display record of all the students greater than X marks in final exam (in descending order with respect to marks obtained in final exam). The value of X will be entered by the user

i want this program without any function implemented


The garments company apparel wishes to open outlets at various locations .the comapny short listed several plots in these locations and wishes to select only plots that are square shaped .

Write an algorithm to help apparel to find number of plots that it can select for its outlets


#Write a program that simulates using a bank machine. I have listed five 5 functions that should be called in the main program that you have to complete. I also have taken the liberty of starting the skeleton code for you. You need to write the code for each functions and then create the main code that will call for these functions. (Perhaps the program should run in the while True loop as I have started for your at the bottom).



def getDepositeAmount():

#should handle getting input from the user. Make sure your value is an int or float.

return #deposit amount




def deposit(depositAmount, accountBalance):

#should add the deposit to the account balance


return #the new account balance



def getWithdrawalAmount(accountBalance):

#should handle getting input from the user and evaluate if the withdraw amount is less than the account balance. This function should continue to loop until the value of the withdrawal is less than or equal to the accountBalance


return #The function should return the withdrawl value



def withdraw(withdrawlAmount, accountBalance):

#should subtract the withdrawl amount from the account balance


return #return the new account balance



def printBalance(accountBalance):

#should print out the current account balance in a nicely formatted way. Maybe ...

#*****************************************

#Your account balance is: $1090.89

#*****************************************


return



#You need to start with an account balance, feel free to make yourself a billionaire if you like. Right now I have set it to default $0.00

acountBalance = 0.00



while True:

#main program should run here. Feel free to edit to change the code here. This is just a demo.

userChoice = int(input('Welcome to your bank. Please pick one of the following options....\n1. Deposit\n2. Withdrawal\n3. Account balance\n4. Exit bank\nEnter your choice [1,2,3,4]:'))





(a) Write about Oscillator and watchdog timer in ATmega32 microcontroller.

(b) What are the major differences between a microprocessor and a microcontroller?



c++ question

Three salesmen work for a pharmaceutical company. Each salesman has an ID, salary

and phone number as shown in the example below.

ID salary phone number

11 $1000 2388888

12 $1200 2377777

13 $1300 2355555

Declare the arrays necessary to enter the information of 20 salesmen, and initialize them

with the information of the three salesmen above (i.e. the first three cells of each array are

initialized as shown in the table above).

Then, the program must display the following list of tasks:

1. Add a salesman

2. Delete a salesman

3. Search for a salesman by his ID

4. Exit

The user chooses a task by entering the task number (1, 2, 3 or 4).

Write the 3 functions necessary to perform the previous tasks (add, delete and

search), then call these functions to perform the tasks chosen by the user.

The program must keep on displaying the previous list of tasks and performing the

required task until the user enters 4. (Hint: the main loop is ended when 4 is

entered).

If the number of salesmen entered by the user exceeds 20 (which is bigger than array

size), the program must display the following message on screen:

Sorry, the company has enough salesmen at the current time, if you want to add a new

salesman, you should delete one first.

Notes and hints:

- All the steps from 1 to 3 must be done using functions.

- Use the concept of parallel arrays.

- When you delete a salesman, you have to shift the information of the following

ones in each of the arrays.

- When you add a salesman, add his information at the end of the arrays (if the

number of salesmen is under 20)


1.   You operate several BurgerStands distributed throughout town. Define a class named BurgerStand that has a member variable for the burger stand's id number and member variable for how many burgers that stand sold that day.


a)           create a constructor that allows user of the class to initialize values for id number and for how many burgers sold that day and a destructor

b)           create a function named justsold that show increments of the number of burgers the stand has sold by one. (This function will invoked each time the stand sells a burger so that you can track the total number of burgers sold by the stand. And returns the number of burgers sold.)

c)           create a function that calculate the total number of burgers sold by all stands.

d)           write in a data file, the list of burger stands and the total number of burgers sold by all stands.



write a program to print the address of the pointer to a variable whose value is input from user


In this problem, you are required to use spark.ml API. As in Problem 2, consider 3

objects:

(1) The first object, denoted by OA, is a ball centered at (0; 0; 0) of radius 1. As a

set of points, we write OA = f(x; y; z) j x2 + y2 + z2  1g.

(2) The second object, denoted by OB, is a cylinder defined by OB = f(x; y; z) j

  • x^2 + y^2  4; 2  z  4g.

(3) The third object, denoted by OC, is an ellipsoid

OC = f(x; y; z) j (x 􀀀 2)2

1:2

+ y2 +

z2

4

 1g

Note that OA overlaps with OC a little bit.

Create a dataset in the following way:

(1) Each record in the dataset corresponds to a point contained in the union of OA,

OB and OC, which has a “features” part which is made of the xyz coordinates

of that point and a “label” part which tells which of OA, OB or OC this point

is contained in. Note that since OA \ OC is nonempty, if the point happens to

locate in OA \ OC, you still can only label it as OA or OC, but not both.

(2) The dataset you create should contain at least 500000 records. You should generate

the records randomly in the following way:

i. Each time, choose OA, OB or OC randomly. Suppose we choose OX (X is A,

B or C).

ii. Randomly create a point P contained in OX (think of how to do it). Now

the features of the newly created record is the coordinates of P and the

corresponding label is “OX”.

iii. After creating all the records, you should load and transform the dataset to

a spark Dataframe.

You are required to do the following work.

(1) Do classifications using both logistic regression and decision tree classifier. You

should try several different training/test split ratio on your dataset and for each

trained model, evaluate your model and show the accuracy of the test.

(2) Use K-means clustering to make cluster analysis on your data. Now only the

“feature” part of your data matters. Set the number K of clusters to 2, 3 and 4

respectively and make a comparison. Show the location of the centroids for each

case.

(3) Provide a visualization of the results of your classifications and cluster analysis.

In your report, you should provide both your codes and your demonstration of the

results. Take screenshots whenever necessary


Write Algorithm and Flowchart to implement a program to accept a number in a Textbox and display the result of Factorial of that number in another TextBox.




programmer in an IT firm. Your firm got a project to develop an 

application for an Ice Cream Parlor. The application must be developed considering the 

following scenario.

• The application will display a menu showing the flavors that have been offered by the Ice 

Cream Parlor. 

• The Parlor offers Tutti-Frutti, Chocolate, Pineapple, Kulfa, Strawberry, Mango, Orange, 

and Pistachio flavors. 

• The price of each flavor per scoop has been listed in the table below, for multiple scoops, 

the price will variate as per the scenario stated in the table. 

Flavor

Price Per Scoop

One Scoop Two 

Scoops

Three Scoops or 

above

Tutti-Frutti 150 120 100

Chocolate 150 120 100

Pine Apple 150 120 100

Kulfa 150 120 100

Strawberry 150 120 100

Mango 175 150 130

Orange 200 170 150

Pistachio 150 120 100

• The developed application will ask the customer to select the flavors and no. of scoops 

for each selected flavor. The program will perform calculations and display the bill.

You are required to write the pseudo-code for the above-given scenario

LATEST TUTORIALS
APPROVED BY CLIENTS