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

The class ExpenseLedger will record all the expenses you make. You record an expense by giving it a serial number, a description (that tells what it is about) and the money you spent on this item. So you need to create a class ExpenseItem with serial, description and amount. Provide constructors, getters and setters. Also provide toString for this class. Now in the ExpenseLedger class you need to build a collection that will hold the instance of ExpenseItem. Provide the following methods in the ExpenseLedger

1.      void addExpense(description, amount): You should be able to figure out the serial of the expense yourself. This method will create an expense item and add it to the ledger. 


Develop a C++ program to compare weights of two persons and displays the most weight between two using this pointer.



Make a program that will accept an integer and loop from 1 to that integer. Then, print all numbers from that range that are greater than 3.





The first lines will contain message prompts to input the decimal numbers.


The last line contains the sum of all negative numbers with 3 decimal places.



Example Output:



Enter n:8


4


5


6


7


8

A data compression software utilities various steps to compress a string of data one of the steps involves find the count of the character that are not repeated in the string




Write the definition of the value-returning function payCheck that calculates and returns the


amount to be paid to an employee based on the hours worked and rate per hour. The hours


worked and rate per hour are stored in the variables hours and rate , respectively, of the


function main . The formula for calculating the amount to be paid is as follows: For the first 40


hours, the rate is the given rate; for hours


over 40, the rate is 1.5 times the given rate.

Make a program that asks the user for the hours worked for the week and the hourly rate. The basic salary is computed as:


Salary = hours worked*hourly rate

In UG Boys Hostel Having 5 floors and each floor having 15 rooms. Consider you have to allocate the hostel room for students of IT department using hashing techniques (Hint: Key=201IT253). For only final year, one student per room and all other rooms are shareable at the maximum of three students per room. You may to use any strategy but must implement the separate chaining and Linear probing techniques in your solution.

write a program that counts from zero up to a user-specified number. For example, if the user enters the number 5, your program should display the numbers: 0, 1, 2, 3, 4, 5. You cannot use an if-statement for this part! 


Modify the solution to Brute-Force Attack to include a maximum of 5 passcode attempts. Each time the user enters an incorrect passcode, they should be prompted of how many passcode attempts remain. If there are 5 failed passcode attempts the while loop should break and inform the user that the authorities have been alerted! 


You are an inexperienced hacker trying to find the correct passcode to enter a safe.Write a program that defines the correct passcode of 246, and allows users to enter passcode attempts until they reach the correct number. Your program should use a while loop to allow the user to keep entering passcode attempts until correct and should use a break statement to exit the loop once the correct passcode is entered


LATEST TUTORIALS
APPROVED BY CLIENTS