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



Write a program in C++ to print the following series:






2, 5, 10, 17, 26 ………….. upto 10 terms.

Step 1 (2 pts). Read from input student status (string), homework points, quiz points, midterm exam score, and final exam score (double). Valid student status includes undergrad (UG), grad (G), and distance leaner (DL). Calculate each category average using maximum points for homework (800), quizzes (400), midterm exam (150), and final exam (200). Output an error message if student status is not one of the three options. Otherwise, output category averages as a percentage using cout << "Homework: " << homework << "%" << endl;. Submit for grading to confirm two tests pass.


input is UG 600.0 300.0 120.0 185.0


You are going to make an employee management system. In this lab, you have to create




an Employee class only. Employee class fields are: Employee Name, Employee ID, and Employee Gender. The member functions include the getters and setters for all the member variables and display () function to display the data. In the main function, first create two Employee objects and allow the user to enter data in these objects. Secondly, display the data from these objects.



A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years. Ask user for their salary and year of service and print the net bonus amount.

write a c++program ether even or odd


Debug and Display the output.

1.

#include

using namespace std;


myFunction() {

cout << "I just got executed!";

}


int main() {

myFunction();

return 0;

}


2.

#include

using namespace std;


void myFunction() {

cout << "I just got executed!\n";

}


int() {

myFunction();

myFunction();

myFunction();

return 0;

}


Create a class Book <BOOK_ID,ISBN,TITLE,PRICE> as member variables. Create functions to read and write Book details.Overload a function SEARCH() to search a book based on ISBN and TITLE.Write a menu driven main(), opting user to key-in the search option as 1.Search by ISBN 2.Search by TITLE.


(bubble sort)smaller values gradually “bubble” their way upward to the top of the array like air bubbles rising in water, while the larger values sink to the bottom. The bubble sort makes several passes through the array. On each pass, successive pairs of elements are compared. If a pair is in increasing order (or the values are identical), we leave the values as they are. If a pair is in decreasing order, their values are swapped in the array. The comparisons on each pass proceed as follows the 0th element value is compared to the 1st, the 1st is compared to the 2nd, the 2nd is compared to the third, the second-to-last element is compared to the last element. Write a function named bubblesort that accepts the unsorted array and the size as its parameter. The bubblesort function


sorts an array of 10 integers.Call the function in the main program with array argument and size to test its correctness. Note that the top of the array is the first element at index 0 and the bottom of the array is at index size-1

Write a program that takes two strings and outputs the longest string. If they are the same length then output the second string.


Ex. If the input is:


almond pistachio

the output is:


pistachio


Write a program that takes in three integers as inputs and outputs the largest value.

Ex: If the input is:

1 2 3

and the outut must be 3



LATEST TUTORIALS
APPROVED BY CLIENTS