Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
write the statement to convert a number stored in a string variable ‘num’ to a double data type.
Home
Education
write the statement to convert a number stored in...
asked
Dec 23, 2021
in
Education
by
JackTerrance
write the statement to convert a number stored in a string variable ‘num’ to a double data type. Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 23, 2021
by
JackTerrance
Best answer
So, String num; num=Double.parseDouble(num); Please mark brainliest
Related questions
0
votes
Q: (i) x=5, y=6,2=20Q8) Consider the following statements and describe the output/statement required:(a) To retrieve the data type of the inputted string “Covid 19” stored inside the variable Disease.(b) x,y=”99″, “9”,Find the concatenated value of x and y and also retrieve the address of x and y.(c) Q= “Class XI” * 3
(i) x=5, y=6,2=20 Q8) Consider the following statements and describe the output/statement required: ... multiple assignment statements. Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program to prompt the user for days and rate per day to compute total pay. Use 50 days and a rate of 3.5 per day to test the program. Total pay is equal to (days* Rate per day). You should use input to read a string and float() to convert the string to a number.
Write a program to prompt the user for days and rate per day to compute total pay. Use 50 days and a rate ... the string to a number. Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: b. Write a java statement to accomplish each of the following tasks:i. Declare a variable, sum and a to be of type int.ii. Assign 1 to variable a.iii. Assign 0 to variable sum.iv. Add variable a to variable sum and assign the result to variable sum.
b. Write a java statement to accomplish each of the following tasks: i. Declare a variable, sum and a to be ... value of variable sum. Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write the output:num=1def myfunc(): num=10 return numprint(num,end=’ ‘)
Write the output: num=1 def myfunc(): num=10 return num print(num,end=’ ‘) print(myfunc()) Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Wt is octal number system write steps. To convert the octal convertion
Wt is octal number system write steps. To convert the octal convertion Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program to convert a decimal number into binary number using function
Write a program to convert a decimal number into binary number using function Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: class Modulus {public static void main(String args[]){double a = 25.64;int b = 25;a = a % 10;b = b % 10;System.out.println(a + ” ” + b);}
class Modulus { public static void main(String args[]) { double a = 25.64; int b = 25; a = a % 10; b = b % 10; ... (a + + b); } } Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: import java.io.*;class employee{int pan;String name;double taxincome;double tax;
import java.io.*; class employee { int pan; String name; double taxincome; double tax; void input(int p1, ... help something is wrong Select the correct answer from above options...
asked
Dec 15, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What are the basic difference between variable and data type in the c?
What are the basic difference between variable and data type in the c? Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: → Write a program to print your detailsint soll Number, string className, string Name.
→ Write a program to print your details int soll Number, string className, string Name. I want this program with ... for lifetime Select the correct answer from above options...
asked
Dec 22, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program that inputs a strig and then print the string, equal to number of times its length
write a program that inputs a strig and then print the string, equal to number of times its length Select the correct answer from above options...
asked
Nov 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: 5. Write a program to count the number ofspaces, upper case and lower case charactersin a string, where the string needs to be entered
5. Write a program to count the number of spaces, upper case and lower case characters in a string, where the ... entered by the user Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: String Slicing means:1.to convert the string in capital2.to check whether a string has more than one word3. to get only a part of a string4. to convert the string in reverse order
String Slicing means: 1.to convert the string in capital 2.to check whether a string has more than one ... in reverse order computet Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write one sentence of each type- Declarative statement and Interrogative statement
Write one sentence of each type- Declarative statement and Interrogative statement Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output of the program? #include #include void fun(char *msg, …); int main() { fun(“indiabix”, 1, 4, 7, 11, 0); return 0; } void fun(char *msg, …) { va_list ptr; int num; va_start(ptr, msg); num = va_arg(ptr, int); num = va_arg(ptr, int); printf(“%d”, num); } indiabix 1 7 11 0 1 4 7?
What will be the output of the program? #include #include void fun(char *msg, ); int main() { fun( indiabix , 1, 4, ... 7 11 0 1 4 7? Select the correct answer from above options...
asked
Nov 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...