Write a program to read three values, calculate their sum and their average and print the results as:“The sum is “, sum“The average is “, average
2. Write a program to read a value, print its 3/4, 1/2, and 1/4. Declare four variables with appropriate names to store the original value, three quarters of the values, half of the value and quarter of the value.
3. Write a program that will read a radius of a sphere, send the radius to function by the name sphereVolume to return the volume of the sphere (find the formula of the volume of sphere in the WWW). Print the volume in the original program (main program where you have: Start and Stop).
4. Write a program that will read 5 sales. After finding their subtotals, calculate the sale discount based on these criteria s:
if the subtotal is >= 10000, the discount is 15%else if the subtotal is >= 7500 and = 5000 and = 2500 and < 5000, then discount is 5%else the discount is 3%Print the dicousntedAmount, the TaxAmount based on 7.5% taxRate, and the total.
5. Write a program using for-loop to add values between 50 and 100 (Hint: you can initialize a variable to any value instead of one or zero)
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more