12. Write a program that will ask the user to enter 10 numbers and display the largest number entered. 13. Write a program that will the user for a number 100 numbers and display on the screen the highest and lowest of these numbers. 14. Write a program that will ask the user for a number and display all the factors of the number. 15. Write a program that will ask the user for a number and display a message specifvina whether the number is prime or composite.
Q: Write a program that will determine if a number is positive or negative. If positive it should be…
A: Given: Write a program that will determine if a number is positive or negative. If positive it…
Q: Example 3: Write pseudo code that performs the following: Ask a user to enter a number. If the…
A: - The question is to solve the example number 3.
Q: Write a piece of code that prompts the user for a number and then prints a different message…
A: Code: public class OddEvenSum { // Save as "OddEvenSum.java" public static void main(String[]…
Q: Q.5) Write a C++ code that asks the user's name , then the code will ask the user to guess the…
A: #include <iostream>using namespace std;int main(){ //varibale to hold name string name;…
Q: 3. Write a program that plays a guessing game with the user. The program should generate a random…
A: According to the information given:- We have to follow the instruction in order to create guess game…
Q: Write a program which reads two integer values. If the first is less than the second, print the…
A: Here I have declared 2 variables num1 and num2 of integer data type. Next, I have taken input from…
Q: A county collects property taxes on the assessed value of property, which is 60 percent of its…
A: Step 1: Prompt and accept property value from the user. Step 2: Prompt and accept tax rate per $100…
Q: Write a program that asks user to enter a number until user enters -1. Then the program should…
A: Since you have not mentioned programming language I'm doing this in c++.
Q: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
A: PROGRAM: //Header package using System; //Defining class class MainClass { //Defining main()…
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 aC++program that allows a user to enter their rating of the three movies in the DarkKnight…
A: [Note: Explanation of the program code is provided within the comments.] Program code:…
Q: Write a program that prompts the user to enter the name of his YouTube channel and the number of…
A: Main.java
Q: Write a program that calculates the electricity bill. The rates of electricity per unit are as…
A: A function is a square of code which possibly runs when it is called. You can pass information,…
Q: 9. Write a program that inputs two real numbers then exchanges their values. 10. Make a program that…
A: 9 Solution
Q: Write a program that reads in a number through a text box. If the number is greater than five it…
A: Required: Write a program that reads in a number through a text box. If the number is greater than…
Q: 2. Write a program calculating the statistics for tests of a hospital by getting data from the user…
A: Algorithm Start Var t, pt, nt, ptr, ntr Accept total test in t Accept total positive test in pt…
Q: Excercise1: write a program to enter a user name and display the message (hello) three times. The…
A: Note: Since programming language is not specified we are providing solution in python programming.…
Q: Write a program that prompts the user for the current US population, and the names and population of…
A:
Q: Write a program that prompts the user to input a number. The program should then output the number…
A: According to bartleby guidelines we need to answer only the first question. Algorithm: 1.import…
Q: Write a program that prompt the user to enter a food product category, and price in USD. The program…
A: C++ Program for above : #include <iostream> using namespace std; int main() { cout…
Q: Write a program that asks the user for a word, then prints out the word once on the first line,…
A: Programming Language => C++ I have provided C++ CODE along with CODE SCREENSHOT and…
Q: Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane and…
A: Concept: If X is +ve and Y is +ve, then Quadrant is 1 If X is +ve and Y is -ve, then Quadrant is 4…
Q: Write a program that will ask the user to enter salary amount. And then compute for the TAX amount.…
A: As the language is not specified answer written in c++ 1)Read input 2)Using if else check…
Q: Write a program that asks the user to enter two integer numbers n and q. The program displays…
A: Sample Response: //Java programimport java.util.Scanner;//class defintion public class…
Q: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
A: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
Q: 1. Write a program that prints your full name. Write a program that prints your full name using…
A: 1.) #include <iostream> using namespace std; int main(){string name;cout<<"Write your…
Q: rite a program that asks the user to enter an integer consisting of 4 digits only, and check w many…
A: Code is given below #include <iostream>using namespace std;int main() { int num,…
Q: Write a program that will ask the user to enter 10 numbers and display the largest number entered.…
A: Note - As per our guidelines, we can provide solution only for one question. Since you have asked…
Q: Write a program that reads in a grade from the user using JOptionPane. (Remember that the grade is…
A: Programs are a sequence of code that give the machine instructions. To complete those tasks,…
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 program that accepts a number and determines whether the number is positive, negative or a…
A: here in this question we have asked to write a program which takes an input from user and…
Q: E2.11 Write a program that asks the user to input • The number of gallons of gas in the tank • The…
A: As Language is not defined i'm going to do it in C++
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: Write a program that accepts an integer number and determines whether the number is "EVEN" or "ODD.…
A: ALGORITHM:- 1. Take input for the number from the user. 2. Check if the number is even, odd or zero.…
Q: LET the user print his name and ask him as it is am or pm and print the message accordingly hi name…
A: NOTE: SINCE THE LANGUAGE OF THE PROGRAM IS NOT MENTIONED IN THE QUESTION, I HAVE USED PYTHON FOR…
Q: Write a program that asks the user to type a vowel from the keyboard. If the character entered is a…
A: Actually, program is a executable software that runs on a computer.
Q: Write a program that prompts the user to enter twocharacters and displays the major and status…
A: 1. Take input from the user: two characters and store them. 2. Check the first character with the if…
Q: Write a program to have the user guess a number stored in the program. If he guesses right, tell him…
A: While doing programming in any programming language, you need to use various variables to store…
Q: Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane and…
A: #include <stdio.h>void quadrant_of_x_y(float x, float y){ if (x > 0 and y > 0)…
Q: write a program in which ask from a user to enter name and id and show there as well. then ask again…
A: Since no programming language is mentioned, I will attempt this in python. if you need it in a…
Q: Write a program that can be used as a math tutor for a young student. The program should display two…
A: Introduction: Write a programthat can be used as a math tutor for a young student. The program…
Q: 1) Prompt the user to enter two words and a number, storing each into separate variables. Then,…
A: Python Program to get the output , when user input is entered First Password from the string Second…
Q: Write a program that reads from the user the initial Kilometers of the car, the current Kilometers…
A: Required: Write a program that reads from the user the initial Kilometers of the car, the current…
Q: Write a program which prompts the user for a Celsius temperature, convert the temperature to…
A: For convenience I've provided the code in two different language i.e. C++ and Python Code: Output:
Q: Write a program named TestsInteractive that prompts a user to enter eight test scores and displays…
A: NOTE - I have used Python programming language. Here I have created a list to store the scores.…
Q: Write a program that asks the user to enter a day (from 1 to 31), a month (from 1 to 12), and a two…
A: here in this question we have asked to write a program which take a day (from 1 to 31), a month…
Q: 6) Write a program that prompts the user to input a number. The program should then output the…
A: According to the asked question, the solution is given below with a proper explanation.
Q: Write a program that prompts the user to input the three coefficients a, b, and c of a quadratic…
A: Sample Response: #Python program to find the roots of quadratic equationimport math# function to…
Please answer this questions please :(
USED JAVA
Step by step
Solved in 4 steps with 3 images
- 15-Write a java script program that asks the user to “Enter todays temperature :” using prompt method and display a message using alert method. If temperature is > 25 it will display a message “Today is very hot!”, and display the message “Today’s climate is very pleasant !” if temperature is <=25Write aC++program that allows a user to enter their rating of the three movies in the DarkKnight Trilogy: Batman Begins/ The Dark Knight /The Dark Knight Rises Ratings must be between 1 and 5. If a rating entered is less than 1 or more than 5, display anappropriate message and do not use the rating. After all the ratings have been entered, display each rating entered, the highest rating, the lowest rating, and the average of the ratings.CREATE A PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZENIF YES, THEN GIVE 20% OFF IF HE IS BOTH PWD AND SENIOR CITIZEN, GIVE 20% ONLY ASK IF HE HAS A MEMBERSHIP CARD. IF YES, GIVE ANOTHER 3% OFF
- Write a program that prompts the user to enter twocharacters and displays the major and status represented in the characters. The firstcharacter indicates the major and the second is number character 1, 2, 3, 4, whichindicates whether a student is a freshman, sophomore, junior, or senior. Supposethe following characters are used to denote the majors:I: Information ManagementC: Computer ScienceA: Accounting Here is a sample run: Enter two characters: I1 ↵EnterInformation Management FreshmanWrite a program that generates a random number in the range of 1 through 1000, and asks the user to guess what the number is. If the user guess is higher than the random number, the program should display Too high, try again. If the users guess is lower than the random number, the program should display Too low, try again. If the user guesses the number, the application should congratulate the user and generate a new random number so the game can start over. If the user doesn't want to continue the game the user should type an appropriate stop symbol to terminate the program (such stop conditions were discussed in the class). For each game iteration, count the number of guesses made by the user and display them. The program should contain the following functions: check_guess(): this function checks if the user's guess is lower, higher or equal to the random number. random_gen(): function that generates one random number for one game iteration main(): the function where the program…Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit temperatures that must range from −30 to 130; if a temperature is out of range, require the user to reenter it. If no temperature is lower than any previous one, display a message Getting warmer. If every temperature is lower than the previous one, display a message Getting cooler. If the temperatures are not entered in either ascending or descending order, display a message It’s a mixed bag. Finally, display the temperatures in the order they were entered, and then display the average of the temperatures. In C#
- Write a program that prompts the user to enterthe month and year and displays the number of days in the month. For example, ifthe user entered month 2 and year 2012, the program should display that February2012 has 29 days. If the user entered month 3 and year 2015, the program shoulddisplay that March 2015 has 31 days.java Write a program that prompts the user to enter a point (x, y) and checks whether the point is within the rectangle centered at (0, 0) with width 10 and height 5. For example, (2, 2) is inside the rectangle and (6, 4) is outside the rectangle, as shown in the Figure. (Hint: A point is in the rectangle if its horizontal distance to (0, 0) is less than or equal to 10 / 2 and its vertical distance to (0, 0) is less than or equal to 5 / 2.) Here are sample runs of the program: Sample 1: Enter a point with two coordinates: 2 2 Point (2.0, 2.0) is in the rectangle Sample 2: Enter a point with two coordinates: 6 4 Point (6.0, 4.0) is not in the rectangle Analysis: (Describe the problem including input and output in your own words.) Design: (Describe the major steps for solving the problem.) Coding: (Go over your code step by step) Testing: (Describe how you test this program). In other words run your code with sample outputs.1. write a javascript program that prompts the user to enter the three integers and display the integers in non-decreasing oder. 2. write a javascript program that prompts the user to enter a three-digit integer and determine whether it is a palindrome number. A number is palindrome if it reads the same from right to left and from left to right.
- Write a program that prompts a user to enter a year between 1 and 2499 and prints its century in the format such as 1st, 2nd, 3rd, 4th, etc. please use a switch statement. for what we have done in class so far we have only used #include <iostream> <fstream> <cmath> <string> <iomanip>, so if possible if this can be done using that so I can understand for my next assignment that would be great thanks! Test Run 1:Enter a year between 1 and 2499 -- 19231923 is in the 20th century Test Run 2:Enter a year between 1 and 2499 -- 22022202 is in the 23rd century Test Run 3:Enter a year between 1 and 2499 -- 2630Wrong year!LET the user print his name and ask him as it is am or pm and print the message accordingly hi name good morningWrite a program that calculates the estimated hours and minutes for a trip given the number of miles traveled and the speed in miles per hour. Specifically, write a program that Welcomes the user to the Travel Time Calculator. Asks user for number of miles traveled(allow user to enter fractional values) Asks user for the speed in miles per hour (allow user to enter fractional values) Calculates the number of hours and minutes for the trip to the nearest integer value. Hint: You can use the built-in function round that rounds a given number to the rounded integer value. e.g. round(4) will return 4, round(4.125) will return 4, round(4.5) will return 4 and round (4.75) will return 5. Prints the number of hours and minutes for the trip. Here are some sample runs: