Meter. One KM is equivalent to 1000 Meter. Display an
Q: Example: the screen appears as follows: Enter 3 characters (A-Z)? AHMED No. of characters are= 5
A: As in the question, no programming language is mentioned. I am using Python language to do the…
Q: State whether it is true or false. If the answer is false, explain why? " The cin stream normally…
A: Given: State whether it is true or false. If the answer is false, explain why? " The cin stream…
Q: Design an algorithm that prompts the user to enter his or her favorite color and stores the…
A: An algorithm is a step by step procedure to execute the given program. Algorithm is supposed to be…
Q: Using Visual Basic, the following equation Y=e-3x+cos3(x) is written a:
A: Given equation: Y=e-3x+cos3(x) Code: Y=Math.exp(-3*x)+Math.cos(x)^3
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: speed=input("Enter your speed in mph: ")
A: The answer to the following question:-
Q: uppercases, lowercases, and spaces t spaces are counted as letters).
A: #include <iostream>#include <cstring>using namespace std; // function to toggle cases…
Q: Add this comment: # LAB 1: Part 2 Write a program that asks the user to enter the radius of a…
A: Python Code: #LAB 1:Part 2 print("Please enter the radius of circle: ")r = float(input())print("The…
Q: Distance Traveled Assuming there are no accidents or delays, the distance that a car travels down…
A: Approach: 1) Declare variables distance, speed, and time 2) Apply the formula 3) Print the result…
Q: 7. Decimal to hex. Write a program that prompts the user to enter an integer between 0 and 15 and…
A: As you have not mentioned any specific language so I have provided the code along with output and…
Q: Given an angle "theta" (less than 90 deg) and hypotenuse length from the user, calculate the lengths…
A: We know that sine of the angle is equal to perpendicular or height of the triangle divided by…
Q: The area of a rectangle is the rectangle’s length times its width. Write a program that asks for the…
A: Given:- The area of a rectangle is the rectangle’s length times its width. Write a program that asks…
Q: in the blank question: Q. BiDi is also known as _______________ Directional.
A: This fill in the blank question is related to Coding theory.
Q: I want to convert it in the following picture Tip, Tax, and Total Design a program that calculates…
A: Program for total bill purchased meals at restaurant as per question
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: Q/Write visual Basic program to calculate the equation: y(x) = x sin(x) where x= 0.1,0. 2,0. 3, 0. 4…
A: A combo box combines the features of both text boxes and list boxes. It is commonly referred to as…
Q: Flowchart Example 2 Solving Equations using Numerical Method: Determine the value of x when the…
A: Find the code in matlab given as below and output :
Q: Engineering Math Courses are: ['Algebra', 'Trigonometry', 'Geometry', 'Solid Mensuration',…
A: # declaring tuple mathCourses mathCourses = ('Algebra', 'Trigonometry', 'Geometry', 'Solid…
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 robot is initially located at position (0, 0) in a grid [−5, 5] × [−5, 5]
A: 1. declare variable for co-ordinates i.e. x and y. 2. Run a infinite while loop 3. check if current…
Q: Optical character reader method is of reading the characters & providing input to a computer explain
A: Please find the answer below
Q: QI: b- write a visual basic program that uses a procedure to find how many numbers between N numbers…
A: Public Class Form1 Private Sub InputBoxButton_Click(sender As System.Object, e As…
Q: (Random Walk Robot) A robot is initially located at position (0, 0) in a grid [−5, 5] × [−5, 5]. The…
A: According to the information given:- We have to create random walk robot initial Location (0,0) grid…
Q: Writhe the pseudocode and draw the flowchart to print the integer numbers from 1 to 10 and its…
A: Hello Student Hope you are doing great. Here is your answer
Q: TRUE OR FALSE if integer variable a and b are holding values 0 and 6, respectively, after the…
A: After the statement a+=b++ the new values of a and b are not same. a value is 6 b value is 7
Q: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3,5,6 and 9. The…
A: code:
Q: Flowchart that prints / displays 5 consonants.
A: Consonants are those alphabets other than vowels ('A','E','I','O','U')
Q: visual Basic a form and write a code to find the average value of N degrees using For Next Loop. Use…
A: It is defined as a simple, modern, object-oriented computer programming language developed by…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: I have created a GUI based code where you enter loan amount annual interest rate term of the loan…
Q: Little Italy Pizza charges $12.00 for a 12-inch diameter sausage pizza and $14.00 for a 14-inch…
A: Pseudocode Algorithm:- /* This pseudocode algorithm that calculates and displays how much each of…
Q: Design Visual Basic program that calculate the area of a cylinder where the area of cylinder is A…
A: We need to write a VB program to compute area of cylinder.
Q: It could perform the four basic arithmetic operations and could locate information stored in tabular…
A: All of the options area actually ideas of calculations, some of them are advanced and some very…
Q: area of the room (length * breadth * height). In the main program, assign values to the (length,…
A: TASK : 1 public class room { public double length,breadth,height; //public class variable public…
Q: 3. MILES-PER-GALLON A car's miles-per-gallon (MPG) can be calculated with the following formula: MPG…
A: The Answer is
Q: Miles per Gallon A car holds 15 gallons of gasoline and can travel 375 miles before refueling.…
A: Since programming language not mentioned, using python Algorithm Start Var g=15, m=375 MPG=375/15…
Q: document.write( (Math.floor (Math.random () *2)-2) *10); choose One {-10.-20} -20.-40 -5.-10.-20.0…
A: Math.floor() and Math.random() are both fucntions available in JS or JavaScript. Math.random()…
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: Transcribed Image Text Write a program that asks for the principal, the annual interest rate, and…
A: C++ Program Code Since no programming language is mentioned, the code is in C++ language.
Q: Word Problems: (A) You are developing a number guessing game. The objective is to randomly generate…
A: Step 1:- Program Approach:- Declare the 3 header file rand() and srand() function is define in…
Q: Falling Distance When an object is falling because of gravity, the following formula can be used to…
A: Question given: calculate falling distance of an object using given formula formula of falling…
Q: process of dropping a number's fractional part is
A: Required: The process of dropping a number's fractional part is called__________.
Q: Q2: Design a simply calculator using inputbox, one textbox and four buttons. The integer values of…
A: Actually, program is a executable software that runs on a computer.
Q: HTPC is also known as _______________ Computer.
A: This fill in the blank question is requires htpc name.
Q: efer to the code below, this is the formula for: clc; disp('____________________');…
A: As we know that the code given above is the code to calculate the four things mainly surface…
Step by step
Solved in 2 steps with 1 images
- Write a program that computes the equivalent resistance of a purely series and purely parallel electric circuit. The program will ask the user to choose whether to compute for the equivalent resistance of a series or parallel combination. The user will input three resistance values R1, R2, and R3 in ohms. The program will provide an output of equivalent resistance in series (RS) or parallel (RP). All lines of codes should have a comment. You can only input a number not letters/character Series Rs = R1 + R2+R3 Parallel 1/Rp = 1/R1 + 1/R2 + 1/ R3Write an application that asks a user to type an even number or the sentinel value 999 to stop. When the user types an even number, display the message “Good job!” and then ask for another input. When the user types an odd number, display an error message, "x is not an even number", and then ask for another input. When the user types the sentinel value 999, end the program.Write a program that calculates a “moving (rolling) average” of ten integer numbers entered by the user in the console. print the moving (rolling) average when any new number has been entered. For example: if a user enters (3, 6, 7), then, you should print (3, 4.5, 5.33)
- Write a program that calculates and prints the total bill at a restaurant. Prompt the user for the cost of the meal and then ask if a tip will be added. If it is, prompt for the tip percent as an integer. Of course, the tip percent should not be requested if no tip will be added. Finish by printing the meal cost, tip amount, and total bill. Sample OutputEnter total cost of the meal 80Are you adding a tip? y/n yEnter the tip percent as an integer 25Here is your bill.Meal cost $80.00Tip $20.00Total cost $100.00Question 4. Write a Program to check any number is SPY number or not ?HINT: A spy number is a number where the sum of its digits equals the product of its digits. For example:1124 is a spy number, because the sum of itsdigits is 1 + 1 + 2 + 4 = 8 andthe product of its digits is 1 * 1 * 2 * 4 = 8 is equal.Difficulty Level : EasySample Input: 2114 Output: Given number is spy numberDM your codes. We will pi.Question 4. Write a Program to check any number is SPY number or not ?HINT: A spy number is a number where the sum of its digits equals the product of its digits. For example:1124 is a spy number, because the sum of itsdigits is 1 + 1 + 2 + 4 = 8 andthe product of its digits is 1 * 1 * 2 * 4 = 8 is equal.Difficulty Level : EasySample Input: 2114 Output: Given number is spy numberDM your c.
- Question 4. Write a Program to check any number is SPY number or not ?HINT: A spy number is a number where the sum of its digits equals the product of its digits. For example:1124 is a spy number, because the sum of itsdigits is 1 + 1 + 2 + 4 = 8 andthe product of its digits is 1 * 1 * 2 * 4 = 8 is equal.Difficulty Level : EasySample Input: 2114 Output: Given number is spy numberDM your codes. We .Write a program that prompts the user to input the elapsed time for an event in seconds. The programthen outputs the elapsed time in hours, minutes, and seconds. (For example, if the elapsed time is 9,630seconds, then the output is 2:40:30.) You must use the modulus (%) operator in your program. The language is C++Write a program that begins by reading a temperature from the user in degrees Celsius. Then your program should display the equivalent temperature in degrees Fahrenheit and degrees Kelvin. The calculations needed to convert between different units of temperature can be found on the internet.
- Write a program that reads a person’s name in the following format: first name, then middle name or initial, and then last name. The program then outputs the name in the following format:last name, first name. middle initial.For example the inputMary Average User should produce the outputUser, Mary A.Your program should work the same and place a full stop after the middle initial even if the input did not contain a full stop. Your program should allow for users who give no middle name or initial. In that case, the output of courses contains no middle name or initial. For example, the inputMary User should produce the outputUser, MaryYour program should also accept names in lowercase, uppercase or a mix of lowercase and uppercase, and display that in the correct format, e.g. if the input ismArY average USERshould produce the outputUser, Mary A.Use C-strings and assume that each name is at most 20 characters long.Hint: it may be easier to use 3 C-strings.Write a program named CopenhagenTransit that computes the fare on the Copenhagen Transit system given two inputs from the user: The zone number: 1 or more The passenger type: adult or child Your prompts to the user must be : Enter zone number : Enter adult or child : The fare on Copenhagen Transit is specified as follows: If the zone is 2 or smaller and the ticket type is "adult," the fare is 23.0. If the zone is 2 or smaller and the ticket type is "child," the fare is 11.5. If the zone is 3 and the ticket type is "adult," the fare is 34.5. If the zone is 3 or 4 and the ticket type is "child," the fare is 23.0. If the zone is 4 and the ticket type is "adult," the fare is 46.0. If the zone is greater than 4, the fare is -1.00 (since your calculator does not handle inputs that high). Your output must be in the format: The fare for adultOrChild to zone number zoneNumber is fare. A sample run of the program with inputs 3 and adult must look like: Enter…Write a program that asks the user to type in a time in seconds and display it in the standard format hours:minutes: seconds (where 1 hour = 3600 seconds and 1 minute = 60seconds). Your output should look similar to this: output: Time in seconds: 3725 time is : 1:2:5