Programming

Programming questions? Ask a programmer for answers ASAP

Connect one-on-one with {0} who will answer your question

Related Programming Questions
I need help with a python function: Write a function
I need help with a python function: Write a function has_unique_values() that takes a dict as a parameter and returns True if the keys have unique values (that is not two keys have the same values).# … read more
Nilesh
Nilesh
CEO
Bachelor's Degree
1,794 satisfied customers
Write a rational number class. For now we will use member
Write a rational number class. For now we will use member functions add, sub, mul, div, and less that each carry out the operations +, -, *, /, and <. For example, object1 + object2 will be written… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
Define a Python function named dog_bites that has three
Define a Python function named dog_bites that has three parameters. The first parameter will be a list. Each entry in the first parameter will be a list with a length of 3 (the first and last entry ar… read more
Brian A
Brian A
Software Engineer
Computer Systems Engineering
186 satisfied customers
Help with Python coding. Import json def main(): while True:
import jsondef main(): while True: try: n = int(input("Enter the number of students: ")) break except ValueError: print('You must enter an integer') else: break student_list = [] dataDict = dict() while True: try: for i in range(n): dataDict['first name'] = input("\nEnter First Name of Student "+str(i+1)+": ") dataDict['last name'] = input("Enter Last Name of Student "+str(i+1)+": ") dataDict['exam 1'] = int(input("Enter Exam 1 Grade of Student "+str(i+1)+": ")) dataDict['exam 2'] = int(input("Enter Exam 2 Grade of Student "+str(i+1)+": ")) dataDict['exam 3'] = int(input("Enter Exam 3 Grade of Student "+str(i+1)+": "))student_list.append(dataDict) except ValueError: print('You must enter integers for the exam scores') else: break gradebook = {'student':[dataDict]} with open('result.json', 'w') as fp: json.dump(gradebook, fp) main() … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
Write a new function named compound_by_period that takes the
Write a new function named compound_by_period that takes the same three inputs as before; instead of writing it from scratch, you can copy the previous function definition, paste a new function defini… read more
Bing
Bing
Freelance IT Consultant
2,065 satisfied customers
Do you give help in understanding a language, in my case
hi do you give help in understanding a language, in my case Python, or do you just help with assignments? Thank you … read more
Mian-Wisal Ahmad
Mian-Wisal Ahmad
Field Engineer
MS Electrical Engineering
1,858 satisfied customers
Write a Python program as follows: 1. a function def
Write a Python program as follows: 1. a function def sumofcubes( v ): which returns the sum of the cubes of the values stored in the list v; if x is a value, then x ∗ ∗3 is its cube 2. a function def … read more
Su-ada M
Su-ada M
Master's Degree
42 satisfied customers
I need help with coding python hw questions. I dont know
Write a function weave that takes two lists as parameters and returns a new list with the alternating elements of each parameter list. For example, given:names = [‘joe', ‘tom', ‘penny', ‘sue'] scores = [5, 20, 35, 15] The resulting list would be:resulting_list = [‘joe', 5, ‘tom', 20, ‘penny', 35, ‘sue', 15] If one list is longer, the rest of the longer list should be added to the resulting list after weaving. For example:first_list = [‘joe', ‘tom', ‘penny', ‘sue'] second_list = [5, 20] The resulting list would be:resulting_list = [‘joe', 5, ‘tom', 20, ‘penny', ‘sue'] No files uploaded Q4 Add List 1 Point Write a function add_list(list1, list2) that takes two lists of numbers of the same length and returns a new list consisting of the sum of the first numbers, the sum of the second numbers, etc. For example add_list([1,2,3], [4,5,6]) should return the list [5, 7, 9] since 1 + 4 is 5, 2 + 5 is 7, etc.Your main function should prompt the user for the two lists as follows: read a list of numbers, one number per line, followed by ”done”, then another list of numbers, one per line, followed by done. If the lists have different lengths, your main function should print “The lists are different lengths.” and terminate execution of the program.If the lists that the user inputs are the same length, the main program should call add_list and print the resulting list, one number per line.Note: you may define additional functions, as you see fit.Example execution:Please enter a list of numbers, one per line, ending with a line "done" when the list is completed. 5 4 6 done Please enter a list of numbers, one per line, ending with a line "done" when the list is completed. 7 9 8 done [12, 13, 14] Example execution:Please enter a list of numbers, one per line, ending with a line "done" when the list is completed. 2 5 done Please enter a list of numbers, one per line, ending with a line "done" when the list is completed. 1 3 5 done The lists are different lengths. No files uploaded Q5 Create Prefix Lists 1 Point Implement the function create_prefix_lists(list) that will return a sequence of lists, each containing a prefix of list. All the lists should be collected as one big list.For example, for [2, 4, 6, 8, 10] the function should return [[], [2], [2, 4], [2, 4, 6], [2, 4, 6, 8], [2, 4, 6, 8, 10]].Note: recursion can not be used for this solution, if you are familiar with the concept.No files uploaded Q6 Encoder / Decoder 1 Point Design and implement encoder and decoder functions that perform run length compression of strings (see run length encoding for more information).Run length string encoder: The encoder function should take a string as a parameter, and return the encoded string, represented in a list. For example, given the string “aadccccaa”, the encoded string will be: [['a', 2], ['d', 1], ['c', 4], ['a', 2]].Run length string decoder: The decoder function should take an encoded string (represented in a list) as a parameter, and return the original string. For example, given the encoded string [['a', 2], ['d', 1], ['c', 4], ['a', 2]], the decoded string is: “aadccccaa”.Note: Use the top down design approach to break the problem into smaller subproblems that can be used to solve it. Put both functions in the same file and provide a main method that calls each of them using user-input as the basis of the encoder, and the encoder's result as the input of the decoder.Example execution:Enter a string to be encoded: abbcce. The encoded string is: [['a', 1], ['b', 2], ['c', 2], ['e', 1], ['.', 1]] The decoded string resulting from the encoded string is: abbcce. … read more
Hema Malini
Hema Malini
B Tech
564 satisfied customers
++For Logic Pro Only++ Hi I have a few questions I need answered
++For Logic Pro Only++ Hi I have a few questions I need answered today by end of day need code im using visual studio 2010, bonus will be added if completed thank you . 1) Part 1 In a single program y… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
FULL ASSIGNMENT http //www.mediafire.com/ rynfwat55s4qrwt Lab
FULL ASSIGNMENT: http://www.mediafire.com/?rynfwat55s4qrwt Lab Overview Using the Time class that implements the time of day in a program that we have been discussing, extend the class to include a th… read more
jatechexpert
jatechexpert
Master's Degree
1,337 satisfied customers
Laboratory 4 Assignment Cover Sheet Name __________Karen
Laboratory 4: Assignment Cover Sheet Name __________Karen Harkins_____ Date _____Aug 10, 2011__________________ Section _________________________________________ Fill in the following table showing wh… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
C++ function exercise, Fibonacci sequence (NEED TODAY)
**I need this before 11pm today**I am looking for this answer from a previous question: Customer : ok, here is the remainder or the question Customer : Write the main program that allows the user to e… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
I need these three C programs programs. Begin this program
I need these three C programs programs. Begin this program by creating two arrays of integers, each holding ten elements of data. Create a third array of integers for a result array. Your main program… read more
Raj
Raj
SAP ABAP Consultant
Master's Degree
925 satisfied customers
For Lifesaver Write function prototypes for the following 1.
For Lifesaver Write function prototypes for the following 1. A function named check() that has three parameters. The first parameter should accept an integer number, and the second and third parameter… read more
Nilesh
Nilesh
Bachelor's Degree
649 satisfied customers
i will list the questions and possible answers below each question 1.
i will list the questions and possible answers below each question 1. A ________ is a special type of module that returns a value back to the part of the program that called it. procedure loop functio… read more
lifesaver
lifesaver
Bachelor's Degree
5,463 satisfied customers
1. Write a statement that declares the variable fPtr to be
I need this in the next 30 minutes please: 1. Write a statement that declares the variable fPtr to be a pointer to an object of type double. 2. Write the function header for a function called exchange… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
I need these three C programs programs. Begin this program
I need these three C programs programs. Begin this program by creating two arrays of integers, each holding ten elements of data. Create a third array of integers for a result array. Your main program… read more
lifesaver
lifesaver
Bachelor's Degree
5,463 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Computer Software Engineer

8,603 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

The-PC-Guy

The-PC-Guy

Software Engineer

930 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

Rafael Martins

Rafael Martins

Computer Software Engineer

449 satisfied customers

Desktop, Mobile and Web Developer. 10+ years of experience. Creative solutions provider.

Ramesh Patil

Ramesh Patil

Computer Software Engineer

406 satisfied customers

MCA, 3+ years of experience in Asp.Net, C#, SSIS, VB.Net, Ms-SqlServer2005, MySql, Javascript,

Arty

Arty

Computer Software Engineer

377 satisfied customers

15+ years of programming, C, C++, Java, PHP, awk, ruby, shell, ASM, Forth, Raptor, M.A.R.I.E, Excel

< Previous | Next >

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x