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

Develop the internal mark calculation system based on the attendance percentage using java. Get the student name, register number,total number of according days present. Calculate attendance percentage of the students and award attendance mark based on the following condition.

Attendance percentage >=90 - 5 marks Attendance percentage >= 80 - 4 marks






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.


Given two strings inputString and subString as inputs, write a JS program to slice the inputString if it includes the subString. Slice the inputString starting from the subString to the end of the inputString.Input

  • The first line of input contains a string inputString
  • The second line of input contains a string subString


Sample Input 1

JavaScript

S

Sample Output 1

Script

"use strict";

process.stdin.resume();

process.stdin.setEncoding("utf-8");

let inputString = "";

let currentLine = 0;

process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});

process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});

function readLine() {

 return inputString[currentLine++];

}

function main() {

 const inputString = readLine();

 const subString = readLine();

  

/* complete the function*/

}


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.

Arrange the following data types in increasing order of size.

                 I.            Long

               II.            Short

             III.            Single

            IV.            SByte

Select one:

a. IV, III, II, I

b. III, IV, I, II

c. IV, II, III, I

d. III, IV, II, I 


Write a Python program that reads numbers from the user. Your program should stop reading in numbers when the number 99 is entered. It should then print out the sum of the numbers entered – do not include the value 99 when calculating your sum


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.


Masking - 2

Write a program that reads a single line of input and prints the first two and last two characters of the given input and prints the asterisk character (*) in place of the remaining characters.

Explanation

For example, if the given string is 

message, then the first two and last two characters are me, ge. Now replacing all the remaining characters with * will give the output me***ge.

Sample Input 1
message
Sample Output 1
me***ge
Sample Input 2
12345
Sample Output 2
12*45

LATEST TUTORIALS
APPROVED BY CLIENTS