1,474 Answered Questions for the topic computer programming

02/25/23

how to code in python?

Create a new class called Person. Add 3 attributes (or fields) called first_name, middle and last_name.Add a function called format_name() and return all 3 attributes.(Hint: Use the same function... more

02/25/23

how to code this in python?

 Create a class called Simplest() and use the pass statement.Answer the following questions:a. Using the code below, what type is this object?print(type(Simplest))b. Create an instance of Simplest... more

02/25/23

how to do this?

Create a new function in your functions.py script called getAnswer() that takes one numerical argument called answerNumber.use the following code inside the new getAnswer() function: if... more

02/25/23

how to code this?

1.Create 2 functions; one to convert a value from Fahrenheit to celsius and the second function to convert from celsius to Fahrenheit, remember to return the values in the function statement.Create... more

02/25/23

how to code this and import it?

Create 2 functions; one to convert a value from Fahrenheit to celsius and the second function to convert from celsius to Fahrenheit, remember to return the values in the function statement.Create... more
Computer Programming Python

02/20/23

Python 3 homework string help

This si what I'm supposed to do.Define a function named encrypt(msg) that takes a string message as the argument, and returns the message in an "encrypted" form using the encryption rules described... more
Computer Programming

02/20/23

I'm stuck on this question

COP-4338 System ProgrammingProgramming Assignment 2: C Pointers and StringsFIU Knight Foundation School of Comp. & Info SciencesIn this assignment, you will write a program that gets a pattern... more
Computer Programming Python

02/20/23

Python string help(python 3)

I need help doing this for a function Define a function named encrypt(msg) that takes a string message as the argument, and returns the message in an "encrypted" form using the encryption rules... more

02/19/23

how to do this?

in python: Using a string function, print your first and last name with the * symbol on both sides of your name with a max of 25 characters.

02/19/23

how to code this?

In python: Write a small program using a ‘while’ loop (while True). Prompt the user to enter their age. Using a string function, check if the input is a decimal value, if true then break from the... more

02/19/23

how to code in python?

Initialize a string variable to “hello python” and print it out in all uppercase using a string function.

02/17/23

in python how do i write this code?

Write a program that opens a file that will be overwritten each time. Write out a few lines of text and then close the file.

02/17/23

how to code this in python?

Using escape characters, print out the phrase “Welcome to O’Neil’s Boat Rentals!” Initialize one string variable to the following sentence: “Hello there! How are you? I'm doing fine."Using the... more

02/15/23

how to use try and except?

Create a function that will divide 2 numbers and return the result. The function will accept 2 arguments. Use a try statement and the ZeroDivisionError exception type to catch divide by zero... more

02/15/23

How to use escape keys?

Using escape characters, print out the phrase “Welcome to O’Neil’s Boat Rentals!” Initialize one string variable to the following sentence: “Hello there! How are you? I'm doing fine."Using the... more

02/15/23

how to use .format?

Write a function that takes 3 strings - first name, last name and middle initial. Return one string that has the person’s full name. Make sure that the first letter of each name is capitalized... more
Computer Programming Python

02/13/23

python program problem

my program imports another program I wrote. the part of the imported program I'm having a problem with is .def get_float(prompt):  variable = float(input(prompt))  variable =... more

02/11/23

how to do this in dbeaver?

Research how to create queries that: 1) join multiple table; 2) use aggregate functions (e.g. sum()), and 3) “order by” statements Consider online and the text for sources. 2. Create a query that... more

02/11/23

what wrong with this syntax in dbeaver?

insert into warranty values ('p10', '6-year warranty ', 89)insert into warranty values ('p11', '7-year warranty ', 24)insert into warranty values ('p12', '8-year warranty ', 45)insert into warranty... more

02/09/23

how to use debugger to fix code in this example?

Using a breakpoint and the debugger, find the problem and fix the following code: patients = [[70, 1.8], [80, 1.9], [150, 1.7]] def calculate_bmi(weight, height): return weight / (height **... more

02/09/23

how to write an exponent function in python?

Write a function that takes two integers and raises the first number to the power of the second number and returns the result.

02/09/23

how to write an average function in python?

Write a function that takes three arguments (numerical) and returns the average of the numbers entered.

02/09/23

How to write a tax function in python?

Write a function that takes the price of the item as an argument and return the price calculated with a tax value of .07. The goal here is to convert the tax calculation into a reusable function.
Computer Programming Python

02/07/23

How do i make a menu in python

HI how do I make am menu in python? I need a menu that has too options and both options lead to a different menu.

02/07/23

how to go about coding this in python?

Write a function that asks for the user to enter a number of items they wish to purchase.

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.