answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How can you get the day of year in VB.net if you input the integer value For Ex If you give 35 it should return Feb 4?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a line of code that asks the python user to input an integer greater than 0 and store this value in a variable and display its value?

integer = input("Please input an integer greater than 0: ") print(integer)


What will be the algorithm to input n integers and output the largest one?

var largest : integer largest = array[0] for n : integer in array if n > largest largest = n endif endfor return largest


Which scanner class method would you use to read integer as input?

The method Scanner.nextInt() returns an integer obtained as user input.


How to write a C plus plus Program to convert a string into an integer?

std::string input = ""; std::getline (std::cin, input); // get input from stdin std::stringstream ss (input); // place input in a string stream integer num = 0; if (ss >> num) // extract integer from string stream { // Success! } else { // Fail! }


How do you write a program that takes a list of all positive integers from input and counts as the integers are input?

// create an BufferedReader from the standard input stream BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String currentLine = ""; int total = 0; // read integers System.out.print("Input an integer: "); while (!(currentLine = in.readLine()).equals("")) { int input = 0; try { input = Integer.valueOf(currentLine); total += input; } catch (final NumberFormatException ex) { System.out.println("That was not an integer."); } System.out.print("Input an integer: "); }


How do you input odd integers?

let x = any integer then (2x + 1) = any odd integer


How do you end a while loop by accepting newline in integer variable?

A newline has ASCII character code 10, therefore you test for the integer value 10. That's not much use if the user needs to enter 10, therefore you should test the input before assigning the integer.


Write a program that prompts the user to input a positive integer It should then output a message indicating whether the number is aprime or not?

Output a prompt.Either:Read from standard input (std::cin) to an integer.Or:Read a line from standard input (std::getline()) to a string.Create a string stream (std::stringstream) to read the string.Read from the string stream to an integer.For each integer from 2 to half the entered integer:If the entered integer is divisible by the current integer:The number is not prime.Exit the program.The number is prime.Exit the program.


What number will the function return if the input is 12.2?

36.6


How do you write a program to input an integer?

The safest way is to capture the input as a string and then convert the string to an integer. The reason is that all standard input (regardless of where it comes from) is done through character streams and it's safer to capture this input using a string rather than trying to perform conversions on the incoming data directly.


Is this true or false.Two functions are defined with the same name and same return type the first one accepts string input parameter type and the second accepts integer this represents abstraction?

False. This represents Polymorphism


What component is used to input integer value in Delphi?

Tedit; TRadioButton, TCheckBox, TSpinEdit