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 bookshop gives discount to customers as follows: • Students get 10% discount, • Book dealers get 12% discount and • Pensioners get 15% discount. • All other customers get 10% discount only if their total purchases are more than R200. You are requested to write two versions of a program that calculates and displays the final amount that is due, after discount. (i) The first version of the program uses a switch statement to implement the above program. (ii) The second version of the program uses nested-if statements. Hint: Use the following variables: float amount; // the amount due before discount char customer Type; // the type of customer: 'S' (student) or // 'D' (dealer) or 'P' (pensioner) or


Include the for loop below in a small program and complete the program. The loop should execute 10 times. Do not change the for loop below. Compile and run your program to see for yourself that it works. You do not have to submit this program and output. for (int i = 1; i <= n; i++) cout << i * i; Now convert the for loop into a while loop and add any variable initialisations that you think are necessary. Compile and run your program and submit only the program containing the while loop and its output


Calculator should be able to handle the five basic mathematics operations – +,-,*and divide and modulus – on two input values. Program should have the following structure: Ask the user to enter two float variables named var1 and var2. Ask the user to enter a character variable named operation to represent the operation to be performed on the two variables. Perform the appropriate operation by using if-statements. The output must be given in fixed-point notation with two digits after the decimal point. A typical run is displayed below: Please enter the first float value: 35.6 Please enter the second value: 24.12 Please enter the operation required : The sum of 35.6 and 24.12 is 59.72 Submit both your program and output.


Write the function to calculate the average of cell B10 to M18

Question



Convert the given word in to snaky conversion according to the number (N)




Example:-



Input



AWESOMENESS 4




Explanation:-



A. E



W. M. N



E. O. E. S



S. S




Output :-



AE



WMN



EOES



SS





neutralisation question input should be +------+--- --+-+-++-- and output should be 0-0-0-++0-


Make it equal python program answer



In a Primary school N students are lined up in arow

String matching



Input 1



3


Hello Hell*


Hell He*ll


Hell hell*


Output 1


True


True


False



Input 2


3


Hello *l?


Hell He? ll


Hell ? *



Output 2


True


False


True




Input 1


2315313134 5234423114


Output 1


hello world


Input 2


112234


Output 2


ago

Taru exam is on the head. So she started learning physics. There she learned about Pascal's law. Now she wanted to try an experiment to get a better understanding of the same.

For, the experiment Taru has N buckets (numbered from 1,2,3...N) which all are initially empty.

She has M number of queries. Each query represents an integer that is of 4 types.


LATEST TUTORIALS
APPROVED BY CLIENTS