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

  Develop a new predict function

Develop a new predict function so-called "elemnts_are_numbers" that checks all the elements of a list are numbers - Compare these two functions (sum-list 1 and sum-list2), what these function do?

  Develop program emulate purchase transaction at retail store

Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class.

  Nested if functions along with vlookup function

The Vlookup function returns a #n/a! error if no lookup value is supplied, and various other errors whne invalid keys are entered. Use a combination of three levels of nested if functions, and other functions to avoid these problems.

  Problem 1 where on the implied uncertainty spectrum do the

problem 1 where on the implied uncertainty spectrum do the following products fall? fill the letters a b or c in three

  What is a computer program

What is a Computer program? What is structured programming? What is modular programming? Why we use it?

  Draw diagram shows occupancy of buffer as function of time

A transmitter with rate R bps serves the buffer by sending the bits whenever available. Draw a diagram that shows the occupancy of the buffer as a function of time, for different ranges of values for R.

  Machine language used by sim virtual computer simulator

Write a program in machine language used by the SIM virtual computer simulator package to calculate the sum of the four numbers stored in memory addresses A1, A2, A3 and A4.

  Create generic stack class called mystack to place furniture

Application to simulate distributing furniture from Whole sale center to different stores -  Write an application to simulate distributing furniture from Whole sale center to different stores.

  Calculate the average of the 5 grades passed and display

Calculate the average of the 5 grades passed in and display the average with 1 decimal place and also display the letter grade.

  Explain the problem of storing data in matrix

Each such element is accompanied by its two indexes (the row and the column). Explain in what ways such structure is similar to and/or different than list.

  Code to sum of all the elements of the array

Write some code that places the sum of all the elements of the array x into total. Declare any variables that you need.

  Complete the attached code and do junit testing

Complete the attached code and do junit testing. Can you help with this? Testing class tests Check Date methods serves as a "test plan" for developer's testing.

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