Write a php program to take the current room temperature from the user in degree celsius and try to convert into Kelvin
Q: Write a PHP program to read input the radius of a circle(in cm) from the user and print the area and…
A: Area of circle is pi x radius2 Perimeter of circle is 2 x pi x radius
Q: Write a PHP program to take input a string and print it's length in output. Do fast please.
A: Write a PHP program to take input a string and print it's length in output. Solution: A string can…
Q: Write a PHP script to take input a string from the user and a) transform all characters in the…
A: Write a PHP script to take input a string from the user anda) transform all characters in the string…
Q: 13. Write a PHP program to print alphabet pattern 'A'. Expected Output: *** * * * * ***** * * * * *…
A: A PHP program to print alphabet pattern A
Q: Write a PHP program to read input the length of two sides of a triangle and the angle between both…
A: Write a PHP program to read input the length of two sides of a triangle and the angle between both…
Q: 5. Write a PHP program to input two integers p, q having the same number of digits and find the…
A: Write a PHP program to input two integers p, q having the same number of digits and find the number…
Q: Write a PHP program to take input the name of a person input from user and it output print the…
A: Write a PHP program to take input the name of a person input from user and it output print the…
Q: write a php script that let the user to enter any amount of money and clasiffies it into its…
A: HI THERE I AM ADDING ASNWER BELOWPLEASE GO THROUGH IT THANK YOU
Q: Write a program in coffee script to find a^b Without using any inbuilt method. A is 78 B is 5
A: Required:- Write a program in coffee-script to find a^b Without using any inbuilt method. A is 78B…
Q: Find the syntax error in the PHP program given below to print the output 5 4 3 2 1. 0;i--){ echo "i…
A: Program Explanation :- According to the question the error are come in because $ sign is not present…
Q: Write a program using PHP to check the system time and print message based on system time. System…
A: s
Q: D) Write a PHP program in which the user enters the angle of incidence (in degrees) of a plane…
A: According to the law of reflection, the angle of reflection is equals to the angle of incidence.
Q: Write a PHP program to take input the BMI of the user and print the grade of the user in the output.…
A: Use if-elseif-else structure to check for three conditions and print respective message
Q: Write a php program to take input a string and an integer from user and print if the integer is…
A: Write a php program to take input a string and an integer from user and print if the integer is…
Q: Write a php program to get the string from the user and capitalize the first letter of string
A: Required:- Write a PHP program to get the string from the user and capitalize the first letter of…
Q: Write a short note on validating an All-in-One Form? Write a PHP Script explode() function?
A: PHP form validation: The form validation is a technique to check whether the required fields are…
Q: Write a complete PHP program to solve 100+101 and solve 1+2+3+...+100=?
A: Solve 100 + 101 <!DOCTYPE html><html><body> <?phpfunction test($x, $y) {…
Q: 2. Write a PHP script that rounds off the number 1.65 to 1.7 and displays the value 1.65 both before…
A: Write a PHP script that rounds off the number 1.65 to 1.7 and displays the value 1.65 both before…
Q: Write a php program that takes the number from the user and then check whether this number contains…
A: logic:- take integer and searching digit. iterate through each digit in integer using loop check…
Q: Find the syntax error in the PHP program given below to print the output 5 4 3 2 1 0; i--){ echo "i…
A: Missing $ sign for variables ============ Correct program ============ <?php $s = 5;…
Q: Write a php program using else_if / switch statement to accept the code and display the message. The…
A: Given:
Q: Write a PHP Code for an electron moving ina circle of radius of 10 cm. with a constant speed of 4 *…
A: Required:- Write a PHP Code for an electron moving in a circle of radius of 10 cm. with a constant…
Q: $oldtxt "Hello World!"; %D $newtxt
A: In this question, we have given one string/text "Hello World". And we have to replace the word…
Q: The instantaneous voltage in an RCL circuit is described by the following equation; V(t) = A,eSit +…
A: Input : Value of R Value of L Value of C Value of A1 Value of A2 Output : Value of V(t) at t=…
Q: Write a php program that print out a a table of the dates that Labor Day Falls from 2004 to 2020
A: Program: <?phpecho "Table of dates for Labor day are:<br>"; for ($x = 2004; $x <= 2020;…
Q: MAIN MENU ENTER YOUR NAME: [John Smith MAIN DISH: ADOBO - P30.00 CHOPSUY - P25.00 BEEF STEAK -…
A: It is defined as a server side scripting language. that is used to develop Static websites or…
Q: Write a php program to print the current time with hours, minutes, second. The time format must be…
A: Required:- Approach:- using the date inbuilt function we can pass the formatted arguments like in…
Q: Write a PHP program to remove the character in a given position of a given string. The given…
A: ANSWER : PROGRAM : <?phpfunction test($s, $n) { return…
Q: Your task is to find the electric current at a point on the circle Write a PHP Code for an electron…
A: Algorithm :- Using the relation we know that I = q / t = electronic charge / time period =t /…
Q: 7. Write a PHP program to read input two integer values x,y from the user and print the value of…
A: <?phpecho "Enter x: ";$num1=trim(fgets(STDIN));echo "Enter y:…
Q: Write a Servlet program to generate a HTML displaying “Welcome to the world of Java” in web server…
A: Answer :
Q: Write a program in Php programming language and you have to take a number from user and you take the…
A: Requirements :- Write a program in Php programming language and you have to take a number from user…
Q: Write a PHP program to take input the weight (in kg) and height(in m) of an user. In output print…
A: Write a PHP program to take input the weight (in kg) and height(in m) of an user. In output print…
Q: write a php script that let the user to enter any amount of money and clasiffies it into its…
A: <?php// PHP program to accept an amount// and count number of notes // function to count and//…
Q: Write a php program to take the angle of incidence from user & then find the angle of reflection
A: Required:- Write a PHP program to take the angle of incidence from the user & then find the…
Q: Rihana has some amount of American dollars. And she wants to know how if she convert the dollar to…
A: Required:- Rihana has some amount of American dollars. And she wants to know how if she converts the…
Q: m that can send a pdf file by e
A: Php program that can send a pdf file by e-mail to a client
Q: Write a program in PHP to take the password length and password contains 0 to 9 and capital case…
A: Lets see the solution.
Q: Write a php program to take the current room temperature from the user in degree celsius and try to…
A: Answer: Approach:- 1. Take the current room temperature (in C) from the user using the readline…
Q: Write a PHP Program to remove a part from the beginning of the user entered string. For example:-…
A: Solution :
Q: Write a PHP program to take input a string from the user and print the count of vowels ('A', 'E',…
A: code snippet:
Q: Write a PHP program to take input the weight(in Kg) and height(in m) from the user and print the BMI…
A: Here have to determine about php code for BMI calculator.
Q: write a program in php to find the mole fraction of 2 solvent from the mole fraction of 1 solvent…
A: Required:- write a program in PHP to find the mole fraction of 2nd solvent using the mole fraction…
Q: Write a PHP program to check whether the given number is even or odd
A: PHP code to check number is odd or even is as given below.
Q: write a PHP code to get the number of holes after taking the number of electrons in intrinsic…
A: Write a PHP code to get the number of holes after taking the number of electrons in the intrinsic…
Q: The simplified equation for an RCL circuit with applied voltage E is given by; 1 Q = Qo - (sin…
A: <?php $t=0.5;$q0=readline(" Enter value of q0 ");$Q=NULL;$Q = $q0 - 1/(10*sqrt(3)) *…
Q: Create a PHP program to print the sum of two integer values without using the '+' operator or any…
A: Ans: Code: <?php function Add( $x, $y){ if ($y == 0) return $x; else…
Q: 6. Write a PHP program to input the 3 side lengths(in cm) of a triangle and print whether the…
A: According to the Question below the Solution: Output:
Q: Write a php code for a fuse with circular cross sectional radius of 0.15mm blows at 15 A. What is…
A: The relation for current and radius is I12I22=R13R23 ⇒ R2 = R13*(I22I12)3
Step by step
Solved in 3 steps with 1 images
- Write a JAVA program that reads the user's first name and last name, and then use them to create a UPM email for the user. If the total number of characters in the user's full name, (first name + last name), is less than 10 letters, you should use the full name to create the user’s email. The general format of the user’s email should look like this: firstName.lastName@upm.edu.sa For example: First name = Ali Last name = Omar Total number of letters in both first and last names = 7 letters (<10 letters) Output = omar.ali@upm.edu.sa If the number of characters in the user's full name, (first name + last name), is greater than or equal to 10 letters, you should only use the first character in the user’s first name, and the whole last name to create an email. For example: First name = Abdullah Last name = Omar Total number of letters in both first and last names = 12 letters (>=10 letters) Output = a.omar@upm.edu.sa Note: you can assume the user will always enter lowercase lettersWrite a php program that takes the number from the user and then check whether this number contains a given digit and you should take the digit also from user.Write a PHP Code to find the conductivity of wire after taking resistivity of wire from the user|
- Write a program that prints a custom conversion table from Celsius temperatures to Fahrenheit and Newton (Links to an external site.) temperatures. The formula for the conversion from Celsius to Fahrenheit is : F=9/5*C+32 F is the Fahrenheit temperature, and C is the Celsius temperature. The formula for the conversion from Celsius to Newton is C = 100/33*N N is the Newton Temperature and C is the Celsius temperature Your program should prompt the user for a lower value and upper value for a range of temperatures in Celsius. It should then prompt the user for the amount they want to increment by. Then use a loop to output to a file named conversion_table.txt a table of the Celsius temperatures and their Fahrenheit and Newton equivalents within the range of values using the increment given by the user. Make sure to format your output to 2 decimal places. INPUT VALIDATION: Ensure the second number is greater than the first number, and make sure the increment is greater than 0.Using Java.. Write a program that reads the user's first name and last name, and then use them to create a UPM email for the user. If the total number of characters in the user's full name, (first name + last name), is less than 10 letters, you should use the full name to create the user’s email. The general format of the user’s email should look like this: firstName.lastName@upm.edu.sa For example: First name = Ali Last name = Omar Total number of letters in both first and last names = 7 letters (<10 letters) Output = omar.ali@upm.edu.sa If the number of characters in the user's full name, (first name + last name), is greater than or equal to 10 letters, you should only use the first character in the user’s first name, and the whole last name to create an email. For example: First name = Abdullah Last name = Omar Total number of letters in both first and last names = 12 letters (>=10 letters) Output = a.omar@upm.edu.sa Note: you can assume the user will always enter lowercase…Write a program to implement seat booking system for a movie theater. Suppose this movie theater has 40 seats and any person can book this seat over internet and paying money over internet
- Write a php program to take input a string and an integer from user and print if the integer is equal to the length of the string or not.Write a python program that prompts the user for a word. If the word comes between the words apple and pear alphabetically, print a message that tells the user that the word is valid, otherwise, tell the user the word is out of range.Write a program that reads the user's first name and last name, and then use them to create a UPM email for the user. If the total number of characters in the user's full name, (first name + last name), is less than 10 letters, you should use the full name to create the user’s email. The general format of the user’s email should look like this: firstName.lastName@upm.edu.sa For example: First name = Ali Last name = Omar Total number of letters in both first and last names = 7 letters (<10 letters) Output = omar.ali@upm.edu.sa If the number of characters in the user's full name, (first name + last name), is greater than or equal to 10 letters, you should only use the first character in the user’s first name, and the whole last name to create an email. For example: First name = Abdullah Last name = Omar Total number of letters in both first and last names = 12 letters (>=10 letters) Output = a.omar@upm.edu.sa Note: you can assume the user will always enter lowercase letters
- This is the question - Use the web to learn how to use the LocalDate Boolean methods isBefore(), isAfter(), and equals(). Use your knowledge to write a program that prompts a user for a month, day, and year, and then displays a message specifying whether the entered day is in the past, is today (the current date), or is in the future. This is the code it gives me to start with - import java.util.*; import java.time.*; public class PastPresentFuture2 { public static void main (String args[]) { LocalDate today = LocalDate.now(); LocalDate enteredDate; int mo, da, yr; int todayMo, todayDa, todayYr; Scanner input = new Scanner(System.in); System.out.print("Enter a month >> "); mo = input.nextInt(); System.out.print("Enter a day >> "); da = input.nextInt(); System.out.print("Enter a year (four digits) >> "); yr = input.nextInt(); // Write code here } }Write a program that asks users when their birthday is. Use information provided to give them their astrological sign. Each of the twelve signs should display a different horoscope. Use the following dates for each sign, keeping in mind that both month and day must be evaluated for an accurate result. Aries: March 21–April 20 Taurus: April 21–May 21 Gemini: May 22–June 21 Cancer: June 22–July 22 Leo: July 23–August 22 Virgo: August 23–September 23 Libra: September 24–October 23 Scorpio: October 24–November 22 Sagittarius: November 23–December 21 Capricorn: December 22–January 20 Aquarius: January 21–February 19 Pisces: February 20–March 20Write a Java program for a school for assigning students to exam halls. Your program should ask students to enter their student number via keyboard, then tells them in which exam hall they should do their exam. In this school, student numbers have a 6-digit format and range between 212001 to 222999. Your program should assign students to the exam halls as: ▪ If the last two digits of a student number is between 00 to 33, The student is assigned to Hall-x ▪ If the last two digits of a student number is between 34 to 66, The student is assigned to Hall-y. ▪ If the last two digits of a student number is between 67 to 99, The student is assigned to Hall-z. An error message should be printed in the console if the entered student number is not in the range. Note that you may use nested if statements in your program structure. But none of the branching conditions should use logical conjunction or logical disjunction expression.