// This pseudocode is intended to compute the number// of miles per gallon you get with your automobile.start input milesTraveled input gallonsOfGasUsed milesPerGallon = milesTraveled + gallonsOfGas output milsperGallonstart
Q: The Nimble Fingers Typing School assigns grades based on words typed per minute, as shown in Figure…
A: Required:
Q: **using C# and Visual Studio design a program to satisfy the below problem** Create an application…
A: using System; class GuessGame { static int getRandom(){ Random random = new Random(); return…
Q: PYTHON code that finds the prime divisors of a number entered on the keyboard and prints it on the…
A: import math def primeFactors(n): while n % 2 == 0: print (2) n = n // 2 for…
Q: V/ This pseudocode segment is intended to compute and display // the average grade of three tests…
A: The program is made up of 3 components called by the primary program. These components are:…
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: (Area and perimeter of a circle) Write a program that displays the area and perimeterof a circle…
A: Program code: //Class definition Circle public class Circle { //Main function public static void…
Q: A particular talent competition has five judges, each of whom awards a score between 0 and 10 to…
A: # copy the code and run it using python3# take care of the syntax while copying the code# if have…
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: Please take screenshots of the stops. (Science: calculating energy) Write a program that…
A: Below is the code in C++ as language not specified and sample output:
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: V/ This pseudocode is intended to display employee net pay values // All employees have a standard…
A: The solution for the above given question is given below:
Q: Light travels at 3 x 10° meters per second. A light-year is the distance a light beam travels in one…
A: In this question, we are asked to write a python program such that it return the distance of light…
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: Nrite a program that asks the user to input 10 numbers and counts how many odd numbers that user…
A: Algorithm Start Count=0, num for i=0 to 9 , go to step 4 orelse go to step 7 Accept num from user…
Q: (Financial application: calculate future investment value) Write a program**(PYTHON)** that reads in…
A: First, we will input the investment amount, annual interest rate, and the number of years. Then…
Q: 2) Write pseudocode that performs the following: Ask a user to enter a number. If the number is…
A: Declare Number as integer Accept Number from user if number >=0 and number <=10 then print…
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: Visual Basic. Write an expression that evaluates to true if the value of the integer variable…
A: In visual basic we use the Mod operator to check the remainder of a division.
Q: 1. Kilometer Converter Write a program that asks the user to enter a distance in kilometers, then…
A: Below is the required program in C++ language. Program Approach: To convert kilometres to mile, we…
Q: V/ This pseudocode is intended to display employee net pay values. // All employees have a standard…
A: 1) Pseudocode in question does below activity It declare variables name, hours, rate, DEDUCTION,…
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: Q4:- Write a visual basic program to reads an integer value (T) representing time in seconds, and…
A: Objective: This program takes an integer representing a time in seconds. The time should be…
Q: The two roots of a quadratic equationax2 + bx + c = 0 can be obtained using the following formula:b2…
A: Program Planning: Step 1: Take entries of values for a, b, and c from the user first. Step 2:…
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: Python programing language 1. You just got a job working for the local Honda motorcycle shop.…
A: Hey, since there are multiple questions posted, we will answer first question. If you want any…
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: Exercise 2 : Write a Java application that computes the sum of even numbers and the product of odd…
A: Given: Exercise 2 : Write a Java application that computes the sum of even numbers and the product…
Q: ((PYTHON)) Q1- Ask the user to write a number 8 times. Find the sum and the average of all those…
A: Hi, as there are multiple questions in this post, as per our policy, I'll answer the first question…
Q: Reza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently…
A: Use a list to store tickets and from this we can check whether the number is already in list or not
Q: Design In Visual Basic a form and write a code to find the largest value of N numbers using Do While…
A: Visual Basic windows form application to find the largest of N values using a while loop. Design the…
Q: This pseudocode segment is intended to compute and display the average grade of three tests for any…
A: #include<stdio.h> //header file int main() //main method declaration { int test1,…
Q: PYTHON PROGRAMMING Reza Enterprises sells tickets for buses, tours, and other travel services.…
A: ALGORITHM:- 1. Take choice from user. 2. Take input for ticket number. 3. Check if it is valid…
Q: Write the below pseudocode in c++ code // Pseudocode // // Start // Declarations // number…
A: Here, The line-by-line clear pseudocode is given with the required variables and conditions.
Q: Create a program that calculates the interest on a loan. This program should make it easy for the…
A: According to the information given: We have to follow the instruction to get the desired outcome-
Q: Bank Utara Malaysia (BUM) has decided to give dividend to its account holders at the end of year…
A: begin input the account balance if account balance is less than equal to 10000 dividend = (account…
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: *using C# and Visual Studio design a program to satisfy the below problem** Create an application…
A: using System;class HelloWorld { static void Main() { Random random = new Random(); int n =…
Q: flowchart of Many treadmills output the speed of the treadmill in miles per hour (mph) on the…
A: Since no programming language is mentioned, I am using c++ Algorithm: Start Read value in mph…
Q: Geometry: distance of two points) Write a program that prompts the user to enter two points (x1,…
A: C++, programming language can be used to perform the task efficiently. It is a multi purpose, multi…
Q: If you know the balance and the annual percentage interest rate, you can compute the interest on the…
A:
Q: Create a pseudocode that is going to prompt the user for a value meanwhile the complete “total” of…
A: A pseudocode that prompts the user to enter a value till the sum of all the values is less than…
Q: 3. (Palindrome number - A number is a palindrome if it reads the same from right to left and from…
A: A palindrome number can be denoted as a number that is equal to itself when it is reversed. The code…
Q: An online book club awards points to its customers based on the number of books purchased each…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT GIVEN, I HAVE USED C++ FOR THE SOLUTION. Define header…
Q: Irite a program that prompts the user to input an integer between 0 and 35. If the number is less…
A: #include <iostream>#include <iomanip> Below is the code for a given requirement using…
Q: Day Calculation Background - Many times one needs to do calculations on dates. Programs like Excel…
A: Program Description : The C++ program prompts the user to enter day, month, and year values from the…
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: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: public static void main(String[] strings) { Scanner input = new Scanner(System.in);…
Q: reate the pseudocode for a program that are able to measure or sense the car speed in kilometers per…
A: the program is given below:-
Q: (Geometry: area of a triangle) Write a program that prompts the user to enter three points (x1, yl),…
A: Given:
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
// This pseudocode is intended to compute the number
// of miles per gallon you get with your automobile.
start
input milesTraveled
input gallonsOfGasUsed
milesPerGallon = milesTraveled + gallonsOfGas
output milsperGallon
start
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- (Science: calculating energy) Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user to enter the amount of water in kilograms and the initial and final temperatures of the water. The formula to compute the energy is Q = M * (finalTemperature – initialTemperature) * 4184 where M is the weight of water in kilograms, temperatures are in degrees Celsius, and energy Q is measured in joules.LargeSmall.py - This program calculates the largest and smallest of three integer values. # Declare and initialize variables here largest = None smallest = None # Prompt the user to enter 3 integer values # Write assignments, and necessary if else statements here as appropriate # Output largest and smallest number. print("The largest value is " + str(largest)) print("The smallest value is " + str(smallest))(Geometry: great circle distance) The great circle distance is the distance between two points on the surface of a sphere. Let (x1, y1) and (x2, y2) be the geographi- cal latitude and longitude of two points. The great circle distance between the two points can be computed using the following formula: d = radius * arccos(sin(x1) * sin(x2) + cos(x1) * cos(x2) * cos(y1 - y2)) Write a program that prompts the user to enter the latitude and longitude of two points on the earth in degrees and displays its great circle distance. The average earth radius is 6,378.1 km. The latitude and longitude degrees in the formula are for north and west. Use negative to indicate south and east degrees.
- Lab #3 – Day CalculationBackground - Many times one needs to do calculations on dates. Programs like Excel use the number of days since 1/1/1970 when doing these calculations. We don't know enough C++ to completely do this calculation, yet, but we can make a start.Problem - You will prompt a user for a month, a day and a year. You will then tell the user how many days since January 1 of that year the input date is.For example if the user inputs a 3 for the month, a 2 for the day, and 2000 for the year the program outputs the number of days as being 62. Note 2000 is a leap year. Therefore you must test to see if a year is a leap year when doing this problem.The three rules which the Gregorian calendar uses to determine leap year are as follows:1. Years divisible by four are leap years, unless...2. Years also divisible by 100 are not leap years, except...**3. Years divisible by 400 are leap years. **** Combining rules 2 & 3: Centennial years that are not divisible by 400 are not leap…Please take screenshots of the stops. (Science: calculating energy) Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user to enter the amount of water in kilograms and the initial and final temperatures of the water. The formula to compute the energy is Q = M * (finalTemperature – initialTemperature) * 4184 where M is the weight of water in kilograms, temperatures are in degrees Celsius, and energy Q is measured in joules.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!!!!
- C# (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.Convert pounds into kilograms) Write a program that converts pounds into kilo-grams. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms.Differentiate between Pass by value and Pass by reference. Also explain with the help of code. (Visual .net)
- The 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;****Microsoft Visual Studios (C++)**** Write a program that will do the following: Run continuously until the user gives a command to quit Ask the user if they want to calculate the area of a circle, square, or triangle. Based on response will ask the user for the appropriate quantities then display the area to the user.Time CalculatorWrite a program that asks the user to enter a number of seconds.-There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes and leftover seconds in that many seconds.-There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours, minutes, and leftover seconds in that many seconds.-There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours, minutes, and leftover seconds in that many seconds.