1,486 Answered Questions for the topic computer programming
10/12/20
I have a cs question
The following code segment is intended to round val to the nearest integer and print the result.double val = -0.7;int roundedVal = (int) (val + 0.5);System.out.println(roundedVal);Which of the...
more
Computer Programming
10/11/20
Programming SLQ
COMMA-SEPARATED VALUES Maximum of 3 members each group. Create a program that simulates a simple registration and login function. Your program should access, write, edit and update data in the...
more
Computer Programming
10/11/20
programming Please help me !!!!!!!!!
Create two files using any word – processing program or text editor. Write an application that determines whether the two files are located in the same folder
10/11/20
Time efficient algorithm.
Write a time efficient algorithm to find the ith maximum and ith minimum number from thereverse sorted array.
10/11/20
Find the total number of comparisons:
Find out total number of comparisons made in the execution of the loop for any n > 0 in termof CEILING or FLOOR function.int j, n;j = 1;while (j <n) j = j*2;I'm not able to understand...
more
10/09/20
How to make these 4 classes with these information?(java)
Class1 (Person)-name: String-address:StringMethods:+Person(name: String, address : String)+getName():Stringg+getAddress():String+setAddress (address: String) : void+toString():String ---->"name...
more
Computer Programming Computer Science
10/08/20
What is a double reference (&&) in C++?
Computer science related
10/07/20
This question is related to the database management system.
The criteria that can be used to define a DBMS are *a. Data Modelb. Number of users supported by systemc. Number of sites over which database is spreadd. None of these
Computer Programming Computer Science
10/06/20
How would you solve this question?
I am having problems solving this question, any help will be greatly appreciated. :)https://assets.learnosity.com/organisations/154/752559de-c9e1-4dc4-b32b-618929f3cf7c.PNG
Computer Programming
10/03/20
what is the specific reason behind getting these two warning? (need an extended explanation)
#include <stdio.h> #include <stdlib.h> int *get_val(int y) { int x = 200; x += y; return x; } int main() { int p, y = 10; p = get_val(y); printf("%d ", p); exit(0); }After compiling the...
more
Computer Programming
09/30/20
write a c code to implement it. You also need to code for insertion (at start, at end, at a specific position), deletion (at start, at end, at node) and display operation.
a doubly circular linked list data structure
09/30/20
What is the time and space complexity of the following code:
void fun(int n){int temp[n][n];for(int i=0;i<n;i++) for(int j=0;j<n;j++) temp[i][j]=i+j;}
Computer Programming
09/29/20
What is wrong with the following code? and what will be the rectified version of this code ?
#include <stdio.h> #include <stdlib.h> int *get_val(int y) { int x = 200; x += y; return &x; } int main() { int *p, y = 10; p = get_val(y); printf("%d ", *p); exit(0); }
Computer Programming
09/29/20
What situation has occurred after the last assignment of the following code?
What situation has occurred after the last assignment of the following code?int *p = malloc(sizeof(int));*p = 400;p = NULL;
Computer Programming
09/29/20
WHAT IS THE WRONG WITH THIS CODE?
#include <stdio.h>#include <stdlib.h>int *get_val(int y) {int x = 200;x += y;return &x;}int main() {int *p, y = 10;p = get_val(y);printf("%d ", *p);exit(0);}
Computer Programming Computer Science
09/29/20
Does anyone know how I can fix this error in my program? It is not printing the even numbers to the console.
Write a program that reads an integer and prints the sum of all even integers between 2 and the input value, inclusive.I have uploaded a image of my program to google...
more
Computer Programming Computer Science
09/29/20
Does anyone know how I can fix this error in my program? It is not printing the even numbers to the console.
Write a program that reads an integer and prints the sum of all even integers between 2 and the input value, inclusive.I have uploaded a image of my program to google...
more
09/29/20
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
Computer Programming
09/26/20
What is the error?
import java.io.*;import java.util.*;import java.util.Scanner; class Main { static Scanner cin = new Scanner(System.in); public static void main(String[] args){ int correct = 0; ...
more
09/25/20
Statistic using R
In order to adjust the values of the food vouchers of the 9.443 employees of your company, a study will be carried out with the objective of evaluating the average monthly expenditure in...
more
09/24/20
database assignment
You are working in a Library and the Supervisor has asked you to create a database to store the data in the tables below. use MS access any versionUsers...
more
Computer Programming Highschool
09/22/20
Why did WWII lead to significant increases in computer development?
09/22/20
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
Computer Programming Java
09/22/20
pseudocode in java
Write pseudocode for a recursive method that will calculate the expected value of a decision tree, assuming that all decisions are made by maximizing the expected utility. Your method should return...
more
09/21/20
How can I print these elements of the list in python?
The list is given [ 1, 2, [3, 4, 5], [6, 7]]. How can show the output as 1, 2, 3, 4, 5, 6, 7.
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.