items by 25%. Store that value to a properly named constant. Write a program that functions like a cashier terminal for one item. Some items are subject to 7% sales tax and some are not. Use a constant for the sales tax value, too. Write a program for Trader Jane's that runs as shown next:
Q: Python Language
A: Given :- In the above question , the statement is mention in the above given question Need to…
Q: The degree of a vertex is defined to be the edges connected to the vertex. For a directed graph, the…
A: def calcDegree(graph): # create empty degree list degree = [[0,0] for i in range(len(graph))] for i…
Q: To convert a time in local minutes to local time you can use the follo (the sunset equations look…
A: Program Code: #include <bits/stdc++.h> using namespace std; void…
Q: May I ask if you know anything about the Python programming language that you could teach me?
A: The term "computer architecture" refers to a system's characteristics that are readily apparent to…
Q: A particular talent competition has 5 judges, each of whom awards a score between 0 and 10 to each…
A: The complete code in python programming language is below:
Q: Kindly answer the attached question using python and without using any of its libraries
A: For above graph given we can find mother vertex using DEPTH FIRST APPROACH & using O(V+E) time.…
Q: Create another program that has the same functionally as palindrome (a) but has the fastest time…
A: Please refer beloe code and output: Language used is Python: Concept is to check each character from…
Q: Please help me learn Python.
A: Learning Python, a popular programming language, can open up a world of possibilities for…
Q: What can you tell me about Python computer language?
A: Python programming language:Python is a high level programming language.It is widely used in…
Q: Solve the recurrence using repeated substitution. (a) T(n) = T(n-1) + n (b) T(n) = 2T(n-1) + 1 (c)…
A: Part (a): T(n) = T(n-1) + n PROGRAM STRUCTURE: Write the definition of the recursive function.…
Q: ztalloc ecneuqes def ztalloc (shape): The famous Collatz sequence was used in the lectures as an…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Assume that our string is: s="There are seven days in the week: Saturday, Sunday, Monday, Tuesday,…
A: Python code :- import rewhile(1): s="There are seven days in the week: Saturday, Sunday, Monday,…
Q: Choose 3 collections (list, vector, queue, etc.) and write a java program to consolidate them into…
A: In this java program, I combined 3 collections lists, vectors, queues in one program using a switch…
Q: Exercise 2. Position, instantaneous velocity and acceleration A car moves with a constant…
A: The formulae used here are as follows u=2st-v a=v-ut Initial Velocity is denoted as u Final Velocity…
Q: Rohan and his team are participating in the Treasure Hunt event of college in which in each step…
A: I give the code in Python along with output and code screenshot
Q: Implement a function calc, which takes a string expression that contains a simple mathematical…
A: a function calc, which takes a string expression that contains a simple mathematical expression in…
Q: Give an example of application created using python.
A: python programs run slower than the others but the codes written in python are much shorter than the…
Q: Implement your own version of Python string methods The provided file string_function: py defines…
A: # 1 def cs110_upper(input_string): ucase_string='' for i in range(len(input_string)):…
Q: The list list1 and list2 are strictly identical if their corresponding elements are equal. write a…
A: #read size of the listsn=int(input("Enter the size of lists "))#lists…
Q: Given two stacks with integer values, balance the sum of integer values present in each of the stack…
A: Given Two stacks with integer values, balance the sum of integer values present in each of the…
Q: Code in python.. 9
A: The problem asks to find the maximum value of an expression formed by applying bitwise XOR…
Q: Suppose you have to design a number calculation system. You need to write a recursive function that…
A: 1. function first a. check if index is out of index of array i. if yes return…
Q: Sum of two squares def sum_of_two_squares (n): Some positive integers can be expressed as a sum of…
A: Here is the detailed and simplified answer to the above listed problem statement:
Q: hod to change the gpa to 4.0. eys) method to print all keys and values. n the value to the…
A: The code is given as,
Q: Exercise 2: Plot the direction field associated to the differential equatio 1 u" + u' +u = 0…
A: import numpy as np import matplotlib.pyplot as plt # Initial conditions u0 = 2 u_dash0 = 0 #…
Q: PYTHON AS IT CARF..
A: In this question we have to write a python code to draw chessboard using turtle Let's code and hope…
Q: Person class has following method for implementation: Person(String name, int age, double height):…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: 7a. Implement the following: a) Use a for loop to create a list with 26 letters (a-z). b) Use a for…
A: Hi. As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: INSTRUCTIONS e repetition to create a loop that produces a sequence that will calculate the sum of e…
A: #include<stdio.h> #include<math.h> int main() { int low=15,high=25,sumOdd; float…
Q: For problem A you will be writing two different functions to iterate through a string. One function…
A: Step-1: StartStep-2: Function loop_sum_digits(string) Step-2.1: Declare variable sum = 0 and i =…
Q: Write in your own words what do you think about the use of python language over other programming…
A: A programming language is a proper language involving a bunch of guidelines that produce different…
Q: Using python, print 10! (ten factorial)
A:
Q: Task 1- Random list of integers and computing the average Two functions you need to implement:…
A: Logic:- use randint from random to generate random number in range[start,end] append the generated…
Q: o learn more about is the Python programming lan
A: Python is a powerful and versatile programming language that is widely used in data science, web…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 6 images
- Write an improved version of the futval . py program from Chapter 2.Your program will prompt the user for the amount of the investment, theannualized interest rate, and the number of years of the investment. Theprogram will then output a nicely formatted table that tracks the value ofthe investment year by year. Your output might look something like this: Year Value----------------0 $2000 . 001 $2200 . 002 $2420 . 003 $2662 . 004 $2928 . 205 $3221 . 026 $3542 . 127 $3897 . 43in C# Sometimes figuring letter grades is hard. Write a program that asks for, and reads from the user, a midterm exam grade and a final exam grade. Compute the average of those two grades and ouput a letter grade based on the scale shown below. CHALLENGE PROBLEM: One of my graduate school classes modified the above calculation. This professor said that the final grade would be determined by the simple average of the midterm and the final, however, if the student scored better on the final than they did on the midterm, the professor would weight the midterm exam at 25%, and the final exam at 75% when computing the final grade. Modify your code to use this professors modification in determining letter grade. Here is the grading scale:Assignment Write a program that moves a forester unit and a desert corps unit to a given target location and prints the number of hours it took for each unit to reach the target. First, the user will give the starting X and Y positions of the forester unit as well as its base speed (all ints). Then, the starting X and Y positions of the desert corps unit as well as its base speed (all ints). Finally, the target X and Y positions (both ints) and the terrain type (std::string). Speeds are given as distance traveled in one full day (i.e., 24 hours) and is affected by the terrain type using a multiplier over the base speed. Also, after 1 full day, each unit rests for a certain number of hours. Speed multiplier and rest amount of each type of unit depending on the terrain type are as below. Speed Multiplier Rest Duration After 1 day Terrain type Forester Desert Corps Forester Desert Corps Forest 1.3 0.6 4 12 Desert 0.4 1.2 15 6 Hills 0.7 0.8 6 8 Others 1.0 0.8 8 6 After getting all this…
- JAVA Based PrgmIN PYTHON PLEASE AND FLOWCHART DRAWING COMPUTERIZED PLEASE!! In many businesses across the country, people are buying food and goods using cash. Whenever a purchase is made with cash, it is usual that change must be back to the customer. Business point of sales software help to ensure that the correct change is return to a customer by providing detailed information of the change that should be returned to the customer. using the fewest number of bills and coins. In this assignment, you are asked to design and implement a program that writes out what bills (ones, fives, tens, twenties) and coins (pennies, nickels, dimes, and quarters) that should be returned to the customer given two inputs from the user: A total cost of a sale. The amount that was paid by the customer. Ensure that your output is grammatically correct. If the customer does not provide adequate payment, you should print the following statement, the program should end. Did not receive enough cash from the customer.…write a program that read an excel sheet that contains some animals' information. The information consists of animal name, its weight in N, its height in m, and its availability in Iraq. The program will ask the user to select one of the available animals, then print the corresponding .information
- Write a program that helps a company manage salaries of its employees. Your program should ask for the number of hours worked and the hourly rate of an employee than, display the salary. This program should allow the user to enter the information of many employees until enters -1. Sample Run: Enter the number of hours worked (-1 to end): 32 Enter hourly rate of the worker: 100 Balary is 03200 Enter the number of hours Worked (-1 to end) : 40 Enter hourly rate of the worker: 5 Balary is 3200 Enter the number of hours worked (-1 to end): 42 Enter hourly rate of the worker: 10 Salary is 0420 Enter the number of hours worked (-1 to end) : -1Write a program to simulate a bank transaction. As the banker, create a single pin number for all customer that enter the bank (a constant variable). You are now ready for customer transactions. Prompt the customer for their name and pin number. If the pin number does not match your banker pin number, then they are not a valid customer. Send them away. If the customer is a valid customer, there are two bank accounts: checking and savings. First, ask for the initial balances of the bank accounts; reject negative balances. Then ask for the transactions; options are deposit, withdrawal, and transfer. Then ask for the account; options are checking and savings. Then ask for the amount; reject transactions that overdraw an account. At the end, display the balances of both accounts (using printf) to two decimal places and with a leading dollar sign.Coin Exchange: Write a program that will determine how many coins of each denomination (50kr, 25kr, 10kr, Skr, and 1kr) are required to make up a given amount of change. For example, to make 57kr we could use 1 x 50kr, 1 x 5kr, and 2 x 1kr., It should be obvious that many combinations of coins are possible. For example, in the example above, we could make up 57kr with: (57 x 1kr) or (2 x 25kr and 7 x 1kr). However, your program must use the smallest number of coins (10 points). Example program output: Enter amount: 40 40 Kr = 1 x 25Kr 1х 10Кr 1 x 5Kr
- Write a program that takes balance of a user's account as input.it should then ask the user how much amount he wants to withdraw from his account.the program should take this amount as input and deduct from the balance.similarly,it should ask the user how much he want a to deposit in his account.it should take this amount as input and add to the balance.the program shall display the new balance after amount has been withdrawn and depositedPython programming In a department store sale, customers who purchase over 2000 are given 10% discount. Write a program that will accept for the purchase amount of a customer, solve for his/her discount if there’s any, ask for the money he/she is going to pay, then output the discounted price and the change of the customer.”write a program that displays, in ascending order,the first names of those students who have attended more than one day of the course.If there are students with the same first name, display their first and last names.