EBK C HOW TO PROGRAM
8th Edition
ISBN: 8220100663833
Author: Deitel
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 10, Problem 10.6E
Given the following structure and variable definitions, write an expression that can be used to access the structure members in each of the following parts:
- Member lastName of structure customerRecord.
- Member lastName of the structure pointed to by customerptr.
- Member firstName of structure customerRecord.
- Member firstName of the structure pointed to by customerPtr.
- Member customerNumber of structure customerRecord.
- Member customerNumber of the structure pointed to by customerPtr.
- Member phoneNumber of member personal of structure customerRecord.
- Member phoneNumber of member personal of the structure pointed to by customerPtr.
- Member address of member personal of structure customerRecord
- Member address of member personal of the structure pointed to by customerPtr.
- Member city of member personal of structure customerRecord.
- Member city of member personal of the structure pointed to by customerPtr.
- Member state of member personal of structure customerRecord.
- Member state of member personal of the structure pointed to by customerptr.
- Member zipcode of member personal of structure customerRecord.
- Member zipcode of member personal of the structure pointed to by customerPtr.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
A structure will be defined (Student ID, Student Name, Student Surname, Midterm, Final, average).The user will be asked to enter the number of Students in the Class (1).Number, name and surname of the students in the class will be entered (2). After entering the whole class number, name and surname, the student's number, name and surname will be shown and the midterm grades will be requested (3).Then, you will be asked to enter the final grades as the midterm is entered (4).40% midterm, 60% final calculation is made and recorded in the average field (5). The number, name, surname and averages of the students in the class will be shown on the screen (6). The sequence of actions will be performed in the order described.Write the C program code that performs the above operations.
Number of students in the class is 10
Any random name, surname, student number, midterm grades and final grades can be used
Create a structure named Student with the following components and appropriate data types: Name, ID, CGPA.1) Using the above structure, take input for two students and output the student’s information who has the highest CGPA
i want Code in C language
A multinational company hired you to develop their employee management system. There are many employees working in different positions and departments. Make a structure for each department telling the number of employees in that department including the heads. Also each position has a reporting head defined in the chart given below also state the reporting head in the employee structure.
Make a structure for all the employees holding their bio – data which includes:
Name
Employee ID
CNIC
Phone Number
Age
Department
Position
Add more necessary variables as required.
Create functions to perform these operations:
Add Employee
Modify Employee
Delete Employee
Print All Employee
Display Details of all Employees
Search Employee using Position
Search Employee using Department
Search Employee using Employee id
Chapter 10 Solutions
EBK C HOW TO PROGRAM
Ch. 10 - Prob. 10.5ECh. 10 - Given the following structure and variable...Ch. 10 - Prob. 10.7ECh. 10 - (Using Unions) Create union integer with members...Ch. 10 - (Using Unions) Create union floatingPoint with...Ch. 10 - (Right Shifting Integers) Write a program that...Ch. 10 - (Left Shifting Integers) Left shifting an unsigned...Ch. 10 - (Packing Characters into an Integer) The...Ch. 10 - (Unpacking Characters from an Integer) Using the...Ch. 10 - (Reversing the Order of an Integers Bits) Write a...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
What two common data structures were included in Plankalkl?
Concepts of Programming Languages (11th Edition)
List the components of a database.
Database Concepts (8th Edition)
Write a variable declaration for an Integer variable named intUnitsSold.
Starting Out With Visual Basic (8th Edition)
Consider the adage Never ask a question for which you do not want the answer. a. Is following that adage ethica...
Experiencing MIS
The ____________ is always transparent.
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- I want answer in C Language A multinational company hired you to develop their employee management system. There are many employees working in different positions and departments. Make a structure for each department telling the number of employees in that department including the heads. Also each position has a reporting head defined in the chart given below also state the reporting head in the employee structure. Make a structure for all the employees holding their bio – data which includes: Name Employee ID CNIC Phone Number Age Department Position Add more necessary variables as required. Create functions to perform these operations: Add Employee Modify Employee Delete Employee Print All Employee Display Details of all Employees Search Employee using Position Search Employee using Department Search Employee using Employee idarrow_forwardLet EmployeeInfo be the name of an employee information structure. When called, which one declares a function showInfo that has read-only access to the members of the provided structure? None of these void showInfo(EmployeeInfo &emp); void showInfo(const EmployeeInfo &emp); void showInfo(EmployeeInfo *empPtr);arrow_forwardAssume the Product structure is declared as follows: struct Product { string description; // Product description int partNum; // Part number double cost; // Product cost }; 1. Add two constructors to the Product structure declaration. The first should be a default constructor that sets the description member to the null string and the partNum and cost members to zero. The second constructor should have three parameters: a string, an int, and a double. It should copy the values of the arguments into the description, partNum, and cost members. 2. Define a print function as member of the struct that prints an object of this struct in the following format. Description: Claw Hammer Part Number: 547 Part Cost: $8.29 3. Declare an array of size 5 with pointers and named it ”items”. Initilize it with user input values. 4. Write a print function (not as a member of the struct) and pass a pointer to the pointer that points to the array(double pointer) and print all the items of the array. 5.…arrow_forward
- You have been hired to create a Stationary Management System. This system contains the information about stationary products. User can display all the stationary products, or any stationary product of his choice. Hint: Create a structure to store information about stationary products in a shop. Variables of this type should store information about the product name, the price, Product Company and the product number. For example: Name: Pencil,Product number: 92213, price: 10, Company : Faber Castle To display the products ask the user if he wants to view all the products or just one product of his choice, if he chooses the latter option , ask him about which product he wants to display (Take product name from him).arrow_forwardLet EmployeeInfo be the name of a structure for employee information. Which one declares a function showInfo that has read-only access of the members of the passed structure when it is called? None of these void showInfo(EmployeeInfo &emp); void showInfo(const EmployeeInfo &emp); void showInfo(EmployeeInfo *empPtr);arrow_forwardQUESTION : Suppose you own a software house and you have 30 employees working for you. You need to maintain the record of all the registered employees and display their data when required. Create a structure Employee, containing id (int), name (char[ ]), age(int), date of birth(nested), date of joining(nested) as structure members.arrow_forward
- write an expression that can be used to access the structure members in each of the following parts:a) Member lastName of structure customerRecord.arrow_forwardWrite a program that uses two structures Name and Student to store the following information for multiple students: Create a nameType structure that consists of First Name, Middle Initial, and Last Name Create a studentType structure that contains student information (Include the nameType structure within the Student information structure): Name ID email GPA Program (an enum type named programType containing programs such as CSCI, DBMS, INFM, SDEV) Suppose that a class has at most 20 students. Use an array of 20 components of type studentType. You will read in the names, id, and email from classroster.txt Download classroster.txt. The first line of the file will tell you how many students are in the class. To get the the GPA and program for each student you will need to read from studentlist.txt Download studentlist.txt. The second file will have the id, program, and GPA for all of the students in the department. That means that not every student from studentlist.txt will…arrow_forward2. Create a structure to store the name and price of a book. Create 2 instances of this structure and take input in both the instances. Create a function “high” and pass both the instances to this function as parameters. The function should check which book has highest price and display the name and price of that book. Do the same question by making this function the member of structure of a bookarrow_forward
- What's the difference between a Structure and a Class in terms of their functionality?arrow_forwardIn cell G1, type Fast Track as the column heading. In cell G2, enter a formula using the AND function that includes structured references to display TRUE if a project has a [Project Type] of "Mixed Use" and a [Funding Type] of "Loan". Fill the range G3:G13 with the formula in cell G2 if Excel does not do so automatically.arrow_forwardneed code in C++ answer all parts Assume the Product structure is declared as follows: struct Product{string description; // Product descriptionint partNum; // Part numberdouble cost; // Product cost};1. Add two constructors to the Product structure declaration. The firstshould be a default constructor that sets the description member to the null string and the partNum and cost members to zero. The second con-structor should have three parameters: a string, an int, and a double. It should copy the values of the arguments into the description, partNum,and cost members.2. Define a print function as member of the struct that prints an object ofthis struct in the following format.Description: Claw Hammer PartNumber: 547Part Cost: $8.293. Declare an array of size 5 with pointers and named it ”items”. Initilize itwith user input values.4. Write a print function (not as a member of the struct) and pass a pointerto the pointer that points to the array(double pointer) and print all theitems of…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Structured Chart; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=vdUO-sGA1DA;License: Standard YouTube License, CC-BY
Introduction to Structure Charts; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=QN2bjNplGlQ;License: Standard Youtube License