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

Write an interactive Python calculator program. The program should allow the user to type in a mathematical expression, and then it should evaluate and print the resultant value of the expression. Include a loop so that the user can perform many calculations one after the other.

To quit early, the user can make the program crash by typing a bad expression (e.g., (2 + 2) * 5 ! 4) (You’ll learn better ways of terminating interactive programs in later lessons) or a user can terminate it simply by entering Quit as sentinel value.



Write a temperature converter program that uses lambda functions to convert from Fahrenheit to Celsius and vice versa. 



Q1: Write a class named as Bus that contains the attributes which are mentioned below:

 The name of Bus.

 The direction of Bus (North (N), South(S), East(E), West (W))

 The position of Bus (from imaginary zero point)

The class has the following member functions:

 A constructor to initialize the attributes

 Turn function to change the direction of bus to one step right side (e.g if the direction is

to East, it should be changed to South and so on)

 Overload the Turn function to change the direction to any side directly. It should take the

direction as an argument.

 Move function to change the position of the Bus away from imaginary zero point. It

should accept the distance as an argument.



Write a temperature converter program that uses lambda functions to convert from Fahrenheit to Celsius and vice versa. 



What if two classes for example “Human and Hospital” are friend classes, which 

member functions of these classes have access to the private and protected members of each 

class. Write a program in C++ to differentiate these classes.



Write a function distance that calculates the distance between two points (x1, y1) and (x2, y2). All numbers and return values should be of floating type. Use this function in your program. The values of the points shall be provided by the end user.


Write an interactive Python calculator program. The program should allow the user to type in a mathematical expression, and then it should evaluate and print the resultant value of the expression. Include a loop so that the user can perform many calculations one after the other.

To quit early, the user can make the program crash by typing a bad expression (e.g., (2 + 2) * 5 ! 4) (You’ll learn better ways of terminating interactive programs in later lessons) or a user can terminate it simply by entering Quit as sentinel value


Create a class: “Question 1” with data members: 1D integer array of maximum size: 100, n (int). Create a dynamic constructor which takes input of n and n no. of array elements. Apart from taking input this class also displays the maximum and minimum elements from the given array elements.


Write a class named as Bus that contains the attributes which are mentioned below:

 The name of Bus.

 The direction of Bus (North (N), South(S), East(E), West (W))

 The position of Bus (from imaginary zero point)

The class has the following member functions:

 A constructor to initialize the attributes

 Turn function to change the direction of bus to one step right side (e.g if the direction is 

to East, it should be changed to South and so on)

 Overload the Turn function to change the direction to any side directly. It should take the 

direction as an argument.

 Move function to change the position of the Bus away from imaginary zero point. It 

should accept the distance as an argument


Write a class named as Bus that contains the attributes which are mentioned below: 

 The name of Bus. 

 The direction of Bus (North (N), South(S), East(E), West (W)) 

 The position of Bus (from imaginary zero point) 


LATEST TUTORIALS
APPROVED BY CLIENTS