Create a program called dataexercise.c

Assignment Help Computer Engineering
Reference no: EM13322393

Create a program called dataExercise.c that declares the following variables and displays their values:

  1. Declare a character variable with value 'a', and display the character using printf with a %c format. Then add a second printf that displays the characater with a %d format.
  2. Declare a short int variable with a value set to the maximum value of a short int (the maximum value for whatever machine I happen to use to grade your assignment - so use the correct limits.h constant). Display the value using printf with a %d format.
  3. Declare a double variable with a value set to positive infinity. Display the value using printf with a %f format.
  4. Prompt the user and accept the following 4 types of values from a single input line: char int char float
  5. Display the values that were read in (4)
  6. Prompt the user and accept the following types of values from a single input line: char float int char
  7. Display the values that were read in (6)
  8. Prompt the user and accept an integer value
  9. Display the value read in (8) in a right-justified field of width 15, with leading zeroes
  10. Prompt the user and accept a float value
  11. Display the value read in (10) in a right-justified field of width 15, with 2 decimal points of precision, and leading spaces.

Reference no: EM13322393

Questions Cloud

Explain what was the mass percentage of cholride : How many moles of chloride were present in the unknown. d. What mass of cholride was present in the unknown? e. What was the mass percentage of cholride present int the original sample
Both adams and wolfe are large public corporations : Both Adams and Wolfe are large public corporations with subsidiaries throughout the world. Adams uses a centralized approach and makes most of the decisions for its subsidiaries. Wolfe uses a decentralized approach and its subsidiaries ma..
What frequency difference will unit detect from car receding : A state highway patrol car radar unit uses a frequency of 9*10^9 Hz. What frequency difference will the unit detect from a car receding
Create the boolean algebra expression for the output : Create a truth table for your circuit that lists the following: X1, X2, S, D, Q, and Not Q. X1 and X2 are input signals to the multiplexer, and S is the multiplexer selector signal.
Create a program called dataexercise.c : Create a program called dataExercise.c that declares the following variables and displays their values.
Define the concentration of sulfuric acid : The concentration of sulfuric acid, H2SO4 is 36M. What volume is required to prepare 6.0 L of 0.12 M acid
What voltage appears across the primary coil : A step down transformer produces a voltage of 5.3 V across the secondary coil when the voltage across the primary coil is 100V. What voltage appears across the primary coil
State how much work has been done if the cylinder goes raise : A piston has an external pressure of 14.0 . How much work has been done if the cylinder goes from a volume of 0.180 liters to 0.650 liters.
Compute their mutual inductance : Two coils are at fixed locations. When the current in coil 2 increases at a rate of 15 A/s, the emf in coil 1 is 25 mV. Find their mutual inductance

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain the averaging algorithm

Explain the averaging algorithm

  A comfort level with the switches and maybe routers

Do you feel comfortable working with network infrastructure itself.

  Write down a program that requests an integer

The Twelve Days of Christmas. Each year, PNC Advisors of Pittsburgh publishes a Christmas Price List. See Table 6.11. Write a program that requests integer from 1 through 12 and then lists the gifts for that day along with the day's cost.

  Explain the specifics of the event including date

explain the specifics of the event including date, time, location, charity event, and organization in a 1-2 page flyer. Also, include some sort of history or explanation for the purpose of the event.

  Soda vending machine design

Soda Vending Machine Design,    A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Describe the use of web standards

What are web applications and how are they used? give two examples of web applications.

  Write program that creates an array of q integers

write down program that creates an array of Q integers

  Generate a new java project in eclipse

Generate a new Java Project in Eclipse

  Find out the error in the recursive method

Find out the error in the recursive method.

  Create logic for application which reads in name of item

Products shown in accompanying table. Create the logic for application which reads in name of the item ordered by the customer and outputs either?

  What are the feelings positive or negative

IT administrators in small companies must often execute several functions at the same time like network administrator, database administrator, user consultant and others. Compared to their situation, their colleagues in larger companies can get mo..

  Suppose cookies are not disabled on the client

suppose cookies are not disabled on the client.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd