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
otez555 [7]
1 year ago
15

define a struct named patientdata that contains two integer data members named heightinches and weightpounds. sample output for

the given program with inputs 63 115: patient data: 63 in, 115 lbs
Computers and Technology
1 answer:
katrin2010 [14]1 year ago
5 0

struct patientdata

{

int heightinches;

int weightpounds;

};

void main()

{

patientdata p;

p.heightinches=63;

p.weightpounds=115;

cout<<"patient data: "<<p.heightinches<<", "<<p.weightpounds;
}

<h3>What is structure in C++?</h3>

In the C programming language, a "struct" is a composite data type declaration that specifies a physically grouped list of variables in a block of memory with a single name. This allows access to the various variables via a single pointer or by the declared name of the struct, which returns the same address. The use of structures, also known as structs, allows you to collect several related variables in a single location. A member of the structure is referred to as each variable in it. Numerous different data types may be present in a structure. A structure is a singular entity that contains variables of various data types that are logically connected to one another. The functions defined outside the structure have access to all the structure's data members.

To know more about structure,

brainly.com/question/20211782?referrer=searchResults

#SPJ4

You might be interested in
I NEED HELP PLEASE!! I just wanted to upgrade my i3 processor to an i7. I bought new hardware (motherboard, fan, etc) and now th
Dafna11 [192]

Answer:

Your processor might be incompatible with motherboard

Explanation:

One major thing to keep in mind while upgrading a PC hardware is comparability among hardware. If you are using incompatible hardware it can cause issues like this. There are websites available to let you check the compatibility of different components.

As you mentioned you upgraded your cpu and motherboard. Does your motherboard has the correct version of chipset to run new cpu. Do notice if there are any beep sounds when you power up your PC. If you don't hear beeps than your motherboard might be dead.

6 0
4 years ago
Which of the following statement is true for Service Request Floods A. An attacker or group of zombies attempts to exhaust serve
klio [65]

Answer:

The answer is "Option A and Option B"

Explanation:

This is a type of attack, which is mainly used to bring down a network or service by flooding large amounts of traffic. It is a high-rate server from legitimate sources, where an attacker or group of zombies is attempting to drain server resources by creating and disconnecting the TCP link, and wrong choices can be described as follows:

In option C, It can't initiate a single request because when the servers were overloaded with legitimate source links, the hacker may then set up and uninstall TCP links.

7 0
3 years ago
Plzz help.... <br><br>i will mark u as brainliest if u answer correct
shtirl [24]

Answer:

import java.util.Scanner;

class Main {

 public static void main(String[] args) {

   Scanner scan = new Scanner(System.in);

   while(true) {

     System.out.print("Enter an integer (0 to exit): ");

     int num = scan.nextInt();

     if (num == 0) break;

     if (num%3 == 0 && num%5 == 0) {

       System.out.printf("%d is divisable by both 3 and 5.\n", num);

     }

     else if (num%3 == 0 && num%5 != 0) {

       System.out.printf("%d is divisable by 3 but not by 5.\n", num);

     }

     else if (num%3 != 0 && num%5 == 0) {

       System.out.printf("%d is divisable by 5 but not by 3.\n", num);

     } else {

       System.out.printf("%d is not divisable by 3 or 5.\n", num);

     }

   }

   scan.close();

 }

}

3 0
3 years ago
(50 POINTS)Look at the code in the example below, and then answer the question.
Artist 52 [7]
Yeah what that guy said tool tip
5 0
3 years ago
Read 2 more answers
The Review feature automatically adjusts to select the edited information.<br> true of false
NNADVOKAT [17]
True I hope this helps
8 0
3 years ago
Read 2 more answers
Other questions:
  • If a = 3 and b = a+3 find value of b.
    14·2 answers
  • What does CSS stand for?
    8·2 answers
  • WILL GIVE BRAINLIEST!!!
    15·2 answers
  • An _____image is an image that appears on a web page
    8·1 answer
  • How to write greater than or equal to in excel if function
    7·1 answer
  • Which of the following conditions will maximize the amount of interest you earn
    5·1 answer
  • What is done to conserve energy while electricity is being transported?
    9·1 answer
  • What are the values of a[k] and a[k+1] after code corresponding to the following pseudocode runs?
    9·2 answers
  • What is the answer ??​
    11·1 answer
  • What are some of the key system-oriented trends that have fostered is-supported decision making to a new level?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!