472 Answered Questions for the topic programming

11/03/21

Why is signed char 0xff = -1?

I don't understand it very well.

10/24/21

Describe the difference between Selection, Bubble and Insertion Sort

Describe the difference between Selection, Bubble and Insertion Sort

10/24/21

Explore how Bubble sort works and how it is different from the insertion and selection sort.

Explore how Bubble sort works and how it is different from the insertion and selection sort.

program that will read in the quantities and prices items from a file then calculates the total price

Write a C++ program that will read in the quantities and prices items from a file then calculates the total price (quantity * price) for each item and saves it in another file including the... more

program that counts from 1 through 100, and prints “D3” if the number is evenly divisible by 3

Write a C++ program that counts from 1 through 100, and prints “D3” if the number is evenly divisible by 3, “D5” if it’s evenly divisible by 5, “D3&5” if it’s even divisible by three and five,... more
Programming Python

10/17/21

Python animation game

Using python, if I wanted to make two shapes interact with each other, how would I do that?I am trying to make a simple game from scratch using if/elif/else. What I have done so far is created a... more

Is my thought process for a big-o question correct?

For this question:Approximate the runtime of the following code fragment, in terms of n: Write you answers in a format such as O(N^2) or O(N log N):int sum = 0;for (int i = 1; i <= n; i++) { ... more
Programming Computer Java Web Design

10/07/21

Please help with Java code

How can I define a for loop for the following output:1+2 = 32+3 = 54+5 = 98+9 = 1716+17 = 3332+33 = 6564+65 = 129any help would be very appreciated

Create a function based on Deep Equality called deepEqual that takes two arguments 'true' and 'false'

Javascript. Create a function based on Deep Equality called deepEqual that takes two arguments 'true' and 'false' and returns true if the arguments are deep equal and false if the arguments are not... more

10/06/21

It should display stars, but it gives me an error

I am supposed to let the user enter number of rows and number of columns, but when I enter the rows and columns, it gives me this errorhttps://mrkzgulfup.com/uploads/163354717093041.jpgand it... more

QuickSort. Write the quickSortInternal function. Do not use std::algorithms.

Please include source code and make the code that you include bold. Write the quickSortInternal function. Do not use std::algorithms.You need to add your partitionFunc from the Partition Function... more
Programming Python

10/01/21

I can't get the table right, could anyone please help me to understand what I am doing wrong

the program is about yard's width and depth, so when I enter the yard's width and the depth, so the width and depth for yard 1 will be in the table above the width and depth for yard 2 if there is... more

C++. Create a program that helps keeping track of song lists. Include code.

This program is an exercise in building, traversing, and destroying linear linked lists. The use of recursion should be included at least once in each assignment to better prepare us for future... more
Programming Computer Science

09/25/21

Insertion sort on a circularly linked list

public void InsertionSortLL() { Node start = tail.next; //First element in the circular LL Node temp = start.next; //Comparing node Node curr = start; Node prev = null; ... more
Programming Java Computer Science

09/25/21

Writing Unit test for mutator

Writing unit tests for mutators are only slightly different from that of constructors. The steps used are: Create an object with initial values. Call the mutator method that will change the... more
Programming Python

09/21/21

I need to do a 6x6 table on python, I tried to do many things, but non of the ways worked with me.

I need to do a table that has 6x6 in the range of 36, I tried for hours without any luck.this is the last thing that I could do and it also doesn't work, but I think I am in the right... more
Programming Python

09/06/21

python xmas tree

Write python code that produces this output------------ 0 * 1 * * 2 * * * 3 * * * * 4 * * * * * 5 * * * * * * 6 * *... more

09/06/21

Test Your Programming Skills - Beginner Level

1) Choose your programming language of choice (C, Python, Java, C++)2) Write a program that takes the following inputBob 32 70000Jane 12 14Gina 54 1000Kevin 22 450003) Processes each line of... more

Not able to print the first element in an array (Inputed by user)

I am trying to print the types of vehicles that are being rented. The issue I'm currently having is that the print statement only prints the second type of input from the user.Here I have the do... more

08/17/21

Given a function prototype ( void findtotal (int[ ]) ), write a full program with a main() that :

The answer must be in C++ and use #include<iostream>Given a function prototype ( void findtotal (int[ ]) ), write a full program with a main() that :-Gets user input for 5 numbers. The... more
Programming Math Science Computer

08/10/21

Need help answering these on a practice text for a upcoming exam. Any answers help, Thank you

1.What are the five types of computers?2.What are the three components of an operating system?3.The internet works due to two concepts, what are they?4.Each packet is ?,? and ?,... more

08/10/21

Google collab programming python

Can anyone help me out with this?Use Google Collab and create a collab notebook named "PythonActivity2"For this assignment please use your lecture and the Google Collab tutorial to help you... more

C++. Collection App with Linear Link List

IntroductionIn this program, you will change your collection app to use a linear linked list. The linear linked list has to be in order by some data field in your item class, such as a name, ID, etc. more

C++. Collection App with Dynamic Memory

IntroIn this program, you will add another class for managing the array of items. We will be changing any static C string type to a dynamic C string type. Try to keep it reasonable simple but still... more

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.