Programming in C
4th Edition
ISBN: 9780321776419
Author: Stephen G. Kochan
Publisher: Addison-Wesley
expand_more
expand_more
format_list_bulleted
Question
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.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Local declarations are those that are stored in the computer's memory, but how are they stored? Using local declarations is unnecessary if the same goal can be accomplished without them. When reference parameters may be used in any function, why bother with value parameters? When it comes to processing programme data, how important are value parameters?
You are required to develop a system using Dev C++. You must apply all your knowledgein computer programming to develop your software. You may do the project in groups of 2.ProgrammingYour program should fulfill these requirements:1. The program should be done modularly by applying top-down or bottom-upapproach and use C language2. The program should contain all programming techniques describe in the syllabus.3. The program should utilized the array structure as a database or memory element.4. The program should contain at least 2 level functions.
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.
Knowledge Booster
Similar questions
- Which of the following is not a requirement of structured design? A. It should be made up of a hierarchy of modules B. It should use many GOTO statements C. The code should be executed in a top-to-bottom fashion within each module D. Each module should be as independent as possible of all other modules, except its parent E. None of the abovearrow_forwardare 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 timearrow_forwardQUESTION 1 Write a c program for a drip irrigation system design for maize crop farming for small plots. The program should calculate the crop water requirements, total water needed in gallons and the number of plots irrigated in a day. The results should be stored in a file, then the data is manipulated in the file and stored in a new file for the purpose of suiting results for other cropsarrow_forward
- Python 3 Read the provided documentation (see hyperlink below question) that describes four Python functions. A script will use these functions to read an input file of grades and produce rudimentary statistics over those grades. Write the Python statements to insert into the main function below to complete this task. Provde ONLY the required code.arrow_forwardFunctions allow you to create subtasks that will allow you to make programs more manageable. What type of algorithms do you believe are essential for managing complex programs? What is the role of repetition when designing a function?arrow_forwardPLEASE READ MY NOTE FIRST. Note: The following are the contents of a flex file that will be used to implement a lexical analyzer for a subset of the C programming language. I cannot understand anything in the code given below, so I need your help. I need you to explain every section of the code to me step-by-step in detail. At the end, please summarize what the code is all about and how it is functioning. Here's the code from the Flex file: %option noyywrap %{ #include<bits/stdc++.h> using namespace std; ofstream yyoutlog; //output filestream for log file string loglist = ""; //list of tokens along with line numbers // define necessary c++ variables and functions here (if any) int lines = 1; %} /* Regular Definitions */ delim [ \t\v\r] /* write regular expressions for whitespace and newline */ ws newline letter_ [A-Za-z_] digit [0-9] /* write regular expressions for id, float and integers */ id %% {ws} { /* ignore whitespace */ } {newline} {…arrow_forward
- Show an example of a macro parameter having a default argument initializer.arrow_forwardIn this assignment compile and run example2(debug_FunctionSwap.cpp) and complete the steps from Debugging in C++ Programming presentation. See how the program works step by step See the value of the variable during the program execution Criteria File format requirements Screen shot of Program Running Screen shot of each step completed as shown in presentation Quality of detailed steps and screenshots as per requirements listed above This is the program #include <iostream> using namespace std; // function prototypes void swap(int& x, int& y); int main() { // local variable declaration: int a = 100, b = 200; cout << "Before swap, value of a :" << a << endl; cout << "Before swap, value of b :" << b << endl << endl; // call function swap to swap the values using variable reference. swap(a, b); cout << "After swap, value of a :" << a << endl; cout << "After swap, value of b :" << b…arrow_forwardWhen using base class pointers or references, how should a programme call the same virtual function in different forms and structures?arrow_forward
- WAP to read the class object of student info such as name, age and rollno from the keyboard and to store them on a specified file using read() and write() functions Again the same file is opened for reading and displaying the contents of the file on the screen. File Handling In C++arrow_forwardIn order to make use of the same virtual function in numerous forms and structures, how should a programme call it when it uses base class pointers or references?arrow_forwardWhat are "header files" in programming, and why are they important for including external code libraries?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage