Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

program in C code Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scanf), functions from ctype.h (tolower

program in C code

Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scanf), functions from ctype.h (tolower and toupper), math in C, and void programmer defined functions. For this assignment, you will submit 2 files: 1. Source code file: lastname_program3.c 2. A screen shot of your program execution to demonstrate that you tested the code in an IDE Preprocessor directives: #define _CRT_SECURE_NO_WARNINGS //for Visual Studio compiler #pragma warning(disable:6031) //ignore scanf warnings #include //printf and scanf #include //toupper and tolower Instructions For this assignment you will be implementing 4 programmer defined functions and one main function Be sure to use function prototypes above the main function and function definitions below the main function The description of each function is in the comments below the function prototype. Implement one function definition at a time. To test the function, make a function call from the main function Use the tolower and toupper functions from ctype.h //EXAMPLE: char newLetter = toupper(inputLetter); Type cast the characters to integers //EXAMPLE: int num1 = (int)newLetter; Use the following programmer defined functions. DO NOT modify the Functions: void Greeting(void); //display a welcome message void InitialPractice(void); //declare, ask, and get a character //display the lowercase version of the letter(character) and the numerical (ASCII) value //display the uppercase version of the letter(character) and the numerical (ASCII) value void PoundsToKilograms(void); //declare, ask and get the weight in pounds //convert the pounds to kilograms //print both pounds and kilograms onto the screen void KilogramsToPounds(void); //declare, ask and get the weight in kilograms //convert the kilograms to pounds //print both kilograms and pounds onto the screen

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Persuading Your Audience Strategies for

Answered: 1 week ago