Programming in C
Programming in C
4th Edition
ISBN: 9780321776419
Author: Stephen G. Kochan
Publisher: Addison-Wesley
Question
Book Icon
Chapter 12, Problem 11E
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 main function.
    • Declare the variable named “value” in type of character.
    • Prompt the user and get the value.
    • Call the every system function with its appropriate macro and print the result on screen.

Blurred answer
Students have asked these similar questions
Question (1) Create a C++ project for your assignment 3, with the name format prescribed in the Information section. Add a source file and name it SwapCount. In this file, write the C++ program that will perform the tasks specified in question 2. (2) Declare and implement a function called sortSwapCount that passes three parameters, the array, the size and the reference of proportion, and returns the count. The function declaration is int sortSwapCount(int data[], int size, double& proportion) The function sorts the integers in data[] in ascending order using the bubble sort method. The purpose is to count or determine the number of exchanges (swaps) made by the bubble sort algorithm. (0) (ii) The expected number of sorting swaps (expectedSwapCount) is size*(size-1) if the array was unsorted. Calculate the proportion of the array status by first converting (or casting) the integers, swapCount and expectedSwapCount into floating-point, before calculating the proportion. The syntaxes for…
The memory diagram contains (i) and several pointers. Write a code to declare i, x, y, z and w with the correct types and set their values so they align with the diagram.
are these true or false (T/F) Parameters are declared in functions header (T/F) A function’s header and body must be defined within the same file (T/F) A function may return more than one value at a time
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