Write a statement that writes both of their values

Assignment Help C/C++ Programming
Reference no: EM13694888

Question: Given an integer variable i and floating-point variable f, write a statement that writes both of their values to standard output in the following format: i=value-of-i f=value-of-f. Thus, if i's value were 25 and f's value were 12.34, the output would be: i=25 f=12.34. But you don't know what i's value and f's value are. They might be 187 and 24.06. If that's what their values are, the output from your statement should be i=187 f=24.06.

Remember : you are GIVEN i and f -- that means they are already declared and they are already haves values! Don't change their values by assigning or initializing them! Just print them out the way we have shown above.

Just write one statement to produce the output.

Remember: in your output you must be displaying both the name of the variable (like i) and its value.

Can you write this program in c language? Define every function.

Reference no: EM13694888

Questions Cloud

Program that generates 50,000 random integers : Program that generates 50,000 random integers from 1 to 6 (inclusive). Count the number of times that each number occurs and output the totals
Write a program that reads in babynames : Write a program that reads in babynames.txt and produces two files - Separate the data for the boys and girls. You may enter any names
Solution to the quadratic equation : The program should allow the user to input the particular integer coefficients of the quadratic equation and properly output either real or complex number solutions for the roots of the equation
How much heat is evolved or absorbed when aluminum cools : Problem- How much heat (in J) is evolved or absorbed when a 35.4 g sample of aluminum (specific heat = 0.900 J/(g K)) cools from 88.4oC to 71.9oC
Write a statement that writes both of their values : Write a statement that writes both of their values to standard output in the format
Write a program using visual basic 2012 : Write a program using Visual Basic 2012 that reads a test score from a text box each time a button is clicked, and then shows the two highest scores whenever a second button is clicked. Use two class-level variables to track the two highest scores..
What is the partial pressure of argon : Problem- When 10.33 g of neon is combined in a 23.96 L container at 98oC with 10.61 g of argon, what is the partial pressure (in mmHg) of argon
What is the magnitude of a point charge : What is the magnitude of a point charge that would create an electric field of 1.46 N/C at points 1.40 m away
Explain a solution contain a mixture of ba^2 : Problem- if a solution contain a mixture of Ba^2 and Ag^+ ions, write a short experimental procedure that would allow the two ions to be separated and includes a confirmatory test for verifying the presence of each ion.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Square root of a number n

USING C++ the square root of a number N can be approximated by repeated calculation using the formula NG=.5(LG+N/LG) where NG stands for next guess and LG stands for last guess

  Write a program that uses a string array to store a list

The program should allow the user via a menu to add an item to the list, clear the list, and display the list. You may assume that the list will never need to contain more than 10 items.

  Write a function template square()

Write a function template Square() that returns the square of its only argument.

  Individual genes are substrings of a genome

Individual genes are substrings of a genome delineated by 3-element start and stop codons. Genes begin with the start codon ATG and end with one of the following 3 stop codons: TAG, TAA or TGA. Note that start codons can appear anywhere in the string..

  Contains a design with a while loop

This problem contains a design with a while loop. Assume that sum references a doubleword in the data segment and that count is in the ECX register. Give a fragment of 80x86 assembly code that implements the design.

  Multiply a set of complex numbers

Write a C program to multiply a set of complex numbers stored in an array (that has been dynamically allocated). Specifically, first prompt the user to enter how many complex numbers need to be multiplied, dynamically create an array to store the ..

  1 nbspwrite a c program to accept distance in kilometers

1. nbspwrite a c program to accept distance in kilometers coverts it to meters and then displays the result.2.

  Floating point values into an array

Write a program that allows a user to enter 10 floating point values into an array. Then, in a loop, the program should prompt the user for a desired precision and subsequently display each value to the correct precision.

  Grab the tokens from the token vector and find single quot

There is segmentation fault in this code and I don't know where or how to fix it. The purpose of this code right here is to grab the tokens from the token vecctor and find single quotes.

  Store a list of student info

Store a list of student info, (id number, First name and Last name) using a link list. The ID is the key field. The program should implement a linked list using arrays.The program should process the following operations

  Write a c program to compute dr if f1=50 lb and f2 = 4000

make a program for:A hydraulic lift as shown below from fluid mechanics, it can be shown that a small force F1     acting over a piston of diameter D 1    can be multiplied into a large force   F 2    acting over a piston of diameter D 2  .

  Uses the sieve of eratosthenes algorithm

Write a complete program that uses the Sieve of Eratosthenes algorithm to list all prime numbers from 1 to 1,000 .

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