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 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 (eg 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.


Pakistan online Daraz company has four agent (1 to 4) who sell 5 different products ( 1 to 5). Once per day, each agent passes in a slip for each different type of product sold. Every agent passes in between 0 to 5 slips each day. Each slip has the following information on it:

•       The agent number

•       The product number 

•       Total rupees of that product sold that day. 

Write a program in C++ that will read all this information for last month’s sales and brief the total sales by agent by product. The output should be in tabular form. 


: 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:


Teacher has Prepared the result of a class containing n number of students. He wants to give the award to 3 toppers of the class. Display the result for 3 toppers as reflected as percentage form in floating type data


Working with struct data type and arrays:


Use C# 6.0 and 7.0 features, wherever applicable


Write a program to define a two dimensional array of numbers to store 5 rows and 6 columns. Write a code to accept the data, assign it in array, and print the data entered by the user.


Define a single dimension array of strings to hold the name of City. Accept some values from the user and store them in the array. Use foreach loop to print all the data of the array.


Create a class named ProductDemo which accepts the details of the product, converts the details into reference types using boxing and displays them by converting them into their relevant types using unboxing and calculate the amountPayable. Refer the class diagram given below.


Output:

Enter the id of product : 101

Enter the name of the product : Segate HDD

Enter Price : 9000

Enter quantity : 2


Product Details :

Product id : 101

Product name : Segate HDD

Price : 9000

Quantity : 2

Amt Payable : 18000.00



A book store needs to calculate the price of an order from the book price and the number of books that were ordered. Add tax (15%) and a shipping charge of R12.50 per book. (The tax is calculated on the sum of the total book price and the shipping price). Display the order price.



St. Joseph school planned to create a system to store the records of students studying in their school. They need to store various kinds of data about their students. Write a C# program based on the class diagram given below and initialize the variables with proper values and print it


SCHOOL DEMO:

rollNumber : int

studentName : string

age : bytr

gender : char

dateOfBirth : DateTime

address : string

precentage : float

_______________

+Main(string[] args)



Create a Console application to test usage of Switch case construct. Accept some integer from user as command line argument and using a switch case construct, check if the value entered is 1, 2, 3, 4 or 5. Print some message in each case. If the value is other than the above values, then print error message.


Amit wants to develop an Arithmetic Calculator to perform some arithmetic functions. Develop a program to achieve the same.


Task 1: Create a library project to define a class ArithmeticOperations to perform the operations like Add, Subtract, Multiply, Divide and Modulus on two numbers of integer type, and double type. Use the class in a console application. Accept the details from the user and perform the operation based on user’s choice


Often some situation arises in programming where data or input is dynamic in nature, i.e. the number of data item keeps changing during program execution. A live scenario where the  program is developed to process lists of employees of an organization. The list grows as the  names are added and shrink as the names get deleted. With the increase in name the memory  allocate space to the list to accommodate additional data items. Such situations in programming  require which technique. Explain the concept with the help of suitable examples.


LATEST TUTORIALS
APPROVED BY CLIENTS