Questions: 1 835

Answers by our Experts: 1 539

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

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets ('a'-'z') and the ascii values will starts from 1 (i.e ascii value of 'a' is 1 and 'z' is 26). Now given a string S, you can perform operations, namely, add, delete and replace of any character present in the string. Every operation will consists of following costs

add = 2 unit
replace = 1 unit
delete = 3 unit

Your task is to convert the string to super ascii with the minimum cost. While converting the string to super ascii, the final string should contain the same characters as in the input string.
A Milkman serves milk in packaged bottles of varied sizes. The possible size of the bottles are {1, 5, 7 and 10} litres. He wants to supply desired quantity using as less bottles as possible irrespective of the size. Your objective is to help him find the minimum number of bottles required to supply the given demand of milk.
The power of compounding

Manish has realized the power of compounding. Since the days he started earning, he has diligently set aside a small corpus which he saves from his monthly salary and deposits in his bank account. Bank pays him interest every month. Manish is also a determined investor and refrains from withdrawing anything from this account because he now believes in power of compounding. Given investment corpus, fixed annual rate of interest and maturity period calculate the amount the Manish will end up saving at the end of his tenure.
Problem : The power of compounding

Manish has realized the power of compounding. Since the days he started earning, he has diligently set aside a small corpus which he saves from his monthly salary and deposits in his bank account. Bank pays him interest every month. Manish is also a determined investor and refrains from withdrawing anything from this account because he now believes in power of compounding. Given investment corpus, fixed annual rate of interest and maturity period calculate the amount the Manish will end up saving at the end of his tenure.
A cube has a volume of 27 cubic meters. If all sides of the cube are doubled in length, then develop a program to calculte the difference in the original and new volumes of the cube.
below shows the postfix epression. Draw a binary tree of abc * + de * f + g +

and find the following
i.infix expression

ii.prefix expression

From the traverssl of predorder , inorder and postorder as above write down the c++ statement for each

i.predorder function
ii.inorder function
Q. Write any two programs of MATLAB.
Write a program that asks the user to enter the name of a file. The program should display the number of characters in the file.
Write a program that combines the processing of programs prb14-1.cpp and 14- 2.cpp. Thus, the program should create the parts inventory file by obtaining the data from the user. After creating the file, the program should then search through the file and display those records whose quantity on hand multiplied by price exceeds 3000.00. Declare the file as an fstream object so you can perform both input and output on the file.
Using the Hotel Room class hierarchy of Programming Problem 4,Section13.1,do the following:Guest Room contains the method Calculate Bill(),which returns the amount of the guest’s bill. The bill is calculated as follows: the room rate (this is inherited from HotelRoom) multiplied by the number of days of the stay, multi- plied by the status (which represents the number of guests, is also inherited from HotelRoom). MeetingRoom also contains the method CalculateBill(), which returns the amount of the bill for renting the room for one day. The method cal- culates the bill as follows: the number of seats multiplied by 10.00, plus 500.00. Code a Display() method for each of GuestRoom and MeetingRoom, which displays in an appropriately formatted way the values of the instance variables of the class (including the inherited ones). Code a main() in which you create objects of each type, compute the bill for each object, and display each object’s information.
LATEST TUTORIALS
APPROVED BY CLIENTS