Write VB.net program that will ask the user to enter his age and when clicka button, it will show as bellow: Enter your age: 20 You are 20 years old. You are required to write code for the button.
Q: make a simple java program that can calculate the amount of calories in a food
A: Editable source code:import java.awt.*; import java.awt.event.*; import javax.swing.*; import…
Q: Write a program to simulate a Banking Application with the following functionality: Setup an Account…
A: The program is written in java import java.io.*; import java.lang.*; import java.util.Scanner;…
Q: 5. Write a JAVASCRIPT program that prints the message "Booyah! it's Weekend." if the current day is…
A: Write a JAVASCRIPT program that prints the message "Booyah! it's Weekend." if the current day is…
Q: Write a complete Java program that uses System.out.println to output thefollowing to the screen when…
A: The program given will make use of println function defined within the out stream class of System…
Q: Develop a program to implement the division of the line segment. P В A You need to consider the…
A: Program Plan: Ask the user to Input the coordinates of A and B. Ask the user to input the ratio in…
Q: Create a java program of the given output below: Bluel: Terminal Window - FirstProgram Options My…
A: Coded using Java.
Q: Write an applet that displays a drawing of two eyes in the center of its window. When the mouse…
A: Complete answer is given below .
Q: Write a JavaFX program that prompts user to enter details: 1. To Enter user information (i.e.,…
A: Answer is given below .
Q: Write a console application that prints the next 20 leap years. A leap year is a year in which an…
A: CURRENT_YEAR = 2021NOF_LEAP_YEARS = 20 # Functionsdef is_leap_year(year): if year % 4 > 0:…
Q: Im trying to write a JAVA program that will allow me to input movies.csv and ouput "Wonders of the…
A: CODE:-
Q: 1. Complete the following JavaFX program: public class MyJavaFX extends public void // Create a…
A: Complete code: import javafx.application.Application;import javafx.scene.Scene;import…
Q: 5- What is the most reasonable thing to do when a red wave appear under a word such as in the figure…
A: Answer: See your code picture the references value is 0. So no reference in AppMessage. The…
Q: In fluid Dynamics, the reynolds number Re is a dimensionless number used to determine the nature of…
A: Requirements:- Matlab... Don't transfer to electrical. This is only for computer science. Else I…
Q: Write a JavaFX program that promts user to enter details: (PLEASE INCLUDE A SNAPSHOT OF THE CODE IN…
A: Please give positive ratings for my efforts. Thanks. PROGRAM import…
Q: Write a program that assists the user to determine a simple budget based on the income entered.…
A: Q: Code the given problem. Language used: C++
Q: Write a JavaScript function that do the following: prompt the user to enter his name display on the…
A: ALGORITHM:- 1. Take input name from the user. 2. Print the name with welcome. 3. Create the date…
Q: make a simple java program that can calculate the area of a circle add this button: 1.…
A: The code implementation is done in the Java AWT. The algorithm is given below. Algorithm: A frame…
Q: If you have a "switch" component "sl" and you want to check if the switch is "On", then you use the…
A: A switch will contain two options: ON OFF
Q: In python GUI or Visual Basics I need a room management system where you can book rooms and see if…
A: Dictionary is a data structure in python which stores key-values pairs. In this question, we use…
Q: Write a program in qt creator that asks the user to enter a temperature in Celsius, and then…
A: program in qt creator that asks the user to enter a temperature in Celsius, and then computes and…
Q: Java: List the reasons for entering the blocked state. For each of these, describe how the program…
A: Reasons for entering blocked state A process that is blocked is one that is waiting for some event…
Q: a) CREATE TWO STATIC CLASSES IN JAVA i- One for Countdown timer in minutes ii- One for the Sound…
A: Lets see the solution in the next steps
Q: Make a JavaScript program in notepad. Use the prompt() function to get two numbers from the user.…
A: //declare two numbersvar num1, num2; //propmt user to enter first and second number//convert it tot…
Q: text file. (e.g., message2.txt, notes.txt, message3.txt) try to the files. Develop a small menu like…
A: Pseudocode void main(){ print("Main Menu") print("1. Read a file") print("2. Quit")…
Q: Write a script that will ask the user to enter a number that is greater than 0. Then the script must…
A: Python program for above : import random # get a number from user num = int(input("Enter a…
Q: ase make a java program of an online food oder, that provide breakfast,lunch and dinner meals. for…
A: Task : Create a food ordering system in java that takes input : type of food user details type…
Q: Write a JavaScript function that do the following: • prompt the user to enter his name display on…
A: Given: To write a JavaScript function that do the following:• prompt the user to enter his name•…
Q: 3) Write a Java program for pathway recommendation from two places represented in x, y coordinate…
A: Console based program: import java.util.Scanner;public class Main{ class Point {…
Q: In Java only--Java Applets Create an applet that will draw a set of ovals and the user should be…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: 3. Write a Java program that displays the files name from desktop which has [txt] or [docx]…
A: Please find the answer below :
Q: Assuming that integer variables A and B are present in your workspace is this expression mod(A,B)…
A: mod(A,B)~=0 represents modulus of A and B is not equal to 0. not(rem(A,B)==0) represents remainder…
Q: Write a program that displays the color of a circle as black when the mouse button is pressed, and…
A: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.Pane;…
Q: Super@WUDOL MINGW64 ~/Desktop/cse1001/lab15 $ java Strings Enter a string: HELLO Enter a string:…
A: Here I have taken input from the user and then stored it into different variables. Next, while…
Q: Write a JavaFX program that prompts user to enter details: (PLEASE INCLUDE A SNAPSHOT OF THE CODE…
A: Programming is nothing but the process of creating a set of instructions which tell a computer how…
Q: Create a javafx for Calicos to Fahrenheit conversion application Temperature Converter Enter a…
A: Program : import javafx.application.Application;import javafx.event.ActionEvent;import…
Q: When I am trying to display a text using the console.log() function in JavaScript then a newline…
A: Console .log() function is used to print the statements. The console. log() function outputs a…
Q: Java Question- Convert this source code into a GUI application using JOptionPane. Make sure the…
A: Java Question- Convert this source code into a GUI application using JOptionPane. Make sure the…
Q: ssible.The boat has cargo capacity of 80kg. Your weight is 60kg. rest you can fill u t to be light…
A: Given : The boat has cargo capacity of 80 The person Weight is : 60 Maximum Weight that can be…
Q: Lets say you are travelling to an island by your boat.Your boat is lightweight and you need to keep…
A: code : - total weight you can carry = 120 kg your weight = 85 kg total weights of food you can…
Q: 1. Problem Statement: North Flik is a smart digital ant. Write a python program that helps Flik to…
A: Assumption - The direction in the input would be either of "east", "north", "west", and "south". I…
Q: In this task, you should design and implement a program that uses youtube-dl to download youtube…
A: This is a Java code using the javafx UI client for youtube-dl. The main function is to download…
Q: Write a Java program for a Temperature Converter with the following specifications: The program…
A: Formula to calculate celsius temperature using Fahrenheit temperature value. If F is the Fahrenheit…
Q: write a c++ OpenGL code for create blank window the color of the window is purple and the shape is…
A: the c++ OpenGL code for the square window with purple color is :
Q: of 1 + 1/2 + 1/3 + 1/4 + ... + 1/100 and output the results into a textbox called txtResults when a…
A:
Q: 2. Write a JAVASCRIPT program that prints the message "Hurray! it's weekend." if the current day is…
A: <html><body><p id="demo"></p><!-- day=0 then it is sunday day=1 then it…
Q: Make a JavaScript program that will ask for a letter (A-J) then use the switch statement to display…
A: Take the input Input range is A-J. Based on input print the corresponding country.
Q: 2) Write a JavaFX program that receives a number in centimetre in a text field and on clicking a…
A: Solution:-- 1)To do an java program that will calculate the conversion of centimeter to inch.…
Step by step
Solved in 2 steps with 1 images
- (3) Write a C# .NET Core Console App that asks the user to enter a number and then displays a string with the original number followed by the reverse of the number. For example, if the user entered 123 as an int you program should create a string "123321" and display it on the screenJava Programming Write an application that prompts the user for two integers and then prompts the user to enter an option as follows: 1 to add the two integers, 2 to subtract the second integer from the first, 3 to multiply the integers, and 4 to divide the first integer by the second. Display an error message if the user enters an option other than 1 through 4 or if the user chooses the divide option but enters 0 for the second integer. Otherwise, display the results of the arithmetic. Write your .java file here. Include your flowchart and sample output.(Use a switch statement only).Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named HomeSales that prompts the user for a salesperson initial (D, E, or F). Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue an error message for any invalid initials entered. Keep a running total of the amounts sold by each salesperson. After the user types Z or z for an initial, display each salespersons total, a grand total for all sales, and the name of the salesperson with the highest total.
- Latest version of NetBeans IDE Java Development Kit (JDK) 8 Create a folder named Dahan_yoon in your local Create a new project named LabExer5A. Set the project location to your own The program shall: generate a random number from 1 to 50 for a player to guess; display a message that indicates whether the player’s guess is correct, too low, or too high; and prompt the user to keep on guessing until the correct value is entered Create a try-catch structure that will handle two (2) exceptions. These are when the user inputs the following: a number that is out of range (1 – 50) a letter or any non-numeric character Prompt the user so that he can guess again if an exception is Display the number of total Note: An invalid input (when an exception is thrown) is not considered a valid guess or attempt.Create a Console application namedFirstNameLastName3CB Save the application in the FirstnameLastnameCSUnit3C folder. The recent bad weather has damaged the Clocktower in TimeVille. The only thing the clock repairer couldn’t repair is the part that makes the clock tick and tock. Numbers flow into the clock to make it go, and if the number is even, the clock’s pendulum should tick to the left and if the number is odd, the pendulum should tock to the right. They need a programmer to fix this element of the clock to make it work again. Take a number as input from the console. Display the word “Tick” if the number is even. Display the word “Tock” if the number is odd. Hint: Remember that you can use the remainder operator to determine if a number is even or oddin visual basics. (1) The following program asks the user for two numbers and then outputs the total. Create this program in the console. Dim vNum As Integer Dim vTot As Integer For vNum = 0 To 1 Console.WriteLine(“Enter a number?”) vTot= vTot+ Val(Console.Readline()) Next Console.WriteLine(“The total is “ & vTot) (2) Use the For next loop to make sums. Create a console application and use the following code. Dim vNum As Integer Dim vTot As Integer = 0 For vNum = 0 To 10 vTot = vTot + vNum Next Console.WriteLine(vTot) (3) Use the following code to make a table in the console. Call the application Simple Table Dim vCol As Integer Dim vRow as Integer Dim vLine As String For vCol =0 To 5 vLine = “” For vRow =0 To 4 vLine = vLine & “x “ Next Console.WriteLine(vLine) Next (4) Modify the above code to print out a consecutive series of numbers. Eg 1 2 3 4 5 6 7 8 (5) In the space below using a For next loop…
- hi can you please write this code function avg(){vara = parseInt(prompt("Enter 1st number"))varb = parseInt(prompt("Enter 2nd number"))varc = parseInt(prompt("Enter 3rd number"))vard = parseInt(prompt("Enter 4th number")) average = (a+b+c+d)/4} avg() alert("Average is "+average) but instead of asking the user in a java code can you make it in a html code for example somthing like this <html lang="en"><head></head> <body> <h1>Enter a number</h1> <div class="input"> <input id="number" placeholder="number" name="number" type="text"> </div> </body></html>uppose you have a certain amount of money in a savings account that earns compoundmonthly interest, and you want to calculate the amount that you will have after a specificnumber of months. The formula, which is known as the future value formula, is:F=P×(1+i)tThe terms in the formula are as follows:o F is the future value of the account after the specified time period.o P is the present value of the account.o i is the monthly interest rate.o t is the number of months.Write a program that prompts the user to enter the account’s present value, monthlyinterest rate, and the number of months that the money will be left in the account. Theprogram should pass these values to a function named futureValue that returns thefuture value of the account, after the specified number of months. The program shoulddisplay the account’s future value. i attached the screenshot of the output so the output should look like that. the coding should be in c++Part A Write an application called ShadyRestRoom for the Shady Rest Hotel; the program determines the price of a room. Ask the user to choose 1 for a queen bed, 2 for a king, or 3 for a king and a pullout couch. The output echoes the input and displays the price of the room: $125 for queen, $139 for king, and $165 for a suite with a king bed and a pullout couch. If the user enters an invalid code, display an appropriate message and set the price to 0. An example of the program is shown below: Menu (1) Queen bed (2) King bed (3) Suite with a king bed and pull-out couch Enter Selection (1, 2, or 3) >> 2 You selected King bed $139 Part B Copy the contents of the ShadyRestRoom application into ShadyRestRoom2.java file and rename the class ShadyRestRoom2. Add a prompt to the ShadyRestRoom application to ask the user to specify a (1) lake view or a (2) park view, but ask that question only if the bed size entry is valid. Add $15 to the price of any room with a lake view. If the view…
- Create a WPF application named FirstNameLastNameM3C Save the application in the Unit3MasteryirstnameLastname folder. Design is up to you. Place everything on either a grid or canvas. Make sure everything is lined up and looks professional. Create an application that allows the user to enter an integer between 1 and 10 into a labeled textbox. There should be a Binary button that uses an if/else construct or switch to get the binary version of the number. There should be another labeled label to display the answer. There should be a clear button that clears the entry and the answer. Hint: You do not need to do any type of calculation for this, just get the binary version of the number and store it in the variable in the decision structure. For example the user enters 4, you display 0100 in the answer label.Write an application named, Lab14.java. This application will do the following: 1. Display an introductory message 2. Choose a random word from the file, wordlist.txt, and display it 3. Disguise the selected word, and display it 4. Ask the user whether to continue, i.e., whether to repeat steps 2, 3, and 4, or quit the application Once the user chooses to stop the application: 5. Display the total number of vowels hidden 6. Display the total number of consonants hidden 7. Display termination message The user will be asked whether to continue playing and will indicate that another game is to be played by answering ‘y’ or ‘Y’ in response to the question, “Want to play again?” asked by the program after displaying each chosen word and its disguised version. If the user’s response is any character other than ‘y’ or ‘Y’, the totals are displayed and then the application termination message is displayed. See examples below. About randomly choosing a word from the file, wordlist.txt, found on…Write an application that allows the user to choose insurance options inJCheckBoxes. Use a ButtonGroup to allow the user to select only one of twoinsurance types—HMO (health maintenance organization) or PPO (preferredprovider organization). Use regular (single) JCheckBoxes for dental insurance andvision insurance options; the user can select one option, both options, or neitheroption. As the user selects each option, display its name and price in a text field;the HMO costs $200 per month, the PPO costs $600 per month, the dentalcoverage adds $75 per month, and the vision care adds $20 per month. When auser deselects an item, make the text field blank. Be sure to include & test any and all Exception Handling. Save the file as JInsurance.java.