Write a program which reads two integer values. If the first is less than the second, print the message up. If the second is less than the first, print the message down If the numbers are equal, print the message equal. (Visual Basic)
Q: Pretend that you have just opened a new savings account that earns 4 percent interest per year. The…
A: Answer:)
Q: The variable x starts with the value 0. The variable y starts with the value 5. Add 2 to X. Add 2…
A: As no programming language has been used, Java has been used.
Q: Write an expression that obtains a random integer between 34 and 55. Write an expression that…
A: To get a random number we will use rand() in c++, also we are going seed time as a parameter to…
Q: A regular polygon is an n-sided polygon in which all sides are of the same length and all angles…
A: Program: import java.util.Scanner; //define class public class Area { //main method public static…
Q: (Geometry: great circle distance) The great circle distance is the distance between two points on…
A: The Java program is written where it takes the latitude and longitude degrees from the user for the…
Q: Positions on a chess board are identified by a letter and a number. The letter identifies the…
A: The chessboard is a game board where two players move the pawns on the board of size 8x8. The…
Q: Guess-the-number-game: Write a program that pays the game of “guess the number” as follows: Your…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
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: The following formula gives the distance between two points, (x1, y1) and (x2, y2) in the Cartesian…
A: A required program is as follows, //Include header files #include<iostream>…
Q: ariable x as you write this program. x will represent a positive integer. Write a program that…
A: Required: Use the variable x as you write this program. x will represent a positive integer. Write a…
Q: A country charges income tax as follows based on one’s gross salary. No tax is charged on the first…
A: 1) Since you have not specified programming language, I have written program in python 1) Below is…
Q: A county collects property takes on the assessment value of property, which is 60 percent of the…
A: Since the coding language is not mentioned, I have done the code in C++. Algorithm : Step 1 :…
Q: Turtle: draw the Olympic symbol) Write a program that prompts the user to enter the radius of the…
A: The answer is given below:-
Q: Area and Perimeter: Write a program that prints the area and perimeter of a circle with a radius of…
A: Solution: Approach: Create a class circle In the main method declare the variables radius, area,…
Q: Write the algorithm and a program that prompts the user to input the masses of the bodies and the…
A: 1. Input the masses of the two bodies and the distance between them. 2. Calculate the force between…
Q: 11. Circuit Board Profit An electronics company sells circuit boards at a 40 percent profit. If you…
A: Java program to find the profit on the circuit board. The profit is 40 percent on selling a circuit…
Q: Area and Perimeter: Write a program that prints the area and perimeter of a circle with a radius of…
A: logic:- set radius=5.5 use formula, perimeter=2*radius*math.pi area=radius*radius*math.pi display…
Q: A store charges $12 per item if you buy less than 10 items. If you buy between 10 and 99 items, the…
A: Note: Below is the required program in the python language. Program Approach: Input the how many…
Q: (Display the day and remaining hours) Write a program that prompts the user to enter the day number…
A: Given:- (Display the day and remaining hours) Write a program that prompts the user to enter the day…
Q: In Visual Basic, regarding loops, how many times will the message display?
A: as per our guidelines, we are supposed to answer only one question. Kindly repost other question as…
Q: A country charges income tax as follows based on one’s gross salary. No tax is charged on the first…
A: Check further steps for the answer :
Q: (Apartment problem) A real estate office handles , say, 50 apartment units. When the rent is, say,…
A: PROGRAM: //Header file #include <iostream> #include<iomanip> //Using namespace using…
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: Hello Student. Warm welcome from my side. Hope you are doing great. Here's your answer. Since you…
Q: program that reads an integer sum in dollars and displays how many dollars bills of $100, $50, $20,…
A: program that reads an integer sum in dollars and displays how many dollars bills of $100, $50,…
Q: ecks whether the point is within the circle centered at (0, 0) with radius 10. For example, (4, 5)…
A: Given:
Q: Suppose a right triangle is placed in a plane as shown below. The right-angle point is at (0, 0),…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: #include<iostream>using namespace std; int main() { //declaring variables to store user…
Q: Q7-Write a program that simulates a simple calculator. It reads two integers and a character. If the…
A: // Always mention the language of the program, for now, I am doing it in C++ // Code #include…
Q: (Area and perimeter of a rectangle) Write a program that displays the area and perimeterof a…
A: Objective: This program would display the area and perimeter of a rectangle whose width would be 5.3…
Q: program in visual basic that requests five grades as input and then calculates the average after…
A: For this program, we will be performing the following steps: Asking the user for five integers and…
Q: Read student's grade 'A','B', 'C','D' or 'F' and print "Good job" when grade entered is either 'A',…
A: Based on the input value, you have to check the condition and you can do this using if statement
Q: The Mach number is a critical quantity in aerodynamics. It is the ratio of the speed of an object…
A: MATLAB code given below
Q: Draw a flowchart of the this problem: Write a program that takes the (x,y) coordinate of a point…
A: Actually, the code has given below:
Q: Financial application: compute future apartment rent) Suppose that the rent for an apartment is…
A: The problem is based on finding the rent of the apartment using programming. NOTE: The code is…
Q: Microwaves / Radio Waves If a scientist knows the wavelength of an electromagnetic wave she can…
A: Source Code: #include<iostream>using namespace std; int main(){ cout<<"Enter…
Q: Use (If- Then - Endlf) statement to write a visual basic program to read an integer number and check…
A: In Visual Basic, an If – Then - Else statement allows to take decision depends on the given test…
Q: Q4: (Find the two lowest scores) Write a program that prompts the user to enter the number of…
A: GIVEN: Create a Java program that prompts the user to enter the number of students and each…
Q: Write a program that prompts the user to enter the number of study hours of a student and the…
A: Algorithm Start Var h, n Accept n from user Accept h from user If(n>=4 and h<26), go to step…
Q: A county collects property taxes on the assessment value of property, which is 60 percent of the…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read actual value…
Q: (Find future dates) Write a program that prompts the user to enter an integer for today’s day of…
A: Actually, integers are like whole numbers, also included negative numbers.. but not allows floating…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: In the computer programming, the concepts of the language that can be organized and managed as the…
Q: Conditional Statements - Practice Questions Write a python program to accept a number and o if the…
A: We will use if else statement to solve the above problem.
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: Write a program that asks for the number of calories and fat grams in a food. The program should…
Q: Q3: - Write a visual basic program that reads two integers (feet and inches) representing distance,…
A: Visual Basic (VB) is a third-generation programming environment from Microsoft. The system works by…
Q: Write a program to enter a value of x and compute the value of y where Visual Basic if x ≥ 0 if x <…
A: The above program requires a if else block statement. The if else block syntax is: If condition:…
Q: Write a program that accepts the input code from user and print according to the input code. If the…
A: #include<iostream> #include<iomanip> int main(){ int n; cin>>n;…
Q: C ++ Demonstration: Write a program that prompts the user to input three positive angle values in…
A: I have provided C++ CODE along with CODE SCREENSHOT and 4 OUTPUT SCREENSHOTS-------------
Q: C Program / C Language Make a C program. The date is january 1, 2019. Cody has a lot of neighbors…
A: Here, I have to write a C code to the above question.
Q: Write a program that prompts the user to enter the edges of a triangle and compares them. If all…
A: In the solution of given problem, we need to use Else-If ladder statement to test the conditions. An…
Step by step
Solved in 2 steps with 1 images
- 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 it's weight in Newtons with the following formula: Design a program that asks the user to enter an object's mass, and then calculates its weight. If the object weighs more than 1,000 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. Show in Python and in Flowchart!!!!Q5:- Write program to calculate the equation sin(x) y(x) = x * where x = 0. 1,0. 2,0.3,0.43. Random Symbol Guessing Game Write a program that generates a random symbol and asks the user to guess what the symbol is. If the user's guess has a higher ASCII number than the random symbol, the program should display "Symbol ASCII too high, try again." If the user's guess has a lower ASCII number than the random symbol, the program should display "Symbol's ASCII too low, try again." The program should use a loop that repeats until the user correctly guesses the random symbol.
- Microwaves / Radio Waves If a scientist knows the wavelength of an electromagnetic wave she can determine what type of radiation it is. Write a program that asks for the wavelength in meters of an electromagnetic wave and then displays what that wave is according to the following chart. (For example, a wave with a wavelength of 1E-10 meters would be an X-ray.) 1x 10-11 1 x 10-8 4 x 10-7 7x 10-7 1x 10-3 1 x 10-2 Gamma Rays. X Rays Ultraviolet Visible Light InfraredQuestion 18 Guessing Game Code a solution for the following problem. Post your program in the textbox below. (NOTE: Indenting matters.) • Hard-code an integer variable valid value from 1 to 10. Ask the user to guess your whole number and input that number. - Then compare the user's input to your literal number ani tell the user how they compare, is it greater than, less than or equal to each other. Extra: Send an error message if the value entered is not between 1 and 10. Edit View Insert Format Tools Table Ev Ev To E v V O Paragraph v BIU A ev T? v 12pt vWidgets and Gizmos An online retailer sells two products: widgets and gizmos. Each widget weighs 75 grams. Each gizmo weighs 112 grams. Write a program that reads the number of widgets and the number of gizmos in an order from the user. Then your program should compute and display the total weight of the order.
- PYTHON code that finds the prime divisors of a number entered on the keyboard and prints it on the screen write. (For example, the prime divisors of 10 are 2 and 5. The prime divisors of 20 are 2 2 and 5. Truck.)09. FizzBuzz problem:- Write a program which return "fizz" if the number is a multiplier of 3, return "buzz" if its multiplier of 5 and return "fizzbuzz" if the number is divisible by both 3 and 5. If the number is not divisible by either 3 or 5 then it should just return the number itself?.Car sales commission problem - For each used car a salesperson sells, the commission paid is as follows: $20 plus 30% of the selling price in excess of the cost of the car. Typically, the minimum selling price of the car is the cost of the car plus $200 and the maximum selling price is the cost of the car and $2,000. Write a program that prompts the user to enter the salesperson’s fixed commission, the percentage of the commission, the purchasing cost of the car, the minimum and the maximum amount to be added to the purchasing cost to determine the minimum and the maximum selling price, and outputs minimum and maximum selling price of the car and the salesperson's commission range. As a suggestion, pay particular attention to the formulas would your being requested. I would recommend that you perform the calculations on paper or in Excel prior to programming the solution. Paint usage calculator -A room has one door, two windows, and a built-in bookshelf and it needs to be painted.…
- 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.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 overweight1. Write a program that lets the user guess whether a randomly generated integer would be even or odd. The program randomly generates an integer and divides it by 2. The integer is even if the remainder is 0, otherwise odd. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.