answer.
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
8090
28 days ago
11

Mr. Brody made a spreadsheet with student names in order to take attendance. Which method is best for sorting this data?

Computers and Technology
You might be interested in
Which of the following statements is incorrect? An operating system provides an environment for the execution of programs. An op
ivann1987 [1066]

Response:

command line and graphical user interface

Clarification:

There have historically been (and continue to be) operating systems lacking any graphical user interface at all, such as some Unix variants.

]} ```json `{
8 0
3 months ago
Write a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The user shoul
zubka84 [1067]

The do-while loop for this task is presented below.

do

{

// request the user to input two numbers

cout<<"Please input two numbers to add."<<endl;

cin>>num1;

cin>>num2;

sum = num1 + num2;

// display the sum

cout<<"The sum of the two numbers is "<<sum<<endl;

// ask the user if they want to continue

cout<<"Would you like to keep going (y/n)?"<<endl;

cin>>choice;

}while(choice!= 'n');

The variables for the two numbers and their sum are defined as float for compatibility with both integers and decimals.

float num1, num2, sum;

The choice variable is char since it only needs to hold a single character input from the user, either 'y' or 'n'.

char choice;

The complete program is structured as follows:

#include <iostream>

using namespace std;

int main() {

float num1, num2, sum;

char choice;

do

{

// request the user to input two numbers

cout<<"Please input two numbers to add."<<endl;

cin>>num1;

cin>>num2;

sum = num1 + num2;

// display the result

cout<<"The sum of the two numbers is "<<sum<<endl;

// query the user on continuing

cout<<"Would you like to keep going (y/n)?"<<endl;

cin>>choice;

}while(choice!= 'n');

cout<<"Exiting..."<<endl;

}

5 0
4 months ago
Other questions:
  • In cell F15, insert a function that will automatically display the word Discontinue if the value in cell D15 is less than 1500,
    6·1 answer
  • Server farms such as Google and Yahoo! provide enough compute capacity for the highest request rate of the day. Imagine that mos
    12·1 answer
  • (Java)Write a program that calculates and displays the conversion of an entered number of dollars into currency denominations—20
    11·1 answer
  • Assign to avg_owls the average owls per zoo. Print avg_owls as an integer. Sample output for inputs: 1 2 4 3
    7·1 answer
  • Write a program that prompts the user to enter three cities and displays them in ascending order. Here is a sample run: Enter th
    8·1 answer
  • True or False: The correct answer to a numeric entry field will appear only if you click on the fields themselves after selectin
    12·1 answer
  • assume that name is a variable of type stirng that has been assigned a value write an expression whose value is the last charact
    11·1 answer
  • Ryan has made a presentation of ten slides, which he wants to display in sequence after a specific time interval. Which element
    5·1 answer
  • Write a script that creates a user-defined database role named OrderEntry in the MyGuitarShop database. Give INSERT and UPDATE p
    8·1 answer
  • Which statement describes a characteristic of SRAM in a PC?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!