472 Answered Questions for the topic programming

How to make a class called time on java with these data informaton:

■Class Time■-second:int = 0 ----> hour:[o, 23]--minute:int = 0 ----> minute: [o, 59]-hour: int=0 -----> second: [e, 59]Methods:-+Time()+Time (second: int, minute: int, hour: int)+getHour):... more

09/22/20

Algorithms and data homework help

Problem 1. (3 + 5 = 8 points) What Does This Code Do? You encounter the following mysterious piece of code. Algorithm 1: Mystery Function Function F(a,n)): If n = 0 : Return (1,a) Else b=1 Fori... more

C# Display a pyramid

Hi!I have found this code in the internet: for (int i = 1; i< 10; i++) { for(int j= 1; j<= i; j++) { Console.Write(i); ... more
Programming

09/22/20

Write a program using integers userNum and x as input, and output userNum divided by x four times. Ex: If the input is 2000 2, the output is: 1000 500 250 125

Write a program using integers userNum and x as input, and output userNum divided by x four times.Ex: If the input is 2000 2, the output is:1000 500 250 125

Whats the answer for these Classes and Objects exercise?(Java)

Question 1: Create a class Circle with data types (radius, colors) and methods getRadius (0, getArea().Question 2: Create a class Car with data types (plateNumber, xLocation, yLocation, speed) and... more

Programming with C#

Hi, why does it become red in the following code?/* Console.Write("Write a number: ");int number = Convert.ToInt32(Console.ReadLine());if (number % 2 == 0 && (11 < number < 21 || 34... more
Programming Computer Science Python

09/08/20

Insert/Display an image from a list on Python. NEED HELP ASAP!!!

I am currently writing a program that requires these 5 criteria:1. Display all U.S. States in Alphabetical order along with the Capital, State Population, and Flower 2. Search for a specific state... more

09/05/20

please convert this c++ program to c :

// C++ program to implement division with large // number #include <bits/stdc++.h> using namespace std; // A function to perform division of large numbers string longDivision(string number,... more

09/04/20

please complete this code :(same variables )

hi this is my code to multiple two large numbers can you please complete it so it divides two numbers too (without changing the variables in the code and please be sure it compile correctly with... more

08/31/20

please write a C program to :

we have a list of student's firstname [80]lastname[80]student's number[11]grade (float)a program to :add a new student to the list remove a student from the list search a student by student... more

08/30/20

please complete this code :

hi this is my code to multiple two large numbers can you please complete it so it divides two numbers too (without changing the names) :#include <stdio.h>#include <stdlib.h>#include... more

08/28/20

C programming :

please write a program to multiply and divide two numbers with 50 digits.

08/28/20

C programming :

please help me write a program to get numbers until user enters "-1" then prints all the numbers in reverse order .for exp :121445123-1prints :-1 123 45 14 12PLEASE‌ use recursive functions if... more

08/25/20

c programming :

please help me write a program to get numbers until user enters "-1" then prints all the numbers in reverse order .for exp : 121445123-1prints :-1 123 45 14 12

08/25/20

c programming :

i have written this program in C to get " n" (number ) first and then get "n "strings , compare the length of all strings and print the biggest one but the program wont compile please help... more
Programming C# Coding

08/02/20

URGENT: Problems with API in C# ASP.NET Core

I am doing an ASP.NET Core Website and have to show the list of all countries with their travel advisory scores in a table. I can't display the data using a Travel Advisory API. Each country is a... more
Programming C# Coding Asp.net

08/02/20

URGENT! Can't show data using API with C# ASP.NET Core

I am using a Travel Advisory API but am unable to show all the data. Each country is a separate key and form different classes when I paste the JSON as classes.How can I call each country class... more

Java Programming - Unclosed Literal

For the following code I'm getting an error message saying :test.java:78: error: unclosed character literal Person p = new Person(1, "G", 12,'female'); ... more
Programming

07/15/20

Write a C Program

Write a C program that calculate the sum of first n natural numbers and sum of first n negative number. You need to get n value form user. Make a proper display for choice. Hint: 1. Array 2.... more

Design a class template, Collection, that stores a collection of Objects (in an array), along with the current size of the collection.

Provide public functions isEmpty, makeEmpty, insert, remove, and contains.contains(x) returns true if and only if an Object that is equal to x ispresent in the collection.

Rehashing requires recomputing the hash function for all items in the hash table. Read more.....

Since computing the hash function is expensive, supposeobjects provide a hash member function of their own, and each objectstores the result in an additional data member the rst time the... more

Using the quicksort implementation, determine the running time of quicksort for random input, sorted input and reverse-order input.

This is the implementation.template <typename Comparable>void SORT( vector<Comparable> & items ) { if( items.size( ) > 1 ) { vector<Comparable> smaller;... more

Java Classes & Objects

How do we calculate the average marks of s, s1, s2 & s3class Test{ public static void main(String args[]){ Student s; s = new... more

06/16/20

File Compression and multi-dimensional arrays

Compression Algorithm:One method of compressing a file is to recognize repeated digits and replace the runs ofrepetition with a number representing the repetition length. For instance for a line in... 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.