• Register

Recent questions

0 votes
1 answer 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 26 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!
asked 2 hours ago Code Learner 5.9k 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?
asked 3 hours ago Code Learner 5.9k 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?
asked 4 hours ago Code Learner 5.9k 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?
asked 5 hours ago Code Learner 5.9k points
0 votes
1 answer 2 views
Problem: How can I find the values in an array whose sum equals some given value?
asked 5 hours ago Code Learner 5.9k 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 : Fatal error: &ldquo;You must enable the intl extension to use CakePHP"
asked 6 hours ago Shovo210 2.6k 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?
asked 6 hours ago Code Learner 5.9k points
0 votes
1 answer 1 view
Problem : InvalidArgumentError: You must feed a value for placeholder tensor
asked 6 hours ago Shovo210 2.6k 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
asked 7 hours ago Azlan2020 540 points
0 votes
1 answer 2 views
Problem: How can I convert string into int after taking input ?
asked 8 hours ago Ashty 1.1k 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 ?
asked 8 hours ago Ashty 1.1k points
0 votes
1 answer 2 views
Problem: I want to make a batch program to delete all the content of a specific folder .
asked 8 hours ago Ashty 1.1k points
0 votes
1 answer 1 view
Problem: How to align a div ot the right?
asked 8 hours ago Ashty 1.1k points
0 votes
1 answer 2 views
Problem: How can I edit dll files in Visual Studio ?
asked 8 hours ago Ashty 1.1k points
0 votes
1 answer 1 view
Probelm: How to create array of numberes from 1 to n numbers?
asked 8 hours ago Ashty 1.1k 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 ?
asked 9 hours ago Ashty 1.1k 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
asked 9 hours ago Ashty 1.1k points
0 votes
0 answers 1 view
Problem : Error : You must put some 'source' URIs in your sources.list
asked 10 hours ago Shovo210 2.6k points