![]() ![]() Display all the values with appropriate titles. Take input of all the values need to calculate these areas from the user with appropriate prompts. Write a Python program to find area of i) Square, ii) Rectangle, iii) Circle. Print "your triangle size is " + str(triangle_area) ![]() Print "your circle area is " + str(circle_area) Print "the calculator is now starting up" Print"this program allows you to select a shape, then calculates its area, and then prints the area of that shape to you." Size_T2 = float(raw_input("enter the base: ")) Size_T1 = float(raw_input("enter the height: ")) Size_C = float(raw_input("enter the radius: ")) Print C for circle and T for triangle: ") Thanks! #these are the definitions of the variables Can anyone divine from the code as to what I could do better? I know I didn’t follow all the directions, but I do want to know why the console asks the user for radius, height, and base every time regardless of whether the user enters C and T. In this section, you’ll develop a calculator GUI app using the Model-View-Controller (MVC) design pattern. Height = int(input("Enter the value of height: ")) Creating a Calculator App With Python and PyQt. Width = int(input("Enter the value of length: "))īase = int(input("Enter the value of base: ")) Length = int(input("Enter the value of length: ")) Radius = int(input("Enter the value of radius: ")) Side = int(input("Enter the value of side: ")) _input_ = input("Enter the shape you want to calculate area of: ") ![]() That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! #area calculator If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with! Create a program that calculates the coins needed to make change for the specified number of cents. ![]()
0 Comments
Leave a Reply. |