Write a program that prompts the user to enter a number within the range of 1 through 10. The program should display the Roman numeral version of that number. If the number is outside the range of 1 through 10, the program should display an error message.
Q: in java write a program that reads an unspecified number of integers, determines how many positive…
A: The program is divided into 3 parts 1. declaration section where all the variables needed by the…
Q: Write a program that asks for the names of three runners and the time, in minutes, it took each of…
A: The Comparable interface: Is used to sort objects of user-defined classes. Is found in the package-…
Q: Create a Java class that accepts a number The input number must be between 10 and 99. You must…
A: Your java program is given below as you required with an output.
Q: Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based on the…
A: Given: Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based…
Q: Question 2: Write a Java program that prompts the user to enter an integer consisting of 3 digits,…
A: According to the Question below the Solution: Output:
Q: (Java) Write a program that reads two numbers from the keyboard representing, respectively, an…
A: the answer is given below:-
Q: You are asked to write a java program to prepare for the Lebanese parliament elections. Your program…
A: The program ask user to enter his name, age and gender. If the age entered by the user is less than…
Q: Write a program that plays the popular scissor-rock- paper game. (A scissor can cut a paper, a rock…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION Define…
Q: In this exercise, you will create a java program that reads words from the user until the user…
A: Code:
Q: Write a program that will calculate car insurance premium using Java!!! Steps to write a program:…
A: import java.util.*;import java.lang.*;import java.io.*; class Codechef{ public static void main…
Q: Write a program that calculates and displays a person’s body mass index (BMI). A person’s BMI is…
A: According to the Question below the Solution: Program Output:
Q: Write a program that prints a grocery receipt of items purchased.
A: EXPLANATION- Create main function . Declare seven variables with suitable names Initialize all the…
Q: Write a program that calculates the estimated hours and minutes for a trip given the number of miles…
A: Given: Write a program that calculates the estimated hours and minutes for a trip given the number…
Q: Write an application that prompts a user for two integers and displays every integer between them.…
A: import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new…
Q: Write a program that asks user to enter a number until user enters -1. Then the program should…
A: Here, Code instructions are given.
Q: You are asked to write a java program to prepare for the Lebanese parliament elections. Your program…
A: I have provided JAVA CODE along with OUTPUT SCREENSHOT---------------
Q: Write an application that allows a user to enter any number of student quiz scores, as integers,…
A: while ( true ) { ... if ( Condition ) { break; } ... } The above while-loop…
Q: You'll be creating a program that will find a donut shop at the user's provided zip-code and…
A: The Complete answer in Java Programming is below:
Q: Do a Java program that asks the user to enter three (3) first names then display the following: All…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: The program down below has a code for a program to play a guessing game with the user. The program…
A: Here as per your requirement of code i mentioned java code. for Random Guess create guessing game.
Q: Write a Java program that will ask the user to enter an integer number and then reverses the number.…
A: Algorithm : Step 1 : declare variables. Step 2 : create object of Scanner class. Step 3 : ask for…
Q: in java write a program that reads an unspecified number of integers, determines how many positive…
A: //import the required packages import java.util.Scanner; //define a class AvgWithLoop public class…
Q: Write an application that allows a user to enter any number of student quiz scores, as integers,…
A: PROGRAM CODE: import java.util.Scanner; public class Main { public static void main(String[]…
Q: Java Programming - Create a program List a menu of 10 food combos with the price for a…
A: import java.util.Scanner; public class Menu { public static void main(String[] args) { //…
Q: In C#, please? Write a program named CheckMonth2 that prompts a user to enter a birth month and…
A: Code Snippet: using System; namespace birthdayCheck{ class CheckMonth2 { static void…
Q: Control structures: In Java only please. Output the position of the largest number and the largest…
A: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program in java which display the burger Sizes and its prices in tabular form as display…
A: Required: Write a program in java which display the burger Sizes and its prices in tabular form as…
Q: 1. Write a program in Java to calculate and print the Electricity Generator Bill, the user should…
A: As per the requirement program is completed in java. Algorithm: Step 1: Write the main() method Step…
Q: JAVA CODE Using scanner format, create a program that computes the discount amount and the…
A: Logic:- read amount discountPercent=5 calculate discount=(amt*discountPercent)/100 Display discount…
Q: write a program in python Write a program that will allow a student to enter their name and then…
A: In order to solve this first we need to initiate count to 0 and the count the correct answers by…
Q: TotalPayAA.java Write a program that will calculate an employee’s total pay for a week (hourly pay…
A: Program Approach: Import necessary packages for scanning Input create a class TotalPay and Define…
Q: 1- Write a Java code that asks the user to enter the integer (XA, YA) Ccoordinate of a point A and…
A: import java.util.Scanner;public class Main{ public static void main(String[] args) { float a,…
Q: In Java Write a program that lets the user guess whether the flip of a coin results in heads or…
A: A coin has two faces called heads and tails. For the convenience of the program, we represented the…
Q: Write a code in Java: Write a program that will prompt the user for a temperature, and a choice to…
A: Java Code: import java.util.Scanner; public class Main{ public static void main(String[] args) {…
Q: This question is for java. Write a program that plays the Hi-Lo guessing game with numbers. The…
A: Java program to solve the given problem is below.
Q: You are asked to write a java program to prepare for the Lebanese parliament elections. Your program…
A: I give the code in Java along with output and code screenshot
Q: Write a program that allows a user to enter three words, and display the appropriate three-letter…
A: A required Java program is as follows, File name: “Main.java” import java.util.*; public class Main…
Q: s that are to be added, such as: 247+129 = The program should wait for the student to enter the…
A: Code : #include <iostream>#include <iomanip>#include <cstdlib>#include…
Q: Write a Python console application that prompts the user for a number. The application should return…
A: The asked code for the python program is given in the next step with explanatory comments.
Q: A number (or a word) is called palindrome if it may be read in the same way from left to right as…
A: import java.util.Scanner; class Palindrome { public static void main(String[] args) // main…
Q: Write a program that generates a random number in the range of 1 through 100, and asks the user to…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C FOR THE SOLUTION. Define…
Q: A client in a store is buying 5 items: shirt, trouser, hat, shoes, and perfume. Write a program that…
A: According to the asked question, the solution is given below with a proper explanation.
Q: generate three single digit integers and prompt the user to enter the sum
A: In Java Write a program that generates two integers and prompts the user to enter the sum of these…
Q: Q2. Write a program that reports the contents of a compressed-gas cylinder based on the first letter…
A: C program
Q: Write a program in Java Write a program that calculates and displays a person’s body mass index…
A: import java.util.Scanner; public class Main{ //Function to calculate the BMI and printing the…
Q: JAVA CODE Write a program that quizzes the user on the names of the capital cities for all the…
A: Code snippet:
Q: a player receives a free jump man at 7000 points. Prompt the user for their score. If the score is…
A: Given Data: When the score is 7000 or more 1UP or less than 0 invalids or we print the how many more…
Q: 1.3.9- Write a program (in java) that takes from standard input an expression without left…
A: Program approach: import necessary packages for scanning and stack operation. create a class…
Q: In Java: Forms often allow a user to enter an integer. Write a program that takes in a string…
A: Actually, the code has given below:
Q: You are asked to write a java program for an embassy to help with the visa process. Your program…
A: I give the code in Java along with output and code screenshot
Write a
Write a program that prompts the user to enter a number within the range of 1 through 10.
The program should display the Roman numeral version of that number. If the number is
outside the range of 1 through 10, the program should display an error message.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images
- In C#, please? Write a program named CheckMonth2 that prompts a user to enter a birth month and day. Display an error message that says Invalid date if the month is invalid (not 1 through 12) or the day is invalid for the month (for example, not between 1 and 31 for January or between 1 and 29 for February). If the month and day are valid, display them with a message. For example, if the month entered is 2, and the day entered is 17, the output should be 2/17 is a valid birthday.Q1\Write a java program that read student name and four marks form the keyboard. Then, it determines a student's final grade and indicate whether it is passing or failing. The final grade is calculated as the average of four marks.JAVA PROGRAMMING LAB Write a Java program to takes 2 numbers from the user and print true if one or the other is teen, but not both. "teen" number is that number which lies in the range 13..19 inclusive.
- Q#3: Develop a program to ask the user to enter a number, if the user enters a positive integer, then compute the factorial of that number and display it on the screen.Remaining Time: 1 hour, 14 minutes, 07 seconds. Question Completion Status: QUESTION 11 Write a Java program that prompts the user to enter the monthly salary amount of an employee in OMR and then deduct a 29% amount as a provident fund from the monthly salary. Calculate, a. Monthly deduction amount = Monthly Salary Amount * percentage of deduction b. Monthly Net salary amount = Monthly Salary Amount – Monthly Deduction amount c. Calculate and display the Annual Net salary amount in OMR and Annual deduction amount in OMR. T T T Arial v 3 (12pt) 回i ン Save All A TOSHIBA 10Write a program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height. A person’s BMI is calculated with the following formula:BMI = weight × 703 / height2where weight is measured in pounds and height is measured in inches. The program should display a message indicating whether the person has optimal weight, is underweight, or is overweight. A sedentary person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25, the person is considered to be overweight please write code on c++
- The date June 10, 1960, is special because when we write it in the following format, the month times the day equals the year: 6/10/60 Write a program that ask the user to enter a month in numeric format, a day and a two-digit year. The program should then determine whether the month times the day is equal to the year. If so, it should display a message saying the date is Magic. Otherwise, it should display a message saying the date is not Magic. Output should look as shown below. Create test data and place in a file. Name the code file Last Name + First Initial + "-MagicDates.s", for example "SmithJ- MagicDates.s". Name the test data file in a similar manner. Upload the program and test data files to the Dropbox. 6/10/60 is Magic! 6/10/70 is not Magic. 2/11/22 is Magic!Answer this question Write a program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height. A person’s BMI is calculated with the following formula:BMI = weight × 703 / height2where weight is measured in pounds and height is measured in inches. The program should display a message indicating whether the person has optimal weight, is underweight, or is overweight. A sedentary person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25, the person is considered to be overweightPython Programming Only Please: Write a program that asks the user to enter a person’s age. The program should displaya message indicating whether the person is an infant, a child, a teenager, or an adult. Following are the guidelines: • If the person is 1 year old or less, he or she is an infant.• If the person is older than 1 year, but younger than 13 years, he or she is a child.• If the person is at least 13 years old, but less than 20 years old, he or she is a teenager.• If the person is at least 20 years old, he or she is an adult.
- In Python Write a program that allows the user to type in a phrase and then outputs the acronym for that phrase. Note: The acronym should be all uppercase, even if the words in the phrase are not capitalized.C# Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number of days for a resort stay. Then display the price per night and the total price. Nightly rates are: $200 for one or two nights $180 for three or four nights $160 for five, six, or seven nights $145 for eight nights or more For example, if the input is 1, the output should be: Price per night is $200.00 Total for 1 night(s) is $200.00 In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US"))); please do not use public static void Main(string[] args) using System; using static System.Console; using System.Globalization; class ResortPrices { static void Main() { // Write your main…C# Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number of days for a resort stay. Then display the price per night and the total price. Nightly rates are: $200 for one or two nights $180 for three or four nights $160 for five, six, or seven nights $145 for eight nights or more For example, if the input is 1, the output should be: Price per night is $200.00 Total for 1 night(s) is $200.00 In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US"))); using System; using static System.Console; using System.Globalization; class ResortPrices { static void Main() { // Write your main here } }