Write a simple bus seat reservation program. The bus has 10 rows, with 4 seats in each row. The program should perform the following: Step 1. The program should ask the user to enter what row and seat number to reserve. Indicate an 'X' mark if the seat is reserved. Step 2. Repeat Step 1; the program will stop until the user enters a negative number.
Q: Write a program that asks the user to enter a list of lengths and radius of a special screw. The…
A: Note: As you have not mentioned any programming language, the code is written in Python language.…
Q: Write a C program to select the type of food from the list, then give the quantity you want to buy…
A: Code: #include<stdio.h>int main() { while(1){ char ch; int n; double…
Q: Use C language: Write a program which asks the user to input a whole number representing the total…
A: The C code is given below with code and output screenshot All the best ?
Q: In Python programming language. Write a program that calculates the sum of prime numbers that could…
A: def prime_number(n): #function prime_number if(n == 0 or n == 1): #if n is 0 or…
Q: Suppose two line segments intersect. The two endpointsfor the first line segment are (x1, y1) and…
A: Java program for the given problem:-
Q: Write a program that prompts the user to enter 5 exam marks (design your program such that it would…
A: PROGRAM CODE: #include<iostream> //included namespace using namespace std; //main function…
Q: As a Python programmer in one company/institution, you are task to create a program that converts…
A: In this user has to input choice whether user wants to convert Celsius to Fahrenheit or Fahrenheit…
Q: (b) Write a program that produces a triangular grid of numbers as a seating chart (start at 1 in the…
A: C++ code for given problem Statement- #include <iostream>using namespace std;//main methodint…
Q: Suppose that the cellular phone bill of a client is computed according to the following rates table…
A: To determine the results of mathematical calculations, arithmetic operators are used such as +,-,*,/…
Q: Write a program that will read a number from the keyboard. If 60≤number≤100 , display “Pass”, if…
A: Conditional Statement in C: Conditional statements in C execute sequentially based on the some…
Q: Write a program that asks the user to enter today’s sales for five stores. The program should…
A: Write a program that asks the user to enter today’s sales for five stores. The program should…
Q: This is a segment of program, when it executed with multiple values for n and s the program displays…
A: Given code: #include <iostream> using namespace std; int main(){ int x, y; int f;…
Q: Create a program that inputs a last name and prints Lane # according to the first of the last name.…
A: Since the question doesn't include the programming language use to code the problem so I am using…
Q: Write a program that displays four clocks, as shown in Figure 12.24.
A: Program Plan: • Create a window, set its title. • Create a frame and add it to window. • Create 4…
Q: Write a program to calculate electricity bill charged to a consumer. Ask him to enter the units…
A: Please find the answer below :
Q: Write a program that displays the following table. Calculate themiddle point of two points.a…
A: Since, programming language is not mentioned in the question, we will answer this question in Java…
Q: Write a Python program that displays the times table of a given number. The program asks the user to…
A: Algorithm Start Var n, m Accept n, m from user If(n==0 or m==0) go to step 5 or else to step 8…
Q: use c++ Write a program that prompts the user to enter the number of seconds, displays a message at…
A: The complete C++ code is given below with code and output screenshots Thread is used here...
Q: TASK • Write a program that asks the user for a number and outputs the number that is entered. Once…
A: Answer the above task are as follows:
Q: Write a program that reads an unspecified number of integers and finds the ones that have the most…
A: GIVEN: Write a program that reads an unspecified number of integers and finds the ones that have the…
Q: Write a program that computes the equivalent resistance of a purely series and purely parallel…
A: Given: Write a program that computes the equivalent resistance of a purely series and purely…
Q: Write a program that accepts a number corresponding to a plane figure 1. Right Triangle 2. Rectangle…
A: NOTE : Since programming language is not mentioned. Therefore answering in Python language. First…
Q: The program will then ask for the following: base and height – if the previous input is 1 (right…
A: Its a choice based program, where the user is given 3 options to find perimeter and area of 3…
Q: Write a program to read three numbers in Nasm Assembly Language (compile nasm online - rextester).…
A: Here, I have to provide a solution to the above question.
Q: Write a program that calculates the amount of money a person would earn over a period of time if the…
A: Algorithm : Step 1 : declare variables. Step 2 : create object of scanner class to take input. Step…
Q: Write a Python software that prompts the user for the amount of values they wish to join. The…
A: Please find the answer to the above question below:
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 computes the fuel efficiency for a multi-leg journey. The program will first…
A: Code To Copy: #Define the main() function. def main(): #Prompt the user to enter the…
Q: Suppose you save $100 each month into a savings account with the annual interest rate 5%. So, the…
A: Given: Suppose you save $100 each month into a savings account with the annual interest rate 5%. So,…
Q: Write a program that asks for two numbers. After the input of two numbers, ask the user what…
A: /******************************************************************************…
Q: In C++ language, create a program that gets quarterly sales from a user, and calculates the total of…
A: pseudocode :
Q: In Python Write a program that computes the fuel efficiency for a multi-leg journey. The program…
A: def main(): #Prompt the user to enter the input. start_odo = float(input("Enter the initial…
Q: rite a program for an airline company. that asks the user about his luggage weight. * if the luggage…
A: NOTE: SINCE THE LANGUAGE OF THE PROGRAM IS NOT MENTIONED, I HAVE USED PYTHON FOR THE SOLUTION.…
Q: Write a program that computes the fuel efficiency of a multi-leg journey. The program will first…
A: Python code :- def question9(): print("Question 9) # arrays to store miles and gas used…
Q: Write a program that takes website names as keyboard input until the user types the word stop and…
A: Given :- Write a program that takes website names as keyboard input until the user types the word…
Q: In C++ language, create a program that gets quarterly sales from a user, and calculates the total of…
A: - We need to code for the sales program.
Q: Write a program that computes the fuel efficiency of a multi-leg journey. The program will first…
A: We need to write a Python program for given scenario.
Q: What is the output of the following program: PROGRAM EXAMPLE (output); VAR A, B, C, D: integer;…
A: The key to understanding what this program does is understanding the difference between calls by…
Q: In Python programming language. Write a program that calculates the sum of prime numbers that could…
A: Step 1: Read bStep 2: While (temp=true):Step 3: if b is positive Call sum().…
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: Write a program that calculates the total grade for N classroom exercises as a percentage. The user…
A: Program: //include the header file #include<iostream> #include<iomanip> using namespace…
Q: Write a program that displays the following table (notethat farenheit = celsius * 9/5 + 32):Celsius…
A: Note: Since it is not mentioned which programing language to be used so i prefered to use java…
Q: Write a program using MIPS that asks the user to enter two integers: n1 and n2 and prints the sum of…
A: The answer is
Q: Suppose that the cellular phone bill of a client is computed according to the following rates table…
A: Program Explanation: Prompt for the minute and number of messages value Iterate for the 10 chances…
Q: Develop a program that allows the user to enter a start value of 1 to 4, a stop value of 5 to 12 and…
A: Hello student Greetings Hope you are doing great. As you have not mentioned any particular language…
Q: Q3/ Suppose a movie theater has 36 seats, laid out in a rectangular six rows by six seats. Let the…
A: Step-1: Start Step-2: Declare an array theater of size 6 * 6 and initialize with {1,1,1,1,1,1},…
Q: Write a program to process a collection of savings account transactions (deposits or withdrawals).…
A: Pseudo code: Select option Repeat 1: Make withdrawal 2: Make deposit 3: Show balance 4: quit
Q: rite a program that reads a value n and displays n characters alternating between # and % on the…
A: Note: Since you have not provided the language name to write the code so I am using java language to…
Java: Use array class
Step by step
Solved in 2 steps with 6 images
- Write a java program that asks a user to enter a set of positive integer values. When the user stops(think of sentinel value to stop), the program displays the maximum value entered by the user. Yourprogram should recognize if no value is entered without using counter.Write a program that verifies the delimiters in a line of text or expression typed by theuser. In this case, we will take an arithmetic expression like a*(b+c)+[c/(a-b)]. Yourprogram needs to validate the expression such that opening and closing brackets areproper or not which means the brackets are balanced or not.A C++ program that inputs the names and monthly salaries of 10 employees. The programchecks annual salary of each person. If annual salary is greater than or equal to Rs. 250000/-then it prints name, salary and a message ‘Tax to be paid’ else it prints name, salary and amessage ‘No tax’. Using pointers.
- In C++, write a program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers. The screen dialog should appear as follows: Input three different integers: 13 27 14 Sum is 54 Average is 18 Product is 4914 Smallest is 13 Largest is 27Develop a program that allows the user to enter a start value of 1 to 4, a stop value of 5 to 12 and a multiplier of 2 to 8. The program must display a multiplication table with results using these values. For example, if the user enters a start value of 3, a stop value of 7 and a multiplier value of 3, the table should be displayed as follows: Multiplication Table 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 additionally Each multiplication problem must be displayed with a problem number. The program must prompt the user to enter an answer to each of the multiplication problems. The correct answer should be displayed after the user enters an answer. A message should be displayed informing the user that the answer entered was correct or incorrect followed by an appropriate motivating comment. A running record of the number of correct and incorrect responses must be kept. After all the problems have been presented the user must be informed of his/her performance; number of…In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73
- C program using loops Make a simple checkbook balancer that would input a sequence of deposits (positive floating-point values) and issuances (negative floating-point values) terminated by a 0. It would output the transaction type, the amount and the running balance for each entry. Assume the initial balance of 0. Ensure that the issued check won’t bounce! For example: Input Result 1000 -500 0 Transaction: Deposit Amount entered: 1000.00 Remaining balance: 1000.00 Transaction: Issuance Amount entered: 500.00 Remaining balance: 500.00 1000 -500 -800 500 0 Transaction: Deposit Amount entered: 1000.00 Remaining balance: 1000.00 Transaction: Issuance Amount entered: 500.00 Remaining balance: 500.00 Check will bounce! Transaction: Deposit Amount entered: 500.00 Remaining balance: 1000.00Computer Science In C++, write a program whose inputs are three integers, and whose output is the smallest of the three values. Ex: If the input is: 7 15 3 the output is: 3 My result almost came out right but my output now reads: newline and 3 when its supposed to be just 3In c language Using function strtod(), Create a character string that contains the following string: “78.3% is the average success rate” Divide this string into double and display the rest of the string The output will be: The original string is: 78.3% is the average success rate The extracted double value is: 78.3 The remainder of the string is: % is the average success rate
- 2. A program P calls two subprograms P1 and P2. P1 can fail 50% times and P2 40% times. Then P can fail a. 50% b. 60% c. 10% d. 70%WRITE PROGRAM IN HLA PROGRAM 6: Three Zero GameWrite a HLA program that reads a number. Then by subtracting off a three and tens, determine if that value ends in a zero or a three. Three such numbers in a row wins the game! Shown below are sample program dialogues to help you build your program. Gimme a number: 20It ends in zero!Keep going...Gimme a number: 53It ends in three!Keep going...Gimme a number: 41Sorry Charlie! You lose the game!Gimme a number: 50It ends in zero!Keep going...Gimme a number: 23It ends in three!Keep going...Gimme a number: 70It ends in zero!You Win The Game! Gimme a number: 51Sorry Charlie! You lose The Game! (Hint: This program is pretty complex with many different conditions to keep track of. I would recommend you write it first in C or Visual Basic and then translate your lines of code, one-by-one, into a assembly statements, just like our good friend mr. compiler does) (Hint: Since we don't really know how to do much math in Assembly yet, I am assuming…Question: Find the even multiples of any number chosen by the user in a given range – the usershould specify the multiples of which number they want to print and a minimum and maximumvalue. The multiples printed should be within the [minimum, maximum] range. For example, ifthe user chooses the number 7 and would like to print all even multiples in the [15, 60] range, theprogram should print all the even multiples that are bigger than or equal to 15 (minimum), butsmaller than or equal to 60 (maximum). The program should keep a count of how many numberswere printed and should output that count, as well as the numbers. The output then, for theexample given, should be 28, 42, 56, and the count should be 3. Create a flowchart and shell script.