1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Evgen [1.6K]
3 years ago
10

Alguien me podria ayudar a hacer este codigo porfavor? en php Desarrolle el código que solicite los datos (desde teclado) Nombre

, Edad y peso. Posteriormente realice lo siguiente: a) Imprima los datos. b) Solicite el peso hasta que el rango de valores sea entre 50 y 100 kilos. c) La edad debe ser entre 18 y 50 años Suba los archivos con el código y la evidencia de la ejecución.
Computers and Technology
1 answer:
Kruka [31]3 years ago
8 0

Answer:

Explanation:

El codigo solicita los datos y los analiza. Si estan bien continua, sino los vuelve a solicitar. Cuando esten todos los datos bien los imprime.

import java.util.Scanner;

class Brainly {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Nombre: ");

       String nombre = in.nextLine();

       int Edad, peso;

       while (true) {

           System.out.println("Edad: ");

           Edad = in.nextInt();

           if ((Edad >= 18) && (Edad <= 50)) {

               break;

           }

       }

       while (true) {

           System.out.println("Peso: ");

           peso = in.nextInt();

           if ((peso >= 50) && (peso <= 100)) {

               break;

           }

       }

       System.out.println("Nombre: " + nombre);

       System.out.println("Edad: " + Edad);

       System.out.println("Peso: " + peso);

   }

}

You might be interested in
The option to add the date and time to a document is located in the
Tomtit [17]

Answer:

The option to add the date and time to a document is located in the

text grouping on the Insert tab.

Explanation:

8 0
3 years ago
Read 2 more answers
In the Database sheet, enter conditions in the criteria range for unoccupied two- and three-bedroom apartments that need to be r
kari74 [83]

Answer:

See attachment fir procedures to get answers.

Explanation:

Given that;

In the Database sheet, enter conditions in the criteria range for unoccupied two- and three-bedroom apartments that need to be remodeled. Enter criteria as text only, without use of quotation marks. Be sure to enter the criteria separately in rows 3 and 4.

See attachment

3 0
3 years ago
Select the correct answer.
tia_tia [17]

Answer:

A

Explanation:

HTML is a coding language.

8 0
3 years ago
Give two examples of safe, professional usernames. (1-2 sentences)
erastovalidia [21]

Answer:

Safe username

Explanation:

OKNGR$#1133

PLMOKNG^&*89

5 0
2 years ago
Write a program that prompts the user to enter a four-digit integer and displays the number in reverse order. Here is a sample r
iVinArrow [24]

Following are the code that is written in c language

#include <stdio.h>

int main() // main function

{

int n1,t; // declaring variable

printf(" Enter an integer :");

scanf("%d",&n1); // taking input

while(n1>0) // iterating over the loop untill the value of n is greater then 0

 {

t=n1%10;

printf("%d",t);

printf("\n");

n1=n1/10;

}

return 0;

}

Explanation:

we taking an integer value n1 and iterating over the loop untill n1>0

suppose n1=1234

then  t=n%10;

means t=1234%10

as % holds reminder means t=4

then print the value of t means print 4

and n1 becomes 123 which is > 0  again condition is checking and same process is follow untill n1>0

output

Enter an integer: 5213

3

1

2

5

7 0
3 years ago
Other questions:
  • My home PC has IP address 192.168.1.22 and connects to the Internet through a NAT router. Assume I am downloading a web page fro
    5·1 answer
  • The "instance" relationship shows that something is an object of a ____.
    5·1 answer
  • Impanation stage contain ​
    10·1 answer
  • (BRAINLIEST QUESTION!!!)
    11·1 answer
  • Create a program that generates a report that displays a list of students, classes they are enrolled in and the professor who te
    11·1 answer
  • After separating from Mexico, Texas passed laws that made it harder for slave owners to _____________ slaves.
    12·2 answers
  • What symbol indicates that material has been copyrighted?
    8·2 answers
  • A device that filters data traffic at a network boundary​
    14·1 answer
  • Also have a good day people !!
    5·2 answers
  • Red + blue =<br>Red + green =<br>Magenta - blue =<br>Yellow - green =<br>Cyan - blue =​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!