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 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
521 satisfied customers
I need help with a programming question for a python
I need help with a programming question for a python assignment … read more
Bing
Bing
Freelance IT Consultant
1,043 satisfied customers
1. Determining the Square Root of a Number Via Recursion For
1. Determining the Square Root of a Number Via Recursion For this programming project you will develop an recursive function to find the square root of a number. The function should the number for whi… read more
LogicPro
LogicPro
Bachelor of Technology
7,995 satisfied customers
The third programming project involves writing a program to
The third programming project involves writing a program to calculate the terms of the following sequence of numbers: 0 1 2 5 12 29 ... where each term of the sequence is twice the previous term plus … read more
LogicPro
LogicPro
Bachelor of Technology
7,995 satisfied customers
The language is Java. In this assignment, you are required
The language is Java. In this assignment, you are required to specify and implement a Java class named IntSortedList. The instances of IntSortedList are sorted lists of integers. Each class in the pro… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
Write a program to calculate the terms of the following
....write a program to calculate the terms of the following sequence of numbers: 0 1 2 5 12 29 ... where each term of the sequence is twice the previous term plus the second previous term. The 0th ter… read more
LogicPro
LogicPro
Bachelor of Technology
7,995 satisfied customers
use file MindtheGap.javaWrite a static method named minGap
use file MindtheGap.java THIS NEEDS TO BE WRITTEN USING THE JAVA LANGUAGE Write a static method named minGap that takes an integer array as a parameter and that returns the minimum gap between adjacent… read more
LogicPro
LogicPro
Bachelor of Technology
7,995 satisfied customers
Document Link for correct formating: http://wikisend.com/download/289566/unit_six.docx
Document Link for correct formating: http://wikisend.com/download/289566/unit_six.docx Step 1: Fill in the following chart showing the value of the variable n at the beginning of each execution of met… read more
unvadim
unvadim
Computer Software Engineer
Diplom
1,168 satisfied customers
1. Write a recursive function that returns the largest integer
1. Write a recursive function that returns the largest integer in an array (the array contains integer numbers). Use the following function header: int largest(int *list, int highest_index) Write a te… read more
LogicPro
LogicPro
Bachelor of Technology
7,995 satisfied customers
1. Objective This project focuses on demonstrating your understanding
1. Objective This project focuses on demonstrating your understanding of recursion. Before attempting this project, be sure you have completed all of the reading assignments listed in the syllabus to … read more
unvadim
unvadim
Computer Software Engineer
Diplom
1,168 satisfied customers
In Java What is the relationship between Arguments and
In Java: What is the relationship between Arguments and Parameters in Java? Using this relationship, how do we associate arguments and parameters with constructor? (Explain what a constructor is.) In … read more
Wiz of All
Wiz of All
Bachelor's Degree
142 satisfied customers
1. (TCO 2) A ________ is a special type of module that returns
1. (TCO 2) A ________ is a special type of module that returns a value back to the part of the program that called it. (Points: 2) procedure loop function decision 2. (TCO 2) Which of the following ar… read more
lifesaver
lifesaver
Bachelor's Degree
5,463 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
What Do You Think 4. Suppose you have written a function,
What Do You Think 4. Suppose you have written a function, named CircleArea, which returns the area of a circle. You call the function from numerous procedures in different form modules. Should you sto… read more
Sandip Patil
Sandip Patil
Master's Degree
Pseudocoe Question I have to turn a short 10 mulitple choice
Pseudocoe Question: I have to turn a short 10 mulitple choice quiz today, but I have to get on a plane and do not have time to finish it. Is anyone up to the challenge? You can find it here: http://ww… read more
lifesaver
lifesaver
Bachelor's Degree
5,463 satisfied customers
Design a function that uses recursion to raise a number to
Design a function that uses recursion to raise a number to a power. The function should accept two arguments: the number to be raised and the exponent. Assume that the exponent is a nonnegative intege… read more
Hirash Riyal
Hirash Riyal
Higher Diploma In IT
174 satisfied customers
Look for ways to modularize the following algorithm and modify
Look for ways to modularize the following algorithm and modify it accordingly. Declare selection as int Display "Menu" Display "1. Open a new document." Display "2. Close the current document." Displa… read more
ehabtutor
ehabtutor
C.E.O
Bachelor's Degree
1,155 satisfied customers
I need to get all the answers in basic pseducode format. 1.
I need to get all the answers in basic pseducode format. 1. Design a swap module that accepts two arguments of the Real data type and swaps them. 2.Design a program that allows the user to enter 20 na… read more
ehabtutor
ehabtutor
C.E.O
Bachelor's Degree
1,155 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:

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

906 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

Tech_Ben

Tech_Ben

Computer Software Engineer

263 satisfied customers

10 years professional experience in Java, C++, Visual Basic, .NET, DB2, Oracle, SQL Server

< 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