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
Ivenika [448]
3 years ago
5

Given the following code fragment, what is the data type of roster[9] .name? struct student { string name; double gpa; }; studen

t thisStudent; student roster[50]; string const pointer to student student double
Computers and Technology
1 answer:
SVETLANKA909090 [29]3 years ago
3 0

roster[50] is an array of "students", so roster[9] is a "student". Therefore, roster[9].name is a string.

You might be interested in
Which data validation alert style should you use to prevent the user from entering invalid data?
mario62 [17]

Answer:

stop

Explanation:

If you set the error alert style to Stop, then you are asking Excel to prevent the user from typing in an invalid value.

5 0
2 years ago
Rutherford presented his first slide, which consisted of a conceptual map of
sergejj [24]

Your answer would be D.

8 0
3 years ago
Read 2 more answers
Write a program that plays the popular scissor-rockpaper game. (A scissor can cut a paper, a rock can knock a scissor, and a pap
kolbaska11 [484]

Answer:

import random

computer = random.randint(0, 2)

user = int(input("scissor (0), rock (1), paper (2): "))

if computer == 0:

   if user == 0:

       print("The computer is scissor. You are scissor too. It is a draw")

   elif user == 1:

       print("The computer is scissor. You are rock. You won")

   elif user == 2:

       print("The computer is scissor. You are paper. Computer won")

elif computer == 1:

   if user == 0:

       print("The computer is rock. You are scissor. Computer won")

   elif user == 1:

       print("The computer is rock. You are rock too. It is a draw")

   elif user == 2:

       print("The computer is rock. You are paper. You won")

elif computer == 2:

   if user == 0:

       print("The computer is paper. You are scissor. You won")

   elif user == 1:

       print("The computer is paper. You are rock. Computer won")

   elif user == 2:

       print("The computer is paper. You are paper too. It is a draw")

Explanation:

*The code is in Python.

Import the random to be able to generate number number

Generate a random number between 0 and 2 (inclusive) using randint() method and set it to the computer variable

Ask the user to enter a number and set it to the user variable

Check the value of computer the computer variable:

If it is 0, check the value of user variable. If user is 0, it is a draw. If user is 1, user wins. If user is 2, computer wins

If it is 1, check the value of user variable. If user is 0, computer wins. If user is 1, it is a draw. If user is 2, user wins

If it is 2, check the value of user variable. If user is 0, user wins. If user is 1, computer wins. If user is 2, it is a draw

8 0
2 years ago
. The BEST description of a proprietary database is one that
AVprozaik [17]
Is free to the public
8 0
3 years ago
What does the ‘SIM’ in the SIM card stand for?
hram777 [196]

Answer:

It stands for Subscriber Identity Module

Explanation:

<em>SIM cards are computer chips that store data and enable you to access your network. That implies you may call, text, and connect to mobile internet services such as 4G. SIM cards are  portable, and you can store messages, contacts, and emails to them. SIM cards connect a specific account to a specific phone; they inform the phone network firm which account is linked to which phone. Customers are typically referred to as subscribers by network operator providers. A SIM card is a type of user card that allows your phone to connect to a network. Also, if you had a phone accidents and you can s imply insert the SIM card in another phone and you may make a call or utilize your data. Just make sure they each utilize the same size SIM card.</em>

4 0
2 years ago
Read 2 more answers
Other questions:
  • A device that modulates digital data onto an analog signal and then demodulates the analog signal back to digital data is a ____
    8·1 answer
  • What's the screen that displays results from typing text, performing calculations, or running programs?
    11·1 answer
  • What must you be careful of when retrieving messages/data from mobile devices in public?
    13·1 answer
  • Select the answer that best describes the activity
    5·2 answers
  • A newly opened law firm in Kirkland decides to create a small website that provides a brief introduction of the firm, its missio
    8·1 answer
  • An integrated file is one that includes information created in _____ Office application(s).
    15·1 answer
  • What type of network would be suitable for linking all computers in a building
    6·1 answer
  • What is the way to discover requirments for software projects ?
    14·1 answer
  • at the grocery store alexa by 1 1/3 lb of ground turkey nasha by two times as much ground turkey is alexa how much ground turkey
    9·1 answer
  • A license may limit the use of a software application to a specific device. Group of answer choices True False
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!