Answer to Question #271520 in C for Isa

Question #271520

Write a program to print the transaction number,customer name, cost of energy, energy units, rural electrification tax for the fifth customer of day 2 November.



Create a triple pointer for the above customer's energy and print it

1
Expert's answer
2021-11-25T11:48:21-0500
#include <stdio.h>

struct customer {
  int transaction_number;
  char *name;
  double cost_of_energy;
  int energy_units;
  double elec_tax;
};

void print(const struct customer &customer) {
  printf("transaction number: %d\n", curtomer.transaction_number);
  printf("customer name: %s\n", customer.name);
  printf("cost of energy: &f\n", customer.cost_of_energy);
  printf("energy units: %d\n", customer.energy_units);
  printf("elec tax: %f\n", customer.elec_tax);
}

int main() {
  struct customer *customer = new struct customer();
  print(customer);
  return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS