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

write 0.196 as a percentage
function rule of 8 less than one third of x is y
Point G is the centroid of triangle ABC. AG = (5x + 4) units and GF = (3x – 1) units. What is AF? 11 units 15 units 43 units 51 units
Let (7,-5) be a point on the terminal side of theta. Find the exact values of sin, csc, and cot.
what is literary tone
5x + 4 > -6 show your work
Which statements about the life of William Morris are true? Choose all answers that are correct. A. He admired factory-made objects and made art only for wealt
What is an explanation of why producers are always found at the lowest trophic level? A) Producers are larger than consumers. B) Consumers are eaten by a varie
please help me! which one is correct? They carried and canoed the furs from the interior posts to the trade centers. ~Traders ~Voyageurs ~Hunters ~Guides
is 40(2x-16y) equivalent to 42x-56y