• Register

Recent questions and answers

0 votes
0 answers 1 view
Problem: I am given a task to write a loop that subtracts 1 from the values given in a vector. I have not worked with vectors a lot. Here are the values that are to be used in the vector: 4,1,8,-2,5,-1,0 I am looking for a complete program that can solve this problem. Thanks!
asked 17 minutes ago Code Learner 5.9k points
0 votes
1 answer 1 view
Problem: I am trying to write a program that calculates the average of scores in 5 subjects and prints the average and the lowest score of all. I tried the following program, but it is not given the correct average: #include<iostream> #include<conio.h> using namespace std; int ... "<<lowest; } It gives 0 as average no matter what values I input. Please guide me about what I am doing wrong. Thanks!
answered 2 hours ago Hafsa_Rao 18.4k points
0 votes
1 answer 2 views
Problem: How do we write a program that prints a triangle, rectangle, square and a inverted triangle of stars on the screen using loops?
answered 2 hours ago Hafsa_Rao 18.4k points
0 votes
1 answer 2 views
Problem: Can you tell me the difference between String str = new String("SOME") and String str="SOME" ? And also which one is better for declaring string variable ?
answered 3 hours ago Aakasht0123 2k points
0 votes
1 answer 2 views
Problem: I want to create a Jar file in Java for my project , how can I do this ?
answered 3 hours ago Aakasht0123 2k points
0 votes
1 answer 5 views
Problem: java.lang.runtimeexception: parcelable encountered ioexception writing serializable object
answered 3 hours ago MUHAMMAD MUNEEB 4.6k points
0 votes
1 answer 1 view
Problem: How can I write a program that reads an unspecified number of integers and then prints how many numbers the user has entered and their sum without using a list or array?
answered 4 hours ago Hafsa_Rao 18.4k points
0 votes
1 answer 1 view
Problem: Hello! I need to write a program that takes string input from the user and removes all the spaces from the string. Following is my attempt. It is not giving the desired output: #include <iostream> #include <string.h> using namespace std; int main() { ... following output: Enter a sentence:This is My Program This I do not understand why this is not printing the whole sentence. Any help?
answered 4 hours ago Hafsa_Rao 18.4k points
0 votes
1 answer 2 views
Problem: How can I find the values in an array whose sum equals some given value?
answered 5 hours ago Hafsa_Rao 18.4k points
0 votes
1 answer 1 view
Problem : Fatal error: &ldquo;You must enable the intl extension to use CakePHP"
answered 5 hours ago tishan210 2.7k points
0 votes
0 answers 2 views
Problem: What Benefit do we get from &ldquo; write-through vs write-back &rdquo;
asked 6 hours ago Azlan2020 540 points
0 votes
1 answer 1 view
Problem: The duplicate occurrences of values from the following list (array) need to be removed: 7, 9, 3, 1, 7, 8, 9, 1, 9, 11, 10 I have written the following code in an attempt to do the job: class Main { public static void main (String[] args) ... array. I do not understand what I am doing wrong and how to get the desired result without worrying about the order of the values. Any suggestions?
answered 6 hours ago Hafsa_Rao 18.4k points
0 votes
1 answer 1 view
Problem : InvalidArgumentError: You must feed a value for placeholder tensor
answered 6 hours ago tishan210 2.7k points
0 votes
1 answer 1 view
Problem: I keep getting this bug while running the my script > write() argument must be str, not bytes
answered 7 hours ago Kiranaz 880 points
0 votes
1 answer 3 views
Problem: How do I fix this one ? write() argument must be str, not list
answered 7 hours ago Kiranaz 880 points
0 votes
1 answer 1 view
Problem: I&rsquo;ve been learning C++ lately and I was seeing some codes on a site , so I wanted to know that does ? and : mean in C++. For eg: return ( m > n ? m : n );What does the ? and : mean
answered 8 hours ago Aakasht0123 2k points
0 votes
1 answer 1 view
Probelm: How to create array of numberes from 1 to n numbers?
answered 8 hours ago Aakasht0123 2k points
0 votes
1 answer 2 views
Problem: How can I edit dll files in Visual Studio ?
answered 8 hours ago Aakasht0123 2k points
0 votes
1 answer 1 view
Problem: How to align a div ot the right?
answered 8 hours ago Aakasht0123 2k points
0 votes
1 answer 2 views
Problem: I want to make a batch program to delete all the content of a specific folder .
answered 8 hours ago Aakasht0123 2k points
To see more, click for the full list of questions or popular tags.