Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help to finish BOTH problems for my c for engineers class. Using code blocks. Thanks for helping Chapter 08 Program Exercises 1) PE 08

image text in transcribed Need help to finish BOTH problems for my c for engineers class. Using code blocks. Thanks for helping
Chapter 08 Program Exercises 1) PE 08 01 (Strings in Uppercase and Lowercase) Define a string literal with char array original[s0] and type any (acceptable) text you prefer in the string. Using only a for loop, copy the original string into a new string. Output the copied string in all uppercase characters, then all lowercase characters. Bonus(+5) Output the string using a random technique that you create to choose how to display each character (uppercase or lowercase). 2) PE 08 02 (Strings to Number Conversions) Prompt the user to enter three integers and three floating-point values between -1000 and 1000. Use a single string to read each integer data entry as a string, then convert the string to the proper data type. Display the sum and product of the three integers to the screen. Use a single string to read each floating-point data entry as a string, then convert the string to the proper data type. Display the sum and product of the floating-point numbers to the screen. Use as few variables as possible. (a) We have discussed several vulnerabilities to reading input strings- add a comment in your program that explains how a string can be used as an enhanced security measure to read input. (The comments will be graded) 3) PE 08 03 (ASCII Character Set) Write a program that displays the character and integer values of the ASCII Character Set from 33 to 126. Your program should include a loop that starts at 33, increments by one and ends at 126, Use the printf conversion specifiers %c and %d for characters and decimal integers, respectively. Display exactly five columns in a neat tabular format as illustrated below Page 2 13Q+

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago