Write a c program that accepts a character using the cin


1. Write a C++ program to compute and display a person's weekly salary as determined by the following expressions:

If the number of hours worked is less than or equal to 40, the person receives $8.00 per hour; otherwise, the person receives$320.00, plus $12.00 for each hour worked over 40 hours.

The program should request the hours worked as input and should display the salary as output.

2. Write a C++ program that accepts a character using the cin object and determines whether the character is a lowercase letter. Alowercase letter is any character that is greater than or equal to'a' and less than or equal to 'z'. If the entered character is a lowercase letter, display the mssage The character just entered is a lowercase letter. If the entered letter is not lower case, display the message The character just entered is not a lowercase letter.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a c program that accepts a character using the cin
Reference No:- TGS01476621

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)