Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part a) Write a program ilua reads a clurater and prints it ASCII number. Your eviput format should be similar to the sample telons: Part

image text in transcribed
Part a) Write a program ilua reads a clurater and prints it ASCII number. Your eviput format should be similar to the sample telons: Part b) Write a pregram that reads an ASCII charcier from the user and prints out the coeneyonding category from the tist below. Do see use any hardcoded ASCII values in your code. Fer example, to check if character ch is the letser A. dec ifich +A+)zaher than iffh 65. Do not use any library cail to do shese compratations (thete are library fuections that actually sotve this question). - Uppcreaseleter - Lowercase leterr - Digit (0 to 9) - Other These are sample outputs. QURSTION6. (10 paiats) Declare two integer variables (int a-7, b-10;) and a flout varibble (fleut averuge). Compute the average of a and b and store the result in average. Do this in throe different waysi one way that results in an inseger division and two ocher ways that eesult in a flouting poiet disision. Prodoce an output like the one showan below. Thteger divizion tesult a. 8.00000 Fiating-paint divisian result thi s.500000 Thoating-point division retult 121 \&. 590000

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 Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

=+ (b) Show that X ,, - p X if and only if d( X ,, X) ->0.

Answered: 1 week ago

Question

4. Describe phases of majority identity development.

Answered: 1 week ago