Design a program that asks the user for a series of names (in no particular order). After the final person's name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. Programming Language: PYTHON TOPIC: Repetition Structures
Q: Programming Problem 1. Rock, Paper, Scissors This is your traditional rock-paper-scissors game,…
A: Lets see the solution in the next steps
Q: 4. Write a program that will display the following pattern, given the value of n. Example: If n= 4,…
A: Use nested loops to print pattern where we print spaces and then *'s based on the row number
Q: Write a program for grade computation. The final grade should be computed using the formula:…
A: C program: C is a general purpose programming language developed by Dennis Ritchie in 1972. C is a…
Q: Design a program that computes pay for employees. Allow a user to continuously input employees'…
A:
Q: Programming language: c++ (1) Prompt the user for a string that contains two strings separated by a…
A: Programming Approach: Including necessary header files. Remove leading and trailing spaces. Splits…
Q: A circular racetrack is composed of four portions: concrete, mud, sand and asphalt. Sly Slick's car…
A: - The question want to know the position of the car according to the time. - We need to code this…
Q: A cashier has currency notes of denominations 10, 50 and 100. If the amount to be withdrawn is input…
A: Step 1 : A cashier has currency notes of denominations 10, 50 and 100. If the amount to be…
Q: Reham's little brother has a geographical compass which has 'S', 'N', 'W' and 'E' marked on it. Her…
A: Step 1: Prompt and accept the alphabet. Step 2: Use if-else if-else construct to compare the…
Q: Given the tuple: num = (30, 35, 40,45,50,55,60,65,70,75,80,85,90,95,100) Write a Python program that…
A: EXPLANATION - Create a program . In program create a tuple named as num and initialize it with…
Q: A __________ can occupy multiple consecutive lines in a program. a. block comment b. square comment…
A: Block comment: A block comment will start with forward slash and an asterisk (/*) and the ends with…
Q: Design a program that computes pay for employees. Allow the user to continuously input employees’…
A: The given problem is implemented using Arrays
Q: Objective: Task: ● Draw a horizontal triangle using the asterisk (*) symbol. Write a Java program…
A: Here I have taken the input from the user and stored it in the variable. Next, I have validated that…
Q: Create a program that will arrange the values of A, B and C in ascending order where; Variable A…
A: Code is given below-
Q: A triathlon is a multiple stage sports competition, where athletes compete for fastest overall…
A: Use a loop to iterate for 50 times and accept the input and store minimum time and respective player…
Q: design a flow chart or pseudocode for a program that accepts two numbers from a user and displays…
A: A flowchart is a graphical representation of steps used to solve a particular problem. In flowchart,…
Q: Problem definition: We want to write a Python program forn players, which are playing a toumament.…
A: Required:
Q: Write an LMC(little man computer) program that calculates the square value of an input number. The…
A: Given that Write an LMC(little man computer) program that calculates the square value of an input…
Q: An anagram is a word or a phrase formed by rearranging the letters of another phrase such as "ITEM"…
A: As per the given question, we are given two phrases and we have to check if they are anagrams of…
Q: Write a C++ program to perform the same. Your program should be able to sum, subtract, divide and…
A: #include<iostream>using namespace std;int main(){ cout << "Enter your expression: ";…
Q: Write pseudocode to describe an average mark calculator program that computes the average mark for a…
A: What is Pseudocode: It is a simple version of programming code written in english before it is…
Q: PYTHON Programming Language Write a simple program that asks the user for their name (first,…
A: take first name user input take middle name user input take last name user input making a string…
Q: Design a program that gives simple math quizzes. The program should display two random numbers that…
A: NOTE - I have used the Python programing language. Here I have created 2 random numbers and then…
Q: The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of…
A: CODE: Python Programming Language price = int(input('Enter the purchase price:…
Q: Fill in the blank so that a program is constructed where the user enters a sentence, and it finds…
A: The character in array is to be compared with ASCII value to find whether it is digit or character…
Q: A rectangle is 4 times as long as it is wide. If the length is increased by 4 inches and the width…
A: #include <iostream>#include <cmath>using namespace std;int main() { double…
Q: Python Programming The trustees of a small college are considering voting a pay raise for their…
A: The trustees of a college want to pay raise of their faculty members. A 7 percent raise for the…
Q: In Python Propose a menu-driven program that calculates the total price for a picnic lunch that…
A: Flowchart is the pictorial representation of sequence of steps in solving a task.
Q: Python Programming The trustees of a small college are considering voting a pay raise for their…
A: Steps to execute the given program code: Create a file, “program_7.txt” and enter the given data in…
Q: A student records the air temperature from 7.00 am to 6.00 o'clock the next morning. The student…
A: 1. Given that, students record air temperature from 7:00 am to 6:00 am the next morning and write…
Q: Write a simple calculator program that use 2 numbers entered by the user to perform any of the…
A: The program uses the Scanner package which is used for taking user inputs during run time. Classes…
Q: Develop a body mass index (BMI) calculator program that reads body weight and height as inputs and…
A: Alogthrim Steps in the form of flowchart :
Q: if characters ‘Y’, ‘R’ and ‘B’ represents the primary colors Yellow, Red and Blue; this algorithm…
A: if characters ‘Y’, ‘R’ and ‘B’ represents the primary colors Yellow, Red and Blue; this algorithm…
Q: A mistake in the underlying algorithm for your program is called as: Syntax error Logic error…
A: According to the asked question, the solution is given below with a proper explanation.
Q: Design a Python program that tests your ESP, or extrasensory perception. The program will randomly…
A: Below is the python code for your need- import randommy_dict = {0:'Red', 1:…
Q: PYTHON 7.12 LAB: Warm up: Parsing strings (1) Prompt the user for a string that contains…
A: According to the information given:- We have to follow the instruction mentioned to performs the…
Q: Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who like to buy LP record…
A: Take input of number of new and old videos, compute total price and display. New video price $3.00/…
Q: Develop a program that allows the user to enter a string. The program must count and display the…
A: CODE var = input("Enter the string : ")count = 0 #variable used to count characterspace = 0…
Q: Write a program that reverses the input number. Formulate an equation to come up with the answer.…
A: Program code: //include the required header files#include <iostream>using namespace…
Q: this assignment you will write a computer program from scratch using the Python programming…
A: Code: def add(a,b): return a+b def subtract(a,b): return a-b def multiply (a,b): return a*b def…
Q: design a program for a professor to calculate the average of the three test scores for the students…
A:
Q: Write a program that takes in an integer in the range 20-98 as input. The output is a countdown…
A: Solution :
Q: Requirements: Include pseudocode that describes all steps required to solve the problem. Employ…
A: import random def show_larger(num1, num2): if num1 > num2: print(num1, "is larger…
Q: hine code program to input two one-digit numbers, add them, and output the one-digit sum. Submit…
A: We need to read in two one-digit numbers and use ASCII code to convert the number to an integer,add…
Q: should be at least 20, but not greater than 70. The driver’s speed should be at least the value…
A: Use while condition Use try statement Define variable splim and take user input for the speed limit…
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: Problem Description Write a JAVA program that will read all words from a passage and store them in…
A: The above question is coded in java language. We will be having two files, Program.java,BST.java.
Q: C# language. Problem Write a program that computes and displays the charges for a patient’s hospital…
A: using System; class Patient{private string patient;private string guardian; //get and set…
Q: please use python. Problem definition: We want to write a Python program for n players, which are…
A: We want to write a Python program for n players, which are playing a tournament. In this…
Q: "Python" a function that asks user for Name First Last Birthday: Month (numeric, e.g. 04, 07, 12,…
A: Step 1 : Start Step 2 : Define a function which takes input from the user the Name(First and Last) ,…
Design a program that asks the user for a series of names (in no particular order). After the final person's name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb.
TOPIC: Repetition Structures
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. This is to be done in Python.Using C Language: Write a program that consists of 2 guessing game. The first game: It is a guessing game in which the computer picks a specific number from 1 to 10, then the user guesses the number chosen by the computer and has ten attempts, and in each attempt the chosen number by the computer changes. The second game: A guessing game. The computer also chooses a three-digit number, for example: 950 and you have ten attempts to predict the number chosen by the computer. For example, the user types 390, the computer will tell him that the first digit is wrong, the second digit is correct, but it is not in the correct location, and the last digit, which is 0, is correct. And the user makes repeated attempts to find the correct whole numberComputer Science Godot Programming Programming Problem 1. Rock, Paper, Scissors This is your traditional rock-paper-scissors game, where two players select one of the three options and a result is produced based on their selection. For reference: Rock beats scissors Paper beats rock Scissors beats paper For this problem, you are to assume that two human players will play against each other and will input their choices accordingly. The input for each player will be in the form of buttons. Once a player clicks on a button, the rest of their buttons are locked in place (i.e. disabled). Once the other player selects their pick, the program outputs who won or if there was a draw. This isn’t exactly the most realistic way to code the game as it would be better if both players made their choice at the same time, but we’ll just have to chalk this up as a limitation for our exam. Aside from the game itself, the program should track the score of each player. Basically, if one wins, that…
- Programming language: c++ (1) Prompt the user for a string that contains two strings separated by a comma. Examples of strings that can be accepted: Jill, Allen Jill , Allen Jill,Allen Ex: Enter input string: Jill, Allen (2) Print an error message if the input string does not contain a comma. Continue to prompt until a valid string is entered. Note: If the input contains a comma, then assume that the input also contains two strings. Ex: Enter input string: Jill Allen Error: No comma in string. Enter input string: Jill, Allen (3) Extract the two words from the input string and remove any spaces. Store the strings in two separate variables and output the strings. Ex: Enter input string: Jill, Allen First word: Jill Second word: Allen (4) Using a loop, extend the program to handle multiple lines of input. Continue until the user enters q to quit. Ex: Enter input string: Jill, Allen First word: Jill Second word: Allen Enter input string: Golden , Monkey First word: Golden Second…Task 1: Get an integer type input from the user and compare it with a number “10”. If an input is greater than 10, print “The input number is greater than the provided number”. (write the program in C++ language)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 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.
- LANGUAGE MATLAB. Cows cost $10 each, sheep cost $1 each and 8 hens can be bought for $1. Write a program which will buy exactly 100 animals for exactly $100 containing all three types (not just 100 sheep!).Design a program (flowgorithm chart with C++ visual studio) that lets the user play the game Rock, Paper, Scissors against the computer. The program should work as follows: When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. Don't display the computer's choice yet.) The user enters his or her choice of "rock," "paper," or "scissors" at the keyboard. The computer's choice is then displayed. The program should display a message indicating whether the user or the computer was the winner. A winner is selected according to the following rules: If one player chooses rock and the other player chooses scissors, then the rock wins. (The rock smashes the scissors.) If one player chooses scissors and the other player chooses paper, then scissors wins.(Scissors cut paper.) If one player chooses…Needs to be done in C# language. Problem Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient, the following data should be entered: • The number of days spent in the hospital• The daily rate• Hospital medication charges• Charges for hospital services (lab tests, etc.) The program should ask for the following data if the patient was an out-patient: • Charges for hospital services (lab tests, etc.)• Hospital medication charges The program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out-patient information. Both functions should return the total charges. Input Validation: Do not accept negative numbers for any data.
- Create a program that will display a number from 5 to 100. Use iterative structure. Coding using C language (C compiler)python programming: Topic: Functional model Requirement: Write this program without matplotlib. Do not import matplotlib. You can use the math module Without using matplotlib. Write a program one statement long (it can span multiple lines) that displays the curvature of a sinusoid on terminal. (one statement) Hint: the curve are made of characters.Machine Problem:Write a Java or C++ program that will display the given menu: -----A Simple Library System----1. Add a Student2. Add a Book3. Display All Students4. Display All Books5. Search a Student6. Search a Book7. Borrow a Book8. Display Borrowed Books9. Return a Book (optional)10. Exit ➢ When 1 is chosen, ask the user to enter the student’s information(5-digit ID number,surname, first name, age, and sex)➢ When 2 is chosen, ask the user to enter the book’s information(5-digit book number,Title, Author’s name(Surname, first name), date of purchase, and status (available/notavailable))➢ When 3 is chosen, display list of all students(5-digit ID number, surname, first name,age, and sex)➢ When 4 is chosen, display list of all books(5-digit book number, Title, Author’sname(Surname, first name), date of purchase, and status (available/not available)➢ When 5 is chosen, ask the user if he wants to search the list by Surname or IDnumber. If record is found, display the corresponding…