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 some one to help me with my program. Pyton. Program
Program Summary: Write a program that allows the user to enter a number between 1 and 1000. If the number is ***** provide an error message and allow the user to try again until he enters a valid value. Once you have a valid number, use it to determine and print the following information: *Note that in the list of factor pairs, you should not include duplicates.• Number squared • Number cubed • Number Type: Even composite number Odd or Even Prime (Exactly 2 factors) or Composite (More than 2 factors) • Whether the number is ***** perfect square: No (6 does not have an integer square root like 4 or 9) • Square Root: (Print this line only if the number is ***** square) • List of factors that exclude duplicates and are printed horizontally on a single line Factors: (1, 12) (2, 6) (3, 4) (4, 3) (6, 2) (12, 1) should not be includedTechnical Requirements: • Include the program name, student heading and summary in comments at the beginning of your program • Include comments throughout your program to explain the logic • Use a function for your input logic that includes error checking o Use a condition while loop that will cause the loop to execute if the number entered is not valid o The loop should provide feedback indicating that the number entered was invalid, and provide the user the opportunity to enter a different one. • Use a loop of your choice to determine list of factors • Use at least two other user-defined functions • When determining the number characteristics, do not use any python mathematical functions like sqrt • Match the sample output as closely as possibleSample Test Data:Please enter a positive integer: 12Number Facts about 12: Squared Value: 144 Cubed Value: 1,728 Factors: : (1, 12) (2, 6) (3, 4) Type: Even composite number Perfect Square: NoPlease enter a positive integer: 9Number Facts about 9: Squared Value: 81 Cubed Value: 729 Factors: (1, 9) (3, 3) Type: Odd composite number Perfect Square: Yes Square Root: 3 … read more
Mark W
Mark W
Consultant
BSc (Hons)
195 satisfied customers
Need help understanding python. I got a pig latin assignment
Write a program using a while loop that asks the user to enter a word (see 2 for user input functions), then converts the word to Pig Latin. Transform your code from assignment 2.3 (Pig Latin game) into a function, pig_latin, that takes parameters, instead of asking the user for input. Make sure to return your answer rather than printing it. 3.2 Write a function, roll_dice, that takes in 2 parameters - the number of sides of the die, and the number of dice to roll - and generates random roll values for each die rolled. Print out each roll and then return the string “That's all!” An example output: >>> roll_dice(6, 3) 4 1 6 That's all!( Note: For this function, we'll use the random module. At the top of your code, add the line - import random. To generate a random integer, use the function randint, which works like this: random.randint(lo, hi), where lo and hi are integers that tell the code the range in which to generate a random integer (this range is inclusive).) 3.3 Write a function, is_palindrome, which takes a string as parameter, and returns True if the string is a palindrome (meaning it is the same forwards as backwards), and False otherwise. For an additional challenge, try writing this as a recursive function.… read more
erwindavid89
erwindavid89
Master of Science
2,838 satisfied customers
I need answers in these programs in C language1) Write
I need answers in these programs in C language 1) Write a function square () that takes an integer and return its square, and a function cube() that takes an integer and return its cube. Use square ()… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
SECTION A 1. Describe how to implement a compiler language
SECTION A 1. Describe how to implement a compiler for a language in the same language (“bootstrap- ping”). 2. Invent a syntax for an APL-like matrix-based language that uses ordinary characters. 3. Wr… read more
educatortech
educatortech
5,578 satisfied customers
1) Write a macro, MIN5 (A, B, C, D, E), which takes five arguments
1) Write a macro, MIN5 (A, B, C, D, E), which takes five arguments and returns smallest value. 2) Write a function which will determine how many words are in a given string. You can assume that one or… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
Problem Description Palindromes are words or numbers that
Problem Description Palindromes are words or numbers that are read the same forwards and backwards. For example: 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 111, 121 are palind… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
This must be completed in C programming!!! 1) Write a program
This must be completed in C programming!!! 1) Write a program that estimates the value for e (Euler's constant) with 10 terms by using the formula: e = 1 + 1/1! + 1/2! + 1/3! + … 2) Write a program to… read more
jatechexpert
jatechexpert
Master's Degree
1,337 satisfied customers
Here is my Final questions, Last one im gonna ask u for a
Here is my Final questions, Last one i'm gonna ask u for a while. Deadline 04/09/11 6pm EST Choose 8 out of 10 questions. Do test out your answers but I don't need to see your code that calls your fun… read more
jatechexpert
jatechexpert
Master's Degree
1,337 satisfied customers
Introduction A palindromic number if any (integer) number
Introduction A palindromic number if any (integer) number which is the same when read forwards or backwards. For example, the ?rst few palindromic numbers are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
Write a Java application program called Largest.java that inputs
Write a Java application program called Largest.java that inputs a series of 10 single-digit numbers and determines and prints the largest of the numbers. Except main() method, no other user-defined m… read more
neelimark
neelimark
Embedded Software Engineer
Bachelor's Degree
441 satisfied customers
STEP 1 Largest (10 points) Write a Java application
STEP 1: Largest (10 points) Write a Java application program called Largest.java that inputs a series of 10 single-digit numbers and determines and prints the largest of the numbers. Except main() met… read more
ATLPROG
ATLPROG
Sr Software Engineer
Master's Degree
7,700 satisfied customers
Explain the design and application of arrays and how an array
Explain the design and application of arrays and how an array simplifies program development. Support your answer with a hypothetical real-world example.\ Explain at least four benefits of modular des… read more
Ingo U
Ingo U
Master's Degree
509 satisfied customers
NEED IT BY SUNDAY!!!!! Write a Java application program called Largest
NEED IT BY SUNDAY!!!!! Write a Java application program called Largest.java that inputs a series of 10 single-digit numbers and determines and prints the largest of the numbers. Except main() method, … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
8,603 satisfied customers
222mk, Please help with the following JAVA questions below:Write
Please help with the following JAVA questions below: Write both an iterative and a recursive method that accepts a string as a parameter and determines whether the string is a palindrome--the same spe… read more
Jason Jones
Jason Jones
IT & Network Consultant
AAS Information Technology
14,555 satisfied customers
write a program that will determine a lock combination given
write a program that will determine a lock combination given one single integer. The integer will be an 8-digit, positive value. Any value without 8-digits will produce an error message. All input val… read more
Roberto
Roberto
Bachelor's Degree
67 satisfied customers
a sequence is a polindrome if it is the same backwards and
a sequence is a polindrome if it is the same backwards and forwards. suppose you are given a sequence of characters, for example " datastructuresisfun ". there are many subsequences of this string whi… read more
Raj
Raj
SAP ABAP Consultant
Master's Degree
925 satisfied customers
Request a C program with a recursive function that returns
Request a C program with a recursive function that returns a value of 1 if its string argument is a palindrome. A palindrome consists of a word or deblanked, unpunctuated phrase that is spelled exactl… 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