MYPROGRAMMINGLAB WITH PEARSON ETEXT
8th Edition
ISBN: 9780134225340
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
Write a program that performs the following procedures: 01. Structure stores marks of 7 courses with total marks and grades. 02. Get data from the user and store it inside the structure by returning from a user-defined function. 03. Calulate's the grade by passing the pointer of the total marks variable to the user-defined Grade Calculator function. 04. Calculates the grade and store it inside the structure's grade attribute. 05. Prints that structure data of marks and grades.
do it in c++ language
Let 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);
Let 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);
Chapter 10 Solutions
MYPROGRAMMINGLAB WITH PEARSON ETEXT
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
- Enter the data of 10 students by creating the structure having members id, first_name, second_name, age, contact number, email_id. Create a function SearchStudent() that search the student by his/her id. Id of each student should be unique. use C++ and structurs.arrow_forwardExplain the term functions with default parameters.arrow_forwardCreate a structure, Person with {Ph_no(int), Address, DOB, Name} where last 3 fields are the structure variables of the structure types as mentioned below and defined outside the Person and create variables of the structure, Person.arrow_forward
- Q3 OCaml type signature 1 Point The OCaml type signature val f : 'a -> a = indicates that function f has a parameter and return value that can be any type, as long as the types of f 's parameter and return value are the same. True False Q4 OCaml structured return values 1 Point OCaml, unlike most functional languages, does not allow functions to return structured values. True Falsearrow_forwardUser define functions are said to have: definition characteristics usability all of the abovearrow_forwardA 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 usedarrow_forward
- x = apple . price; multiply apple by price and assign the result to the variable x assign the value of the data member price in the structure object apple to the variable compare the value of x to the value of data member apple.price set the value of price data member in the structure object apple to be equal to xarrow_forwardIn C programming Create a structure course that is made from the following fields:• Department (string, 15 characters)• Course number (integer, 4 digits, leading 0 if necessary)• Course title (string, 30 characters)• Credits (short, 1 digit)Complete with the required typdef.arrow_forwardWhat exactly separates a Structure from a Class in terms of functionality?arrow_forward
- When establishing new instances of a structure, why is it important to make use of the new operator?arrow_forwardIt is necessary to outline the regulations that apply to functions with default parameters.arrow_forwardselect the correct answer that describes the C++ statement Q/ apple . price = 100; Ans/ 1) compare 100 to the value of data member apple.price 2)multiply apple by price and make the result 100 3)set the value of apple data member in the structure object price to 100 4)set the value of price data member in the structure object apple to 100arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
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