
Need any help I can get solving this problem. I just started coding less than a month ago.
In case of any query, do comment. Please rate answer. Thanks
Code:
#take input from the user
chairStyle1 = input("Please enter name of first Chair Style: ")
chairSold1 = int(input("Please enter number of chair sold of {}: ".format(chairStyle1)))
chairprice1 = float(input("Please enter price of chair {}: ".format(chairStyle1)))
chairStyle2 = input("Please enter name of second Chair Style: ")
chairSold2 = int(input("Please enter number of chair sold of {}: ".format(chairStyle2)))
chairprice2 = float(input("Please enter price of chair {}: ".format(chairStyle2)))
chairStyle3 = input("Please enter name of third Chair Style: ")
chairSold3 = int(input("Please enter number of chair sold of {}: ".format(chairStyle3)))
chairprice3 = float(input("Please enter price of chair {}: ".format(chairStyle3)))
#calculate amount respectively
amount1 = chairSold1 * chairprice1
amount2 = chairSold2 * chairprice2
amount3 = chairSold3 * chairprice3
#calculate final amount
total = amount1 + amount2 + amount3
#display as desired output < is used for left alignment , > for right alignment
print("{:>35}{:>25}".format("PRICE PER","NUMBER"))
print("{:<25}{:>10}{:>25}{:>25}".format("STYLE","CHAIR","SOLD","AMOUNT"))
print("{:<25}{:>10}{:>25}{:>25}".format(chairStyle1,"${:.2f}".format(chairprice1),chairSold1,"${:.2f}".format(amount1)))
print("{:<25}{:>10}{:>25}{:>25}".format(chairStyle2,"${:.2f}".format(chairprice2),chairSold2,"${:.2f}".format(amount2)))
print("{:<25}{:>10}{:>25}{:>25}".format(chairStyle3,"${:.2f}".format(chairprice3),chairSold3,"${:.2f}".format(amount3)))
print("")
print("{:<55}{:>30}".format("TOTAL","${:.2f}".format(total)))
============screen shot of the code for indentation

Output:

Need any help I can get solving this problem. I just started coding less than a...
I need help with this C++ problem so far my algorithm is looking like this. #include using namespace std; void input(char fullname[35], int weight, int distance); double totalcharges(); main() { char fullname[35]; int weight; int distance; for(int i = 1; i <= 3; i++) { input(fullname, weight, distance); } } void input(char fullname[35], int weight, int distance) { char f[35]; //full name int w; // weight int d; // distance cout << "What is your full name? Please enter `...
Hi, I need help for solving Linux question. . 1.Using the proper text editor, create a shell file called by (your name), your enrollment number, your program and the courses you study. Use the appropriate variables and display the above to the standard output (screen). . 2. Write A Shell Script to perform the following: Display the files and directories Print the date in 24 hour format Display the System id Display the current working directory Print the status of...
I need help with using the infile and outfile operations in C++... Here's my assignment requirements: Assignment: Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1.5% service charges on the total amount for each transaction, buy or sell. When Cindy sells stocks, she would like to know if she gained or lost on a particular investment. Write a program that allows Cindy to read input from a file called Stock.txt: 1. The...
I need this done in C++ Can someone help me get my code from crashing. The code compiles but it can be easily crashed with user input. The rubric and code below Instructions: Write a program that scores the following data about a soccer player in a structure: Player’s Name Player’s Number Points Scored by Player The program should keep an array of 12 of these structures. Each element is for a different player on a...
PLEASE HELP FAST AND ALL IN ACCOUNTING. I WILL RATE 5 STARS.
Ancestry Furniture Company manufactures and sells oak tables and chairs. Price and cost data for the furniture follow: (Click the icon to view the price and cost data.) Ancestry Furniture has three sales representatives: Albert, Buck, and Candy. Albert sold 60 tables with 6 chairs each. Buck sold 100 tables with 8 chairs each. Candy sold 110 tables with 4 chairs each. Read the requirements. 1 Data Table...
I need help with one small part of the following question. I think I know how to do all the things the question is asking I just can’t figure out how to get it to open the text file. I tried Filename =input “vacation.txt” but that didn’t open the file. Does the program have to direct it to "find" the program? HERE IS THE COMPLETE QUESTION: Create a Python program that: Opens a file and reads the contents of the...
You are asked to create the beginnings of a point of sale system for a bookstore in an .aspx webpage. The manager needs to know how much to charge for a transaction derived from the bookstore's three product categories: magazines, paperback books, and educational toys. Using one .aspx page. This project gives you practice with input validation, using local variables, and reporting your output.Include input validation as needed.If each magazine costs $6, each book costs $20, and each toy costs...
C++ i have started the program i just need help finishing it. This chapter is on functions. If you write this assignment without creating functions (main itself does not count) then the maximum score you can receive is 10% of the grade even if the output is perfectly correct. Write a modular program with the following Functions: Main, PrintHeading, PrintTuitionTable The Main Function should ask the user for a Tuition like assignment 6. Then it should call the PrintHeading function,...
I need help in Python. This is a two step problem So I have the code down, but I am missing some requirements that I am stuck on. Also, I need help verifying the problem is correct.:) 7. Random Number File Writer Write a program that writes a series of random numbers to a file. Each random number should be in the range of 1 through 500. The application should let the user specify how many random numbers the file...
Python 3 Problem: I hope you can help with this please answer the problem using python 3. Thanks! Code the program below . The program must contain and use a main function that is called inside of: If __name__ == “__main__”: Create the abstract base class Vehicle with the following attributes: Variables Methods Manufacturer Model Wheels TypeOfVehicle Seats printDetails() - ABC checkInfo(**kwargs) The methods with ABC next to them should be abstracted and overloaded in the child class Create three...