Programming in C
Programming in C
4th Edition
ISBN: 9780321776419
Author: Stephen G. Kochan
Publisher: Addison-Wesley
Question
Book Icon
Chapter 12, Problem 8E
Program Plan Intro

Program Plan:

  • Include the necessary header files into program.
  • Define the macro named “IS_UPPER_CASE()” to find out the uppercase character.
  • Define the macro named “IS_LOWER_CASE()” to find out the lowercase character.
  • Define the macro named “IS_ALPHABETIC()” to find out the given letter is alphabetic or not. This macro calls both uppercase and lowercase macros to find out the character.
  • Define the macro named “IS_DIGIT()” to check given character is digit or not.
  • Define the macro names “IS_SPECIAL()” to check given character is special character is not by calling the “IS_DIGIT()” and “IS_ALPHABETIC()” macros.
  • Define the main function.
    • Declare the variable named “value” in type of character.
    • Prompt the user and get the value.
    • Using “if…else” condition, call the macro “IS_SPECIAL()” which passes an argument and print the resultant values on screen.

Blurred answer
Students have asked these similar questions
Set a macro with symbol ABOUTME with your Student ID and Full Name in the  replacement string.
The Problem: Parameterized macros can cause unexpected things to happen. Consider the following case:#define SQUARE(x) ((x) * (x))int i = 5;int j = SQUARE(i++);What's the value of j? The answer is that it's compiler dependent. And the value of i is definitely not 6. Why? Just look at the code after the macro is expanded:int j = ((i++) * (i++));From this we can see that i is increment twice. Also since the order of the operations is not specified by the C++ standard, the actual value of j is compiler dependent.
Write a macro in VBA to approximate the value of the function f(x) = tan (x) at some nonzero point x in radians, using a Maclaurin series through the second derivative term (MLO 3.3). Allow the point x to be input using the InputBox() command. Calculate (a) an upper bound for the remainder term Rn , (b) the exact value of the function at x , (c) the true error Et and the true relative error (MLO 3.2) Output all these values to a blank Excel sheet, and include proper labels! Neatness counts!
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage