5. Write the pseudocode that performs the following: Ask a user to enter a number. If the number is between 0 and 10, write the word blue. If the number is between 10 and 20, write the word red. if the number is between 20 and 30, write the word green. If it is any other number, write that it is not a correct colour option
Q: Beginner Level coding There are two main systems for measuring distance, weight and temperature,…
A: Required: code program that shows the following menu options and lets the user to convert from…
Q: CREATE FLOWCHART Question: To print the area of different shapes based on user input. The user can…
A: Flow chart: It is used to represent program steps in the pictorial representation. Using the flow…
Q: #1. Airplane Seating Assignment. Write a C# Windows App that can be used to assign seats for a…
A:
Q: Exercise 2 Write a Java application that computes the sum of even numbers and the product of odd…
A: Even numbers are those numbers that yield 0 as the remainder when divided by 2. Odd numbers are…
Q: Complete the loop so that it displays all mountains that are over 15000 feet. The blank ____ on…
A: Given a swift program, to fill in the blank in the code to display all mountains that are over 15000…
Q: 2. A mobile phone app allows a user to press a button that starts a timer that counts seconds. When…
A: Explanation: - User enters the elapsedTime, The minutes is calculated by dividing by 60 and storing…
Q: What is the java code for: Use the following statement to generate and use a dialog box that…
A: Note: The code is executed in Java Eclipse.The program is written as per the requirements of the…
Q: The program should randomly generates a number 0, 1, or 2 representing scissor, rock, and paper.…
A: As no programming language is mentioned, it is solved using Java
Q: following formula: area = Pi*r^2 Use 3.14159 for and the radius of the circle for r. If the user…
A: Program Geometry Calculator
Q: Task4: Write a program that prompts the user to enter a number within the range of 1 through 10. By…
A: In this program we have to write a Linux based program which we can execute using Linux editor Bash…
Q: *9.23 (Buttons and radio buttons) Write a program that uses radio buttons to select back- ground…
A: Program plan: Define the grid boxes Define the colors Declare the radio buttons respectively the…
Q: Write aprogram to calculate the average value of three numbers,then if average value more than 100…
A: Note :- You have not mention the language of the program, so i'm answering your question in HTML.
Q: Pseudocode: If Apples = 6, what will be displayed after code corresponding to the following…
A: The correct output is given below with an explanation I have given a sample code screenshot also in…
Q: Q1: b- write a visual basic program that uses a procedure to find how many numbers between N numbers…
A: We need to first read a number (N) and then we need to use the procedure to compute the remainder of…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: A menu is used to take user input for an available list of choices. The menu can be printed using…
Q: 5. Write a program which asks the user to enter their password. If they enter the word "PASSWORD"…
A: Visual basic program Program which ask the user to their password If they enter PASSWORD it display…
Q: Start Enter choice X=n, +n,+n,tn. y=n, "n. [10mumbers)10 True Input the 10 Displayı Sum of B", 5",…
A: - The question wants to the input , process Output and Algorithm of this flowchart provided here.
Q: (Guess the Number Game) Write a program that plays “guess the number” as follows: Your program…
A: A TextBox should be used to input the Number to TextBox1 input the guess. to TextBox2…
Q: (Financial application: calculate interest) If you know the balance and the annual percentage…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: Each cout statement has a syntax error. Type the first cout statement, and press Run to observe the…
A: Answer Code in C++ #include <iostream> using namespace std; int main() { int songNum;…
Q: TOPICS: Data and Expressions MUST BE IN JAVA. PLEASE USE COMMENTS AND WRITE THE CODE IN SIMPLEST…
A: logic:- read numerator and denominator While dividing numerator and denominator type cast any one…
Q: 3. Roman Numerals . Write a program that displays the Roman numeral version of a decimal number…
A:
Q: Q1:- Write a program in visual basic that calculate the average value of thee integer numbers. Use…
A: Write a program in visual basic that calculate the average value of three integer numbers :- Imports…
Q: (Check the speed) Write a program that prompts the user to enter the speed of a vehicle. If speed is…
A: C++ program is given below:
Q: QUESTION5: The Speed of Sound. The following table shows the approximate speed of sound in air,…
A: PROGRAM CODE: import java.util.*; // import utility package of javapublic class…
Q: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10…
A: Code: import java.util.Scanner;public class CookieCalorieCounter{ public static void main(String[]…
Q: 12. Write a pseudocode that displays "speed is normal" if the speed is less or equal to 70 km per…
A: Objective: This pseudocode displays the message "speed is normal" if the speed is less than or equal…
Q: The do-while statement below lets the user input an integer number multiple times as long as the…
A: Lets see the solution in the next steps
Q: QUESTION5: The Speed of Sound. The following table shows the approximate speed of sound in air,…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: QUESTION5: The Speed of Sound. The following table shows the approximate speed of sound in air,…
A:
Q: ate the volume of a sphere whose radius is provided by the user. Use Math.pow() to solve this…
A: Q. Q. Write a program to calculate the volume of a sphere whose radius is provided by the user.…
Q: (Find the highest score) Write a program that prompts the user to enter the number of students and…
A: Use one array to store the name and one array to store the scores
Q: Write the pseudocode to create a lotto game. The user will select three numbers from 1 to 9. If the…
A: Here, we need to check if any of user inputs are less than 1 or greater than 9 and then we need to…
Q: Financial application: calculate tips) Write a program that reads the subtotal and the gratuity…
A: logic:- read subtotal, gratuityRate gratuity=(subtotal*gratuityRate)/100 total=subtotal+gratuity…
Q: Pseudocode: If Apples = 6, what will be displayed after code corresponding to the following…
A: Answer: Goodbye, apple lover Explanation: Here we have assigned Apples to 6 but in the condition we…
Q: boolean exp = (( boolean1 || (! boolean2 ) ) && boolean3 ); Retype it in the input textbox below and…
A: NOT operator has got highest precedence. Then AND operator && has got higher precedence…
Q: (Scissor-Rock-Paper game). (A scissor can cut a paper, a rock can knock a scissor, and a paper can…
A: Program code: //import the required packagesimport java.util.Scanner;//define class Mainpublic class…
Q: In Python, Assuming minors are younger than 13 and adults are older than 19, write a program that…
A: Solution programming Approach Print a message Declare a variable of integer type and take the…
Q: A(n) is a Visual Basic statement that causes a variable to be created in memory.
A: Given that A(n) is a Visual Basic statement that causes a variable to be created in memory.
Q: Textboxes are often used to receive input from the user
A: Textbox The textbox is a graphical control or component that appears in a webpage or application and…
Q: Write pseudo code and design flowchart that performs the following: 1. Ask a user to enter a number.…
A: START INPUT number IF number >= 0 and number < 10 PRINT "blue" ELSE IF number >= 10 and…
Q: (Buttons and radio buttons) Write a program that uses radio buttons to select back- ground colors…
A: Given: Write a program that uses radio buttons to select background colors for text, as shown in…
Q: Scientists measure an objects mass in Kilograms and its weight in newtons. If you know the mass of…
A: Here I have created 3 functions getInput() , calculateWeight(), and showResult(). getInput()…
Q: Assignment: Carefully read the instructions and write a program that reads the following information…
A: The following program is compiled in replit and also Eclipse.Pseudo code:Get the inputs from the…
Q: What is programming? "Print hello world" 20 times is while loop.
A: Question What is the programming ? "print hello word" 20 times is while loop.
Q: Start Enter choice X=n, +n, +n, +n, y=n, *n. z-([10numbers)10 True Display: Sum of 8", 5", 5", and…
A: The given flowchart is asking the user to enter his/her choice. If the choice is 1, then it is…
Step by step
Solved in 2 steps with 3 images
- Write pseudo code and design flowchart that performs the following: 1. Ask a user to enter a number. 2. If the number is between 0 and 10, write the word blue. 3. If the number is between 10 and 20, write the word red. 3. if the number is between 20 and 30, write the word green. 4. If it is any other number, write that it is not a correct color option.(Geometry: point in a circle?) Write a program that prompts the user to enter apoint (x, y) and checks whether the point is within the circle centered at (0, 0) withradius 10. For example, (4, 5) is inside the circle and (9, 9) is outside the circle, asshown in Figure 3.7a.(Hint: A point is in the circle if its distance to (0, 0) is less than or equal to 10.The formula for computing the distance is 2(x2 - x1)2 + (y2 - y1)2. Test yourprogram to cover all cases.) Two sample runs are shown below: Enter a point with two coordinates: 4 5Point (4.0, 5.0) is in the circleEnter a point with two coordinates: 9 9Point (9.0, 9.0) is not in the circleC# (Guess the Number Game) Write a program that plays “guess the number” as follows: Your program chooses the number to be guessed by selecting an int at random in the range 1–1000. The program then displays the following text in a label: A TextBox should be used to input the guess. As each guess is input, the background color should change to red or blue. Red indicates that the user is getting “warmer,” blue that the user is getting “colder.” A Label should display either “Too High” or “Too Low,” to help the user zero in on the correct answer. When the user guesses the correct answer, display “Correct!” in a message box, change the Form’s background color to green and disable the TextBox. Recall that a TextBox (like other controls) can be disabled by setting the control’s Enabled property to false. Provide a Button that allows the user to play the game again. When the Button is clicked, generate a new random number, change the background to the default color and enable the TextBox.
- Financial application: calculate tips) Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total. For example, if the user enters 10 for subtotal and 15% for gratuity rate, the program displays $1.5 as gratuity and $11.5 as total. please take screenshots of the stops.Why does the following pseudocode not perform as indicated in the comments? // This program gets a dollar amount from the user // and validates the input. Declare Real amount // Get the amount from the user. Display "Enter a dollar amount" Input amount // Make sure the amount is not less than zero. If it is, // get a new amount from the user. While amount < 0 Display "ERROR: The dollar amount cannot be less than 0." Display "Enter a dollar amount." End WhileThe following code intends to input a user’s first name, last name, and age.However, it has an error. Fix the code.string fullName;int age;cout << "Enter your first and last name." << endl;cin >> fullName;cout << "Enter your age." << endl;cin >> age;cout << "You are " << age << " years old, " << fullName << endl;
- Visual Basic. Write an expression that evaluates to true if the value of the integer variable numberOfPrizes is divisible (with no remainder) by the integer variable numberOfParticipants. (Assume that numberOfParticipants is not zero.)Java 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).Scientists measure an object’s mass in kilograms and its weight in Newtons. If you know the amount of mass of an object, you can calculate its weight, in Newtons, with the following formula: Weight = Mass × 9.8Create an application that lets the user enter an object’s mass and then calculates its weight. If the object weighs more than 1000 Newtons, display a message indicating that it is too heavy. If the object weighs less than 10 Newtons, display a message indicating that it is too light.
- ((PYTHON)) Q1- Ask the user to write a number 8 times. Find the sum and the average of all those numbers then display for the user the answer of both the sum and the average. Q2- Ask the user to guess what your favorite color is. If he does not answer correctly, ask him if he wants to try again. If he does not want to try again, display for him the correct answer.Pig Latin is a nonsense language. To create a word in pig Latin, you remove the first letter and then add the first letter and ay at the end of the word. For example, dog becomes ogday and cat becomes atcay. Write a program named PigLatin that allows the user to enter a word and displays the pig Latin version.Account numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. The next problems rely on the generation of a random number. You can create a random number that is at least mi n but less than max using the following statements: Random ranNumberCenerator = new Random(); int randomNumber; randomNumber = ranNumberGenerator .Next(min, max);