Questions: 11 448

Answers by our Experts: 10 707

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 & Filtering

Program

Create a program that asks for the student's score and the number of items in a laboratory exercise. It will then compute for the grade using the formula. I recommend you to study and review on our lesson on Datatypes and Variables (Identifier).

Input

The user is required to enter two (2) inputs where the first input is the student score and the second one is the total number of items.

Output

The program will display the solution or formula (Score / Total # of Items) x 60 + 40 followed by an equal sign then the equivalent laboratory grade with two decimal places of the student. (Refer to the sample output)

++++++++++++++++++++++++++++++

Sample Input #1

21 40

Sample Output #1

(21/40)x60+40=71.50


Program

Create a program that asks for the student's score and the number of items in a laboratory exercise. It will then compute for the grade using the formula.

Input

The user is required to enter two (2) inputs where the first input is the student score and the second one is the total number of items.

Output

The program will display the solution or formula (Score / Total # of Items) x 60 + 40 followed by an equal sign then the equivalent laboratory grade with two decimal places of the student. (Refer to the sample output)

++++++++++++++++++++++++++++++

Sample Input #1

15 20

Sample Output #1

(15/20)x60+40=85.00

++++++++++++++++++++++++++++++

Sample Input #2

21 40

Sample Output #2

(21/40)x60+40=71.50


Define a class named ‘Train’ representing following members:

Data members :- - Train Number

- Train Name

- Source

- Destination

- Journey Date

- Capacity

Member functions:

- Initialise members

- Input Train data

- Display data

Write a C++ program to test the train class.


A c++ program to compute the net salary of an employee with the following

Basic salary

Transport allowance 15% from the basic salary

Housing allowance is 8% from the basic salary

if the basic salary is more than 500 then,

the launch allowance is 5% of the basic salary. Gross allowance is equal to basic salary, transport allowance and housing allowance

tax is 6%

Total deduction is Gross allowance minus tax

Net Salary is?


Define a class named ‘Train’ representing following members: Data members :- - Train Number - Train Name - Destination - Journey Date - Capacity Member functions: - Initialise members - Input Train data - Display data Write a C++ program to test the train class.

Create a class vegetable which has two functions color() and wh_grow(), create classes spanich,potato,

onion, tomato that inherits vegetable class and also redefines color() and wh_grow() method to display

color of each vegetable and where they grow. Use dynamic memory allocation to create objects and use

the methods.


differentiate between actual and formal parameters


GIven a class definition:

class Circle

{

   private:

     int radius;

   public:

     Circle (int inputRadius)

     { radius = inputRadius; }

}


Please provide 2 distinct ways to create circle_object with initial radius value = 5. 


'The results from search engines are cannot be relied upon.' Carry out any additional research you need in order to discuss whether or not this statement is true.


 Chess Game Knight’s travails. You are required to do the following: 1. Explain how you can ensure that any move do not go off the board. 2. Choosing a search algorithm for finding the shortest path for the knight’s travails. 3. Defend your choice of an appropriate search algorithm to find the best possible move from the starting square to the ending square. 4. Creating a script for a board game and a knight. 5. Create a diagrammatical tree structure, to illustrate all possible moves of the knight as children in the tree structure. In this task, you need to understand two algorithms which can be helpful, the BreadthFirst Search which utilizes the Queue data structure to find the shortest path and the Depth-First Search which can traverse a Stack data structures. Hint: Develop a data structure similar to binary trees. Using a standard 8 X 8 chessboard, show the knight’s movements in a game.


LATEST TUTORIALS
APPROVED BY CLIENTS