Answer to Question #271707 in C for Toxic King

Question #271707

write a c program to print the transaction number,energy cost,energy units,rural electrification tax for the 5th customer of day 2 of November 2021. create tripple pointer for above customer

1
Expert's answer
2021-11-25T20:14:55-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