1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
anygoal [31]
2 years ago
6

Please answer no files !!

Computers and Technology
1 answer:
Pachacha [2.7K]2 years ago
8 0

Answer:

im not exactly sure but i think its c

Explanation:

You might be interested in
An array is sorted (in ascending order) if each element of the array is less than or equal to the next element .
Aleks04 [339]

Answer:

// The program below checks if an array is sorted or not

// Program is written in C++ Programming Language.

// Comments are used for explanatory purpose

//Program Starts here

#include<iostream>

using namespace std;

//Function to check if the array is sorted starts here

int isSorted(int arr[], int count)

{

// Check if arrays has one or no elements

if (count == 1 || count == 0) {

return 1;

}

else

{

// Check first two elements

if(arr[0] >= arr[1])

{

return 0; // Not sorted

}

else

{ // Check other elements

int check = 0;

for(int I = 1; I<count; I++){

if (arr[I-1] > arr[I]) { // Equal number are allowed

check++; // Not sorted

}

}

}

if(check==0)

return isSorted(arr, count - 1); //Sorted

else

return 0; // Not sorted

}

// Main Method starts here

int main()

{

int count;

cin<<count;

int arr[count];

for(int I = 1; I<=count; I++)

{

cin>>arr[I-1];

}

int n = sizeof(arr) / sizeof(arr[0]);

if (isSorted(arr, n))

cout << "Array is sorted";

else

cout << "Array is not sorted";

}

8 0
3 years ago
Which set of steps is correct for creating and inserting a table of figures or tables?
KonstantinChe [14]

<em>Try this one</em>

<em>Go to the References tab, click Insert Table of Figures, place the cursor, and click Insert.</em>

<em>I am not tht smart at computer stuff but let me know if this works.</em>

<em />

4 0
3 years ago
Read 2 more answers
Software ............. the hardware what to display on the user's screen​
likoan [24]
A monitor? This displays on the users screen but I’m not sure if that’s what your asking good luck on finding the right answer.
7 0
2 years ago
Write a program which promptsuser to enter an integer value. Using while loop print the valuesfrom
tino4ka555 [31]

Answer:Following is the c++ code for the problem:

#include <iostream>

using namespace std;

int main() {

   int number;

   cout<<"Enter the number"<<endl;

   cin>>number;

   int i=0,c=0,odd[500];

   while(i<=number)//loop for printing the numbers form 0 to number.

   {

       cout<<i<<" ";

       if(i%2!=0)// storing in the odd array if the number is odd.

       {

           odd[c++]=i;//storing odd numbers..

       }

       i++;

   }

   cout<<endl;

   i=0;

   cout<<"The odd numbers are "<<endl;

   while(i<c)//loop to print the odd numbers.

   {

       cout<<odd[i]<<" ";

       i++;

   }

   cout<<endl<<"The prime numbers are "<<endl;

   i=0;

   int sum=0;

   

   while(i<c)//loop to print the prime numbers..

   {

       int div=2;

       while(div<odd[i])

       {

           if(odd[i]%div==0)

           break;

           div++;

       }

       if(div==odd[i])

      {

           cout<<odd[i]<<" ";

           sum+=odd[i];//updating the sum..

      }

       i++;

   }

   cout<<endl<<"The sum of odd prime numbers is "<<sum<<endl;//printing the sum..

return 0;

}

Output :

Enter the number

49

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49  

The odd numbers are  

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49  

The prime numbers are  

3 5 7 11 13 17 19 23 29 31 37 41 43 47  

The sum of odd prime numbers is 326 .

Explanation:

First I have printed the values from 0 to n and i have taken an array to store odd numbers.After that i have printed the odd values.And after that i have printed prime numbers among the odd numbers and their sum. These all operations are done using while loop.

6 0
3 years ago
Convert the ProjectedRaises class to an interactive application named ProjectedRaisesInteractive. Instead of assigning values to
Brrunno [24]

Complete Question:

Write a C# program named *ProjectedRaises* that includes a named constant representing next year’s anticipated 4 percent raise for each employee in a company. Also declare variables to represent the current salaries for three employees. Assign values to the variables, and display, with explanatory text, next year’s salary for each employee.

Convert the *ProjectedRaises* class to an interactive application named **ProjectedRaisesInteractive**. Instead of assigning values to the salaries, accept them from the user as input.

Answer:

The code in C# is provided in the explanation section

Explanation:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using static System.Console;

namespace ProjectedRaisesInteractive

{

   class ProjectedRaisesInteractive

   {

       static void Main(string[] args)

       {

           

           const double percentIncrease = 1.04;

           double inputFirstSalary = 0;

           double inputSecondSalary = 0;

           double inputThirdSalary = 0;

           double outputFirstSalary = 0;

           double outputSecondSalary = 0;

           double outputThirdSalary = 0;

           //skip error checking

           Write("Enter Value for First Salary");

           inputFirstSalary = double.Parse(ReadLine());

           Write("Enter Value for Second Salary");

           inputSecondSalary = double.Parse(ReadLine());

           Write("Enter Value for Third Salary");

           inputThirdSalary = double.Parse(ReadLine());

           outputFirstSalary = inputFirstSalary * percentIncrease;

           outputSecondSalary = inputSecondSalary * percentIncrease;

           outputThirdSalary =  inputThirdSalary * percentIncrease;

WriteLine("Expected Salary Increase:{0}", percentIncrease;);

WriteLine("{0} will be {1} next year.", inputFirstSalary, outputFirstSalary);

WriteLine("{0} will be {1} next year.", inputSecondSalary, outputSecondSalary);

WriteLine("{0} will be {1} next year.", inputThirdSalary, outputThirdSalary);

       }

   }

}

7 0
3 years ago
Other questions:
  • 2. You have classes to represent different shapes (see below). You realize you can benefit from inheritance and polymorphism by
    13·1 answer
  • Which element of a business document provides additional information but is not a part of the body of the text?
    13·2 answers
  • What is software that helps a computer operate efficiently and keeps track of data on a computer?
    14·1 answer
  • If involved in a boating accident causing serious bodily injury or death while boating under the influence, the operator has com
    15·1 answer
  • Halp me vanajsudhrbfhjrjfjfjf ​
    9·1 answer
  • Help me asap ill give brainliest
    8·1 answer
  • Risk taker positive or negative​
    8·1 answer
  • Why is it important for organizations to make strong commitment to Cloud at scale?
    14·1 answer
  • When can screentips be useful? when finding a tab when looking for a command when pinning the ribbon when using a command.
    8·1 answer
  • What technology would a bank's website use a scramble information as it is transmitted over the Internet
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!