Answer:
check your app permissions it may be blocking them or try resetting the app
Answer:
#include <iostream>
using namespace std;
int main()
{
int arr[]={3,-9,9,33,-4,-5, 100,4,-23};
int pos;
int n=sizeof(arr)/sizeof(arr[0]);
for(int i=0;i<n;i++){
if(arr[i]>=0){
pos++;
}
}
cout<<"Number of positive integers is "<<pos<<endl;
return 0;
}
Explanation:
create the main function in the c++ programming and declare the array with the element. Then, store the size of array by using the formula:
int n=sizeof(arr)/sizeof(arr[0]);
after that, take a for loop for traversing the array and then check condition for positive element using if statement,
condition is array element greater than or equal to zero.
if condition true then increment the count by 1.
this process happen until the condition true
and finally print the count.
It's D because a checklist is to help you organize a list of things like groceries, homework etc. It can sperate indormation..for example, homework need to be separated so we won't messed up on which is which. It can also portray information clearly because you're making a check list.
Commerce Server
An application program that runs on a server tier computer. A typical commerce server obtains product data from a database, manages items in users' shopping carts, and coordinates the checkout process.
The pseudocode to calculate the average of the test scores until the user enters a negative input serves as a prototype of the actual program
<h3>The errors in the pseudocode</h3>
The errors in the pseudocode include:
- Inclusion of unusable segments
- Incorrect variables
- Incorrect loops
<h3>The correct pseudocode</h3>
The correct pseudocode where all errors are corrected and the unusable segments are removed is as follows:
start
Declarations
num test1
num test2
num test3
num average
output "Enter score for test 1 or a negative number to quit"
input test1
while test1 >= 0
output "Enter score for test 2"
input test2
output "Enter score for test 3"
input test3
average = (test1 + test2 + test3) / 3
output "Average is ", average
output "Enter score for test 1 or a negative number to quit"
input test1
endwhile
output "End of program"
stop
Read more about pseudocodes at:
brainly.com/question/11623795