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

Create a program wherein any user should be able to search books by their title or its author.


Convert the following FOR statement to WHILE statement: (5 MARKS)



#include <iostream>



using namespace std; #include <iostream>



using namespace std;



int main()



{



for (int counter = 1; counter <= 10; counter++)



cout << “Counter is: ” << counter << endl;



return 0;



}

 Different methods named sum need to be created in one class, explain what mechanism should be used. Then Illustrate with examples the different ways to achieve that.


Suppose m and r are integers. Write two different ways of C++ expression for mr2,store the result to variable result. The other expression uses the math function for r2 and the other doesn’t use the math



function but the equivalent expression

Check the wrong of this code and show the exact code


dict1={}



class AddColumn:

def add_column(str1,list1):

dict1[str1].append(list1)

x=AddColumn()



x.add_column( "City name",["Adelaide", "Brisbane", "Darwin", "Hobart", "Sydney", "Melbourne", "Perth"])

x.add_column("Area", [1295,5905, 112, 1357, 2058, 1566, 5386])

x.add_column("Population", [1158259, 18557594, 120900, 205556, 4336374, 3306092, 1554769])

x.add_column("Annual Rainfall"[600.5, 1146.4, 1714.7, 619.5, 1214.8, 646.9,869.4])



print(dict1)




Check the Index Block on NO.25 and show the correct code

main_list = []

x = {}


field_names = [ "City name", "Area", "Population", "Annual Rainfall"]


list1 = [

["Adelaide", 1295, 1158259, 600.5],


["Brisbane", 5905, 1857594, 1146.4],


[ "Darwin", 112, 120900, 1714.7],


["Hobart", 135, 20556, 619.5],


["Sydney", 2058, 4336374, 1214.8],


["Melbourne", 1566, 3806092, 646.9],


["Perth", 5386, 1554769, 869.4]]



for i in range(0, len(list1)):

for key in field_names:

for value in list1[i]:

x[key] = value

list1[i].remove(value)

break


main_list.append(x)



print("Resultant Main list is : " + str(main_list))



Write a program that prompts the user to input height and width and print the hollow rectangle

as given in the output below. The program should check whether the both height and width

of rectangle are equal or not. Do not use nested loops.


Create a program to generate a text file to produce a quote for a customer wishing to purchase external hard drives from CGL Computer Products company. Create a dictionary of the following drives (item number is key and price is the value) bellow  

{335160:484.99,354732:221.44,3514676:257.42,3006905:315.55,3351600:447.50,357888:379.15}

 Open a new text file to create a quote for the customer. Ask the customer for the item number and quantity they wish to purchase. Search your dictionary to retrieve the price based on the item number. Allow the customer to purchase multiple items. Print a header for the quote, column headings, line items for the quantity and description of each item purchased and the total price. After all items have been listed, calculate shipping as 3% of the total, add the shipping to the total to display the total amount due. Tax calculation is not necessary. 


this problem, you are required to build a system that can generate a random winning


scenario for the T20 cricket world cup. There are 12 teams in the tournament and every team will play


one match each on the knock-out basis in the first round. It means that the losing team of every match


leaves the tournament while the winning team continues to play the next match. From the twelve teams,


six winning teams will play another knock-out match. From these six teams, three winning teams will play


against each other on the round robin basis (i.e. team A plays against team B, team B plays against team


C, and team C plays against team A). The top two teams from this round will move to the final match. In


case all the teams win one match each at this stage, then there will be a toss to move one team to the


final while the other two teams will play against each other and the winner moves to the final. The winner


of the final match will be declared the champion of the T20 world cup.

1.   Write a user story that describes the "Favorite places" or "Favorites" feature available on most web browsers.

 


LATEST TUTORIALS
APPROVED BY CLIENTS