jaygad
jaygad jaygad
  • 12-04-2022
  • Computers and Technology
contestada

Wtite a command to convert the points variable to any numerical data type (integer or float)

Respuesta :

scientificdiscoverer scientificdiscoverer
  • 03-06-2022

I am not sure what programming language that you are programming for, but I will assume Python/Java/C++.

Python:

points = "200"

points_Integer = int(points)

Java:

String points = "200"

int points_Integer = Integer.parseInt(points)

C++:

string points = "200";

int points_integer;

points_integer = (int) points;

I hope that this helps!

Answer Link
tahoorbajwa tahoorbajwa
  • 31-07-2022
String points = 200 for Java
Answer Link

Otras preguntas

WILL GIVE BRAINLIEST IF ANSWERED FAST!!!
One of the acute angles of a right triangle is 36 degrees. Find the other acute angle.
https://brainly.com/question/31367495
WILL GIVE BRAINLIEST IF ANSWERED QUICK!! I GIVE GOOD RATINGS FOR GOOD ANSWERS!
You expect KT Industries (KTI) will have earnings per share of $5 this year and expect that they will pay out $1.50 of these earnings to shareholders in the for
Silver, gold, platinum, are ferrous metals. TRUE OR FALSE
Terrell calculated the interior angle sum of a 13-sided figure to be 2,340. is Terrell's calculation correct? Explain.
2 ( k - 5 ) + 3k = k 6
State the name of the reaction for the traditional making of lime?
Differenciate between chemical and structural formulae