Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE ANSWER ALL 41.Write a C++ code segment to read a character and to determine if it is a letter of the alphabet. If it

PLEASE ANSWER ALL

41.Write a C++ code segment to read a character and to determine if it is a letter of the alphabet. If it is a letter of the alphabet, print it with the message, it is a letter otherwise, print it with the message, it is not a letter.

2.Write a C++ code segment to read an integer value and to determine if it is a multiple of 5. If it is a multiple of 5, print it with the message MULTIPLE OF 5, otherwise, print it with the message NOT MULTIPLE OF 5.

3.Write a C++ code segment to read an integer value into variable num1and another integer value into variable num2 and to do the following: if the value in variable num1 is greater than the value in variable num2 do the following: add 1 to the value in num1 and 5 to the value in num2 and then print the result of the product of the new value in num1 and the new value in num2; otherwise, do the following: subtract 1from the value in num1 and 5 from the value in num2 and then print the result of the product of the new value in num1 and the new value in num2.

4. A department store offers a rebate of 5% if the total amount of the purchase is at least 100 and a rebate of 2% otherwise. A sale tax of 8.25 % is also imposed on the price of each purchase (after the rebate). Write a C++ code segment to read the unit price and the number of items purchased, and to output the amount of the rebate and the price (including taxes) of the purchase.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions