create a program that will keep and display a list of the book titles.
Q: Write a program that shows you a menu offering you the choice of addition, subtraction,…
A: Display a menu to the user with options for addition, subtraction, multiplication, and division.Take…
Q: Problem Description: In this assignment, you will need to write a program that will allow the user…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: This is a special value that signals when there are no more items from a list of items to be…
A: Correct option: a
Q: Eliviya had a string and she wants to convert this string to words array without using any loop .…
A: Requirements:- Eliviya had a string and she wants to convert this string to a words array without…
Q: You are expected to generate a password of 8 characters. These characters can be between numbers and…
A: Include header files Declare the int variables i pass, and n Get the n value from the user which is…
Q: Make a C# programming of: Rotate It by CodeChum My phone, it’s stuck! It doesn’t seem to rotate…
A: using System; class GFG {static int N = 4; // Function to rotate 90 degree clockwisestatic void…
Q: Write a program that prompts the user to enter three cities and displays them in ascending order.
A: #include<iostream>#include<string.h>using namespace std;int main(){char nameAll[5][20],…
Q: I have provided the code I have written. All I need you to do is to rewrite the code. I need you to…
A: Solution: I restructured the code and re-write the comments as well and code is running properly.…
Q: PYTHON: Please help me fix my code. It was supposed to ask the user to input an inorder traversal…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: Q3. Write a python code to do the following operations. 1. Create a stress tensor and a strain…
A: Below I have provided the answer based on the Python Programming. Refer the comments for better…
Q: WRITE CODE IN C LANGUANGE As a future doctor, Jojo works in a laboratory that analyzes viral DNA.…
A: Answer : #include<stdio.h>#include <string.h> // main headerint main(){ // test…
Q: explain this program to me. For example, why this program wrote like this and etc. please give me as…
A: The usage of default function parameters is demonstrated in this example. It features a feature that…
Q: You are writing an inventory system for a library. This program will allow the user to enter a book…
A: #include<iostream> #include<vector> #include<fstream> using namespace std;…
Q: You require an algorithm that will receive the dimensions of a fish tank from the screen (length,…
A: Write an algorithm to find the volume of a fish tank. Get the dimensions of the fish tank in the…
Q: This program is meant to help you get practice with writing programs to perform more complex…
A: #calculates the dotproduct of two vectorsdef dotproduct(v1,v2): sum = 0; for i,j in zip(v1,v2):…
Q: This is a debugging problem I am stuck on - The files provided in the code editor to the right…
A: // Application contains a starting list of three products for sale// The user is prompted for…
Q: python: def ohno_twozero(placeholder, statement): """ Question 1 - Regex You are typing…
A: The Python program for the given problem is as follows: # Import the pprint module for calling…
Q: When the user enters 4 at the menu prompt, your program will access all objects in the array to…
A: this is the code:
Q: Create an array with the size of the sum of the digits in your student number using the C language.…
A: Here, Code instruction is given.
Q: Create a procedure that generates a random string of length L, containing all capital letters. When…
A: Actually, given information: Create a procedure that generates a random string of length L,…
Q: Assignment 7 A: These are the instructions and the sample outputs are included in pictures. Language…
A: We will be using the help of classes in C++ and then we can use different functions and constructors…
Q: #6 - program that reads the name data from the files named firstNames.txt and lastNames.txt and…
A: Solution: Code(Python): with open("firstnames.txt", "r") as file: data file.readlines() firstnames…
Q: Write a program that reads form the keyboard student test scores in the range 0 - 100, and store…
A: As the language is not specified answer written in python
Q: Write a program that will help a Little League coach keep track of the players on the team. Use an…
A: Use an infinite loop to display various options and specify a condition to quit from loop when user…
Q: I have provided the code I have written. All I need you to do is to rewrite the code. I need you to…
A: Below is the updated code and sample output:
Q: Need help with this project in PYTHON. Thank you! Project to sort through data: - Make…
A: def bubble(self): def bubble_sort ( array ) : swap_test = False for i in range (…
Q: Which header file supports the predefined function printf? conio.h math.h O ctype.h O stdio.h…
A: 1 . stdio.h standard library functions are basically the inbuilt method in programming language…
Q: in java Write a program called NestedLoop that prints the below. Use a for nested loop. 1 22 333…
A: Start run loop from 1 to 5 with index 'i', and increment it by 1 run loop from 1 to 'i' with index…
Q: How to return a switch statement after execute any case on it, is it possible? The menu is:…
A: In this question we need to provide a way to make switch function return after executing any case…
Q: When the value of an item is dependent on other data and that item is not updated when the other…
A: Answer is given below,
Q: PYTHON:
A: Initialize empty lists inorder_list, preorder_list, and postorder_list to store the input…
Q: The local pet store has 35 different bowls with fish in them arranged in a circle in the “fish…
A: Complete answer is given below .
Q: C++: Create a basic contact book where you can store and then retrieve contact information. The…
A: 1. Class contactBook with the information to be stored: class contactBook{ char…
Q: Fill the missing code to ensure that the loop repeats 10 times for (int x = 0;______; x++) { }…
A: above snippet code answer in below step.
Q: Create an ArrayList, Named it Husnain that can hold Integers, and fill each slot with a different…
A: By specifying the number n, we can generate the random number from 0 to n-1 So, add 1 to this, and…
Q: Using pseudocode, this program was created. "Create an application that prompts the user to input…
A: the answer is given below:-
Q: LC3 ASSEMBLY HELP. I have written the code for "Reads", "IsPrime" and "ResultS" now i need to…
A: Certainly! LC-3 (Little Computer 3) is a type of educational computer architecture designed to teach…
Q: How do I fix my code so that the program displays the student's full name? I have attached a…
A: #include <iostream>#include <fstream>#include <string> using namespace std; int…
Q: In this laboratory & assignment, you will draw a series of 6 star and numbers patterns using nested…
A: Given : All The Pattern Program Solution given in further Steps.
Q: Initially, you will prompt the user for the names of two files: one will contain Customer…
A: import csvimport sys # ask the user for the file namescustomer_info = input("Enter the file name…
Q: Write a program that displays a temperature conversion table for degrees Celsius and degrees…
A: As programming language is not mentioned so we are giving answer in C language
A friend, Anna, has a lot of books in her house. She has asked me to create a
Step by step
Solved in 2 steps with 1 images
- PYTHON PROGRAMMING ONLY PLZZ Ask the user to enter numbers: You must have a way for the user to stop entering numbers. An example would be to have the user type q. Store the numbers the user entered into a list Calculate the total Calculate the average Calculate the largest number Display the following information to the user: How many numbers the user entered The total The average The largest number Print each value with a description do not just print numbers to the console. Describe each number as they print.Based on the image attached, design C Code [with good comments & output presentation]. - When the inputs do not get enough 20 numbers, the program display not enough numbers.Cassignm222 Assignment 2 features designing a program using pseudocode and then completing the program in Python using a list. M4Lab2 asks you to write a Drawing app in Python and Pygame using a list for the colors. Each lab asks you to write pseudocode that plans the program's logic before you write the program in Python and to turn in three things: 1) the pseudocode, 2) a screenshot of the output, and 3) the Python program. # Step 1: Define a colors list to describe 3 colors.# Hint, use their RGB number values Step 2: define a radius variable for your pen at 5, 10 or 15# Test them to see which radius you prefer and use it # Step 3: write the elif for pressing button 2, similar to button 1 # Step 4: write the statement for button 2's color # Step 5: write the else statement for button 3 # Step 6: choose a color from the list??
- 2. I have provided the code I have written. All I need you to do is to rewrite the code. I need you to rewrite the comments, rename all the variables, and shift the code. It should look different once you have edited it. I would like to see another format for this code. It is in C-Programming. I think it shouldn’t take so long. Take your time, please! I really appreciate any help you can provide! CODE STARTS HERE: #include<stdio.h>#include<string.h>#include<stdlib.h> int main(int argc, char* argv[]){ printf("Entered String is: %s\n", argv[1]); const char *original_str = argv[1]; int i = 0, j = 0; int err_flag = 0; char num_arry[10] = {'0','1','2','3','4','5','6','7','8','9'}; /*if string conatins a digit in it return error, simple linear search has been used*/ for(i=0;i<10;i++){ for(j=0;j<strlen(original_str);j++){ if(original_str[j] == num_arry[i]){ printf("error\n"); err_flag = 1;…Write a program that displays a table of pounds and equivalent weights in kilograms. You can find the conversion factor online if necessary. Store this factor in a properly named constant. Allow the user to specify the range of pounds for the table by prompting for the start, stop, and step values for the pounds column. Display the pounds accurate to two decimal places centered in a column 10 characters wide. The kilometers should display accurate to three decimal places and right-aligned in a column 12 characters wide (see page 75-78). Column headings should be displayed with the same alignments. See Sample Output.Can you create a flowgorithm for this below? A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. You’ll write a program to assign seats on each flight of the airlines only plane (capacity: 10 seats). Your program should display the following menu alternatives: Please type 1 for “first-class” Please type 2 for “economy” If the person types 1, then your program should assign a seat in the first-class section (seats 1 – 5). If the person types 2, then your program should assign a seat in the economy section (seats 6 – 10). Your program should then print a boarding pass indicating the person’s seat number and whether it’s in the first class or economy section of the plane. Use a one-dimensional array to represent the seating chart of the plane. Initialize all elements of the array to 0 to indicate that the seats are empty. As each seat is assigned, set the corresponding element of the array…
- Program in C++ & Visual Studio not Studio Code Everyone has played Yahtzee... Right? There are so many better dice games, but my family likes this one the best. A YouTube video that describes Yahtzee can be found here. The basic rules are as follows: At the start of your turn you roll five normal everyday six sided dice. In the course of your turn you would choose to reroll any of the dice up to two more times. We are more concerned in this problem with the dice at the completion of your turn. This website gives a great rundown of the probabilities of Yahtzee that you will need. NOTE: You may ONLY use a set and map data structure to complete the solution to this problem Let’s see what results the dice give us using the following data structures and process: Prompt the user to enter five valid numbers (Range: One to six inclusive on both ends) Each time the user enters a valid number, “place” it into a map of integersCreate and use a set of integers with your data to…In this project you will generate a poker hand containing five cards randomly selected from a deck of cards. The names of the cards are stored in a text string will be converted into an array. The array will be randomly sorted to "shuffle" the deck. Each time the user clicks a Deal button, the last five cards of the array will be removed, reducing the size of the deck size. When the size of the deck drops to zero, a new randomly sorted deck will be generated. A preview of the completed project with a randomly generated hand is shown in Figure 7-50.What special library is needed to create a character array? Group of answer choices iomanip string fstream no special library
- Assume that a gasoline company has a computer facility to take care of billing customers when they buy gasoline with credit cards. The computer is used to make out the check to the station, prepare a master list and create mailing lists and bills. Each customer's information is punched on the card, which contains the gas station number and name, the customer's number and name, and certain billing codes. Can you think of any things that could happen that would make the program useless?In c++ please. Not priir code.I need help with creating an Algorithm and Green text/comments for this C++ code. My professor told me that the code needs to look ORGANIZE AND NEAT and BE EASY TO READ. He recommends writing notes/comments ( I assumed he's referring to the GREEN TEXT). I MUST HAVE A ALGORITHM AT THE TOP OF THE CODE AND COMMENTS FOR THIS CODE. THE PHOTOS SHOWS AN EXAMPLE OF CODE THAT IS ORGANIZED IN THE WAY MY PROFESSOR WANTS IT. I NEED HELP WITH CREATING AN ALGORITHM AND ORGANIZING THE CODE IN THE WAY MY PROFESSOR WANTS IT. PLEASE HELP. I ALREADY CREATED THE CODE JUST NEED HELP WITH I MENTION ABOVED.