Questions tagged [output]

The externally observable consequences of calling a program on some input

The output of a program is the set of externally observable consequences of running a program on the given input.

A program's output can be manifested in several forms:

  1. What is printed to and/or
  2. What is written to an external file
  3. What changes are made to the inputs, which are then used in other functions or programs
9797 questions
4
votes
1 answer

Residuals from first differenced regression on unbalanced panel

I am trying to use plm to estimate a first differenced model on some unbalanced panel data. My model seems to work and I get coefficient estimates, but I want to know if there is a way to get the residual (or fitted value) per observation used. I…
Misophist
  • 55
  • 3
4
votes
2 answers

How to run a Racket program without output being quoted?

I have a basic Racket program: hello.rkt: (write "Hello, World!") When I run it with racket -f hello.rkt, I get the following output: "Hello, World!" Is there a special compiler flag, or special version of "write/print" that removes the quotes…
Dmytro
  • 5,068
  • 4
  • 39
  • 50
4
votes
2 answers

writing console output in java

class HelloWorld { public static void main(String args[]) { int b; b = 'A'; System.out.write(b); System.out.write('\n'); System.out.write(97); System.out.write('\n'); System.out.write(1889); System.out.write('\n'); } } output of this program is…
dulaj sanjaya
  • 1,290
  • 13
  • 25
4
votes
2 answers

C# Output To a Text Box

This is going to sound really stupid, but I'm taking a class in C# where we are skipping around the book and working only from a console application. We were given an exercise to build sentences in strings based on arrays of articles, nouns, verbs,…
JBM
  • 63
  • 1
  • 2
  • 12
4
votes
4 answers

convert char to integer

I'm trying to input a series of numbers (i.e. 123456789), and then having output it each one at a time (i.e. 1, 2, 3, ... , 9). However, after the 9, which is str[9] onwards, the output value would be random numbers such as -48, 32, 9, -112. How do…
M.H.F
  • 81
  • 2
  • 5
4
votes
1 answer

Printing to terminal using Abaqus nogui python interface

When running abaqus nogui python script I would like to output the status of the script to the terminal. But when I do, e.g.: print("Opening ODB...") print("Plotting images...") I also tried: print "Opening ODB..." print "Plotting images..." and…
UN4
  • 587
  • 5
  • 19
4
votes
3 answers

Casting an object in inheritance, why this output?

There is class T: public class T { protected String name; public T(String name) { this.name = name; } public String toString() { return "T:"+this.name; } } Class G: public class G extends T { public…
Pichi Wuana
  • 732
  • 2
  • 9
  • 35
4
votes
1 answer

Incorrect output from user input based on conditional requirements

My program should print out the name and age of all cats with claws who are over 3 years old. For the following input Enter the name of Cat 1: Sam Enter the age of Cat 1: 1 Enter the weight of Cat 1: 5 Enter the breed of Cat 1: fluffy1 Does the cat…
4
votes
1 answer

How to disable native library output?

I'm using a native DLL library with JNA. This library outputs (via printf or cout I suppose) some stuff in my java console that I don't want to see. The library is provided by someone else and I can't modify it. My java application also print some…
lmo
  • 497
  • 5
  • 23
4
votes
1 answer

Java Graphics2D Drawing into BufferedImage

I'm busy fiddling around with Java's Graphics2D and drawings and I although it works I am not sure how to create a BufferedImage from this graphic which it seems I need to do in order so save it somewhere. I have something very basic because I'm…
TheLovelySausage
  • 3,838
  • 15
  • 56
  • 106
4
votes
3 answers

Writing a file to users HOME directory in C

I am trying to write a .txt file to the user's HOME directory. I have tried: char str[] = "TEST"; char* file = strcat(getenv("HOME"), "/dataNumbers.txt"); //I am concatenating the user's home directory and the filename to be created. myFile =…
Hani Al-shafei
  • 149
  • 1
  • 2
  • 13
4
votes
2 answers

Save the output of an r script including its commands

I want to save a part of my r script output including the commands into a text file. I know sink() but it does not include the commands or I could not find a specific option to do that. Is there any possibility to capture the commands and its…
Markus Graf
  • 533
  • 3
  • 16
4
votes
2 answers

Angular 2: What are @input and @output properties

In a @component, What are the @input and @output properties stands for and uses of those? What are directives and why we have to put directives like below structure? directives:[CORE_DIRECTIVES, FORM_DIRECTIVES] It would be nice if someone can tell…
user5605068
4
votes
1 answer

Ansible: make output from a command become a key-value item/variable for the next command

I want to use this output (from a previous command) as an array of key-values or as an inventory for the next command in the same playbook stdout: hot-01: 10.100.0.101 hot-02: 10.100.0.102 hot-03: 10.100.0.103 .... hot-32: 10.100.0.132 like this: -…
ady8531
  • 689
  • 5
  • 13
  • 24
4
votes
2 answers

problems with checking input in java

The title is deceiving however I didn't really know how to ask this. I am playing around with java. This is my code: package zodiac; import java.util.Scanner; public class Zodiac { public static void main(String[] args) { Scanner…
SebastianZdroana
  • 209
  • 1
  • 11