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
Nadusha1986 [10]
3 years ago
10

Write a simple compilable program that outputs to an Excel-compatible XLS file these two rows: (1) a header row with headings fo

r each column and (2) a data row with one set of data. You may have addition data rows if you wish.
Include at least 3 columns of information of any kind you like, with real or made-up data. For example, a student record, a stock quote, a weather forecast, etc.
Hint: use the character \t for column breaks and \n for row breaks.
Computers and Technology
1 answer:
ollegr [7]3 years ago
5 0

Answer:

#include <iostream>

#include <fstream>

using namespace std;

struct student

{

string name;

int id;

double average;

};

int main()

{

string filename = "data.csv";

student s[3] = { {"Peter", 101, 65.4},

{"Mary", 102, 60.4},

{"Jed", 103, 55.4}};

ofstream outFile(filename.c_str());

outFile << "Name,ID,Average" << endl;

for(int i = 0; i < 3; i++)

{

outFile << s[i].name << "," << s[i].id << "," << s[i].average << endl;

}

outFile.close();

cout << "Please open " << filename << " in Excel" << endl;

}

Explanation:

Name ID Average

Peter 101 65.4

Mary 102 60.4

Jed 103 55.4

You might be interested in
Who initially developed what is now known as the internet?
Lyrx [107]

in 1990, when computer scientist Tim Berners-Lee invented the World Wide Web.

5 0
3 years ago
Imagine you have borrowed your friend's computer to work on a class project. Checking
castortr0y [4]

Answer:

Yes.It would be considered as a computer Crime.

Explanation:

This is because you are an unauthorised user

6 0
4 years ago
tomaso is explaining to a colleague the different types dns attacks. which dns attack would only impact a single user?
SIZIF [17.4K]

A DNS attack which would only impact a single user is: DNS poisoning attack.

DNS is an acronym for domain name system and it can be defined as a naming database in which internet domain names (website URLs) are stored and translated into their respective internet protocol (IP) address.

This ultimately implies that, a Domain Name System (DNS) is used to connect a uniform resource locator (URL) or a web address with their internet protocol (IP) address.

In Cybersecurity, there are different types of DNS attacks and these include:

  • ‎DNS flood attack.
  • DNS tunneling.
  • DNS poisoning attack.

DNS poisoning attack is a special type of Domain Name System (DNS) attack that is designed to only impact or affect a single user.

Read more: brainly.com/question/17273205

7 0
3 years ago
QUESTION: Which is not an example of a video port or cable?
Vikki [24]

Answer:

Radio Corporation of America (RCA)

Explanation:

A corporation is not a video connector.

8 0
3 years ago
100 POINTS
agasfer [191]

Answer:

i'm just a kid ku ku ku ku ku ku ku ku ku ku ku ku

6 0
3 years ago
Other questions:
  • The windows desktop contains a start button in its lower-right corner, which can be used to start the computer.
    14·1 answer
  • What effect can camera tilt create? Do you think this is effective? Why or why not?
    14·2 answers
  • A window frame will expand to fill the entire desktop when you
    15·1 answer
  • Social media is an effective form of e-commerce. True False
    12·1 answer
  • What does this mean in python?
    5·1 answer
  • In a penetration test, a ________ team consists of IT staff who defend against the penetration testers. They are generally aware
    14·1 answer
  • if ur parent gets mad at u and says something then u say something, why do they say "stop back talking'' if ur just starting a c
    7·2 answers
  • Https://www.bing.com/videos/search?q=dancing+aaron+smith+1+hour&amp;view=detail&amp;mid=C6C28AF3C0CEC1E4AEE3C6C28AF3C0CEC1E4AEE3
    14·1 answer
  • What is the difference between word processing software and presentation software​
    9·1 answer
  • How do you select a single cell, a single column, a single
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!