Write a program that stores the values

Assignment Help Programming Languages
Reference no: EM132211462

Question: Write a program that stores the values ' X' and 76.1 in separate memory cells. Your program should get the values as data items and display them again for the user when done.

I have this but for some reason its unsuccessful build please help. I just want to copy and paste to get it successful

/* program to display the character "x" and values "76.1".

//Headers file section

#include

//Program begins with a main function

void main()

{

//declare variables

char ch;

double num;

the values "X" and "76.1' stores in separate memory cells ,ch and num.

//intialization of values

ch="X';

num=76.1;

//displaying the stored values

printf(" the character is ="%c",ch);

printf(" The value is = %.1f",num);

}

Reference no: EM132211462

Questions Cloud

Write a program that will take integers from the user : Write a program that will take 7 integers from the user, store them in an array. Write three functions which takes the aforementioned array as input.
Write a program that takes in a string from the user : Write a program that takes in a string from the user. Count the number of consonants, vowels, digits and "other" characters in the string.
Write program in script file that converts measure of area : Write a program in a script file that converts a measure of area given in units of either m^2, cm^2, in^2, ft^2, yd^2, or acre to the equivalent quantity.
Write a program stringarray usign given information : Write a program "StringArray" which creates a string array that contains your top 5 favorite kinds of foods (Italian, Chinese, etc.).
Write a program that stores the values : Write a program that stores the values ' X' and 76.1 in separate memory cells. Your program should get the values as data items and display them again.
What was the highest grade on test two : Write a method that takes in a teacher's last name and exam number via parameters. Ask the teacher (using her name) to tell you the highest score on that exam.
Create a make file to compile and link all three files : Create a make file to compile and link all three files. Do not change the names of the three files: deposit.c , withdraw.c and atm.c
Write a program that requests a floating point number : Write a program that requests a floating point number then separately outputs the integer and fractional components.
Write a program that simulates the rolling of two dice : Write a program that simulates the rolling of two dice. The program should use rand to roll the first die and again use it to roll the second die.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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