HI i am supposed to print out each '-' correspond to the integer number. Please help me as I am not sure where went wrong... (Subject: Python Programming)
Q: C Programming Problem: In your annual examination you are given two numbers X and Y. Below are some…
A: According to the given problem statement we have to develop a C code to find the number of minimum…
Q: Example: (H.W) Given a quadratic equation as follows: ax2 + bx + c = 0 if b*b-4*a*c_is greater than…
A: ! ---------------------------------------------------! Solve Ax^2 + Bx + C = 0 given B*B-4*A*C…
Q: 6.33 LAB: Toll calculation Toll roads have different fees based on the time of day and on weekends.…
A: Solution: Given,
Q: From the top array, calculate the size of this array and multiply each number by one. Print the…
A: #include<iostream> using namespace std; int main() { int arr[10], i, mul=1;…
Q: CODING IN PYTHON: Please help with Python I want to see written code, not screen shots, please.. 1.…
A: PYTHON CODE: # getting the data from the userdata=input("Enter your height in feet and inches(e.g 5…
Q: (Python GUI -Tkinker) You have a group of friends coming to visit for your high school reunion, and…
A: Ggghbb
Q: (All program must be under main function) Student Information First Last Birthdate Address Name Name…
A: Algorithm: Start Read student information and store it in a 1d string array Ask the user whether…
Q: 82. Borrower Input file: Output file: standard input standard output 1 second 256 megabytes Time…
A: We are provided with the number of friends , the amount he has and the amount he want to pay we have…
Q: The correct statements are: For L = 0, L = {e} For L = {}, L* = {e} L+ = LL* OL+ OL* = LL+
A: The query seems to be about formal language theory and properties related to the Kleene closure and…
Q: Question: Write a C program that accepts the MARK obtained in each of the six assessments of a…
A: The program is written in C Language. Check the program screenshot for the correct indentation.…
Q: Write a program (Li and displays, using asterisKs, a filled diamond. For example, if the generated…
A: Answer Code in Python n = int(input("Enter the value:")) for i in range(n): print(" "*(n-i),…
Q: Python can you give me some examples and explanation step by step for the following difference with…
A: Boolean values in python is represented by True and False. Float operations are also allowed in…
Q: please help me modify the sparse text program below so that instead of the letter 'e' being removed,…
A: We need to update the code to accept the letter after that we need to remove it from the file.
Q: Write a c program that prints: - Your name - Your e-mail address - Your High School - Home town -…
A: Variable definition: A name given to a memory address to store data values is called a variable.…
Q: rogram that reads two vectors and calculate the angle in radius between these two vectors , Visual…
A: I have written code below for above question:
Q: Sample Testcase 0: Input: 1.04667 5 Output: 0.5004572 Sample Testcase 1: Input: 1.04667 20 Output:…
A: According to the Question below the Solution: Output:
Q: Rotate Image You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees…
A: Algorithm: 1. Get the User input for the value of n and n*n elements from the matrix. 2. Find the…
Q: put Formi
A: The given code performs the following steps: It takes input as a single line containing two…
Q: (A)ddition (S)ubtraction (M)ultiplication (D)ivision with modulo Please select an operation from the…
A: Answer:
Q: Program that identifies a number of it is odd or even only if it is within the range of 30 up to 50…
A: The answer is given below. Algorithm: Start. Prompt the user to input the value. Check if the value…
Q: UCTION: In this assignment, you will demonstrate how to write simple programs that get input from…
A: I have written the code below:
Q: Topics: while, basic I/O, conditional structure, list, for loop Problem Statement: In this lab, you…
A: condition: Equality Checks if two If c1 = a1 - ib1 and c2 = a2 - ib2 are two complex numbers,…
Q: Python problem Problem statement Given a sequence of positive numbers, determine if they form a…
A: This problem can be solved with the basic knowledge of python programming language .
Q: Jestion 1 cissors.: sints) Write well-documented Python program to play Rock, Pap eldon Cooper, the…
A: Please find the Python code below:
Q: Create a Program that asks for 10 integers (Use Arrays). Afterwards, display a navigation menu and…
A: #include<stdio.h> void printArr(int arr[]){ for(int i=0;i<10;i++) {…
Q: Character keyword for variable declaration in C a. character b. ch c. char d. Char
A: Given: Character keyword for variable declaration in C a. character b. ch c. char d. Char
Q: 6. Square Root by CodeChum Admin You've learned in the past lessons on how to use square root…
A: As the language is not specified answer written in python 1)import math module 2)use…
Q: 3 from math import sqrt three numbers corresponding to a b, and e 5 def quad H Insert Code Below (15…
A: We need to define the function quad that takes 3 values as input and compute the roots.
Q: Write a python program to accept a number and if the number is even calculate Z-y modulus x. by…
A: a= int(input()) if a%2==0: x=int(input()) y=int(input()) z = y%x if a>0: x =…
Q: [Python (py3)] Displayed below is a code for matrix addition. However, there is an error that…
A: Here inside the loop, while adding the row to the matrix, I have removed the axis parameter and all…
Q: Write a python program that reads three numbers (integer or floati from the user, finds the largest…
A: Python Program for above : # read 3 numbers from user print("Enter Three Numbers: ", end = '')…
Q: int getNum(); void display(int n);…
A: Solution :
Q: Friend's Party Circle: There are a few friends living in the same area. They have a party every…
A: Assume Ahmed, Rehman, Careem, Basit, Dawood, Ghani, and Farid are A, R, C, B, D, G, and F.
Q: (IN C LANGUAGE) Cumulative Addition: Computer selects a number between 7 and 23 at random. User will…
A: if (sum == num) { if (count == 2 || count == 3 || count == 5) {…
Q: Matrix addition and subtraction (p. We can use the numpy. add and numpy.subtract functions to add…
A: The algorithm of the code:- 1. Create two numpy arrays A and B. 2. Use the numpy.add() function to…
Q: The circumference of Earth changes with latitude --- it is maximum at the Equator and zero at the…
A: While doing programming in any programming language, you need to use various variables to store…
Q: 1. Create a program using array having a size of 10, that will accept positive numbers only but less…
A: I give both codes in c++ along with output and code screenshot
Q: Problem Statement Create a program that will determine whether a triple can generate a triangle and…
A: Given : Create a program that will determine whether a triple can generate a triangle and if it can…
HI i am supposed to print out each '-' correspond to the integer number. Please help me as I am not sure where went wrong... (Subject: Python
expected output:
-#--#---#----#-----
Step by step
Solved in 3 steps with 1 images
- Case scenario You have been hired at Angela's Kitchen, a restaurant in Los Angeles. Chef and owner Angela has been asking her wait staff to take orders on paper. She would like a new system where the wait staff can type in orders. The system should also print tickets for the kitchen staff that are easy to read so they know what dish to make and what table it belongs to. What your Python program should do Your starter code should be (do not change this) def printout(table, dish, chef): # Finish the rest of this function def kitchen(order): # Finish the rest of this function # Start your main block of code here In the main part of your code outside of the functions Ask the user to type in an order in this format (without the square brackets): [table number] & [the name of the dish] $ [c, g, s, or pl The number is the table number. This is followed by an ampersand '&'. Next is the name of the dish. This is followed by a dollar sign '$'. At the end is c, g, s, or p, in lowercase. This…INTRODUCTION: In this assignment, you will demonstrate how to write simple programs that get input from the user, produce output, perform simple calculations, make decisions, perform iteration/repetition, and create enumeration types. HOW TO SUBMIT YOUR ASSIGNMENT At the top of each of your C++ programs, you should have at least four lines of documentation: Program name (the C++ file name(s)), Author (your name), Date last updated, and Purpose (a brief description of what the program accomplishes). Here is an example: /* Program name: jbtictactoe.cpp * Author: John Doe * Date last updated: 5/1/2017 * Purpose: Play the game of Tic-Tac-Toe ASSIGNMENT: Movie Data Create a program that uses a structure named MovieData to store the following information about a movie: • Title . Genre . Director • Year Released . Running time (in minutes) Write a program that prompts the user for input and allows all of these member data values to be specified. The program should create two MovieData…help with c Please do not copy from the other's answer, and it's not right Your friend's monitor is too small and can only display up to 50 characters on a line before they run off the screen. They aren't good with computers, so you decide to write a program for them called truncator.c that will reprint input so that no line is longer than 50 characters. Specifically, for lines less than or equal to 50 characters, simply reprint the line. For lines greater than 50 characters, insert a newline at each 50-character interval. Note: If the 51st character of a line in the input is a newline '\n', then you should not print it (to avoid unnatural double newlines in the text). Depending on your solution, you may not need extra code for this. So worry about this case last. Tip: Write your own file with test input for the case where the 51st character is a newline. In the bottom-right corner of Vim, you can see the line and column number of your cursor and plan your 51-character input…
- Fast i need only code So please answer fast and only code don’t waste time for othersUrgent help needed!#!Machine Problem. Using arrays, write a C ++ program that will let user input the array size (how many elements). After inputting the array size, it should ask the user for the elements of the array. After inputting the elements of the array, it will prompt the user to choose the following options: 1. Get the sum of all the array elements. 2. Sort the numbers from largest to smallest. 3. Sort the numbers from smallest to largest. 4. Get the average of the array elements. The output must be similar to the sample below. Use cin, cout, and iostream only. Thank you!
- # Debug the following program and submit the CORRECT version ####### Lists names = ["chris","dan", "edgar", "bonnie", "al", "fran"] usernames = ["202999", "100345", "299999", "309890", "298765", "345678"] passwords = ["password", "password123", "abcdef", "asdfjkl;", "ilovemom", "abc123"] menuChoice = 0 # user's menu choice ###### functions def printList(list):# print listprintprint(list)print def displayMenu():# displays user-friendly, creative menu printprintprint("******* MENU *******")print("1. (D)isplay list 1 in original order")print("2. D(I)splay list 2 in original order")print("3. (F)ind an item in the list 1")print("4. (L)ogin")print("99. (E)xit")printprint def isFound(list, value):# finds a value in list returns True if found, False otherwiseif (value in list):return Trueelse: return False ###### main program while (menuChoice != "99"):displayMenu()menuChoice = input("Enter a menu choice: ")# handling menu choices if (menuChoice == "10" or menuChoice.upper().strip() ==…USE "DEFAULT ARGUMENTS" WHILE SOLVING THE PROBLEM IF NOT FOLLOWED WILL BE GIVEN A DOWNVOTE. AND MATCH OUTPUT AND INPUT AS IT IS. NO INTERNET COPY PASTE ANSWER. ---------------------------------------------- Write a C++ program to calculate the area of all classrooms in your college. Most of the classrooms are of standard size [50*40]. Few of the classrooms differ in their size. Include the following function in the Main method. Member Function Description int calculateArea(int length=50, int breadth=40) This function returns the area of the classroom Input and Output Format: Get the number of rooms from the user. Get the choice from the user to indicate whether the room is of standard size or the room has standard breadth alone or the room has non-standard length and breadth. Based on the choice, get the length or breadth or both or none from the user. Refer sample input and output for formatting specifications. [All text in bold corresponds to input and the rest…Hello, I am struggling with getting this DICE GAME to function properly. I have made an attempt to try and get the overall program to debug and run without errors, but to no avail. If I can get some help getting my PYTHON program to Run Correctly. #Lab 7-3 The Dice Game #add libraries needed playerTwo = 'NO NAME' playerOne = 'NO NAME' inputNames = ("enter name") import random #the main function def main(): print #initialize variables endProgram = "no" playerOne = "NO NAME" playerTwo = "NO NAME" #call to inputNames playerOne, playerTwo = inputNames(playerOne, playerTwo) #while loop to run program again while "endProgram" == 'no': #initialize variables p1number = 0 p2number = 0 winnerName = 'NO NAME' #call to rollDice winnerName = "rollDice"(p1number, p2number, playerOne, playerTwo, winnerName) #call to displayInfo displayInfo: ("winnerName") #end of while loop endProgram = "raw_input"('Do you want to end program?(Enter yes…