Group Project
17. Customer Accounts
This
• One student should design function main, which will call other program functions or class member functions. The remainder of the functions will be designed by other members of the team.
• The requirements of the program should be analyzed so each student is given about the same workload.
Write a program that uses a structure to store the following information about a customer account:
• Name
• Address
• City, state, and ZIP
• Telephone number
• Account balance
• Date of last payment
The structure should be used to store customer account records in a file. The program should have a menu that lets the user perform the following operations:
• Enter new records into the file
• Search for a particular customer’s record and display it
• Search for a particular customer’s record and delete it
• Search for a particular customer’s record and change it
• Display the contents of the entire file
Input Validation: When the information for a new account is entered, be sure the user enters data for all the fields. No negative account balances should be entered.
Want to see the full answer?
Check out a sample textbook solutionChapter 13 Solutions
Starting Out With C++: Early Objects, Student Value Edition & Myprogramminglab With Pearson Etext -- Standalone Access Card Package, 9/e
Additional Engineering Textbook Solutions
Database Concepts (8th Edition)
Problem Solving with C++ (9th Edition)
Database Concepts (7th Edition)
Starting Out With Visual Basic (8th Edition)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
- C++ (C plusplus) Requirements: Use the given class “User” (below) All data members must be declared as “private” No multiple return statements within a function or method No global variable is allowed to be declared and used (constants are ok) Methods within the class and the requested functions cannot have “cin” or “cout” but they should make use of parameters and return value instead unless it is explicitly stated. “cin” and “cout” should be used in main() and testing functions You are required to provide main() and testing functions if any that contains testing code to show how you have tested your classes, methods, and functions. You must show at least one call for each method and function and print out its return values and results correctly. Define a new exception class named “BadValueException” that must inherit from the exception class. It will manage and capture the general invalid integer and double value. It must be able to describe the reason for the error and save…arrow_forwardUsing C++ create a class Parent with Name & CNIC number as a private data members. Create a getinput & showinput functions & set values through getter & setters. Create another class Student with section as private data member & examscore as a protected data members. Class Student is a relationship with class Parent. Create a getdata & displaydata functions & set values through getter & setters. Create a third class Resultcard with remarksbyteacher as a private data members. Create a function getgrade which calculate the grade of students according to their marks and then display the report card of student. Class Resultcard is a relation with class Student.arrow_forwardSUBJECT: PROGRAMMING FUNDAMENTELS LAB IT provides best solutions for manual work that makes life easier .Suppose a university wants to manage its data in the form of software. Being a programmer you have been asked to create the following structures in C. 1. Student: a. Name b. RegId c. Enrolled courses (Labs + Theory) d. Department e. Semester2. Faculty: a. Name b. Department c. Designation d. Salary:Implement the following scenario using functions: setMarks(): This function will allow faculty members to set Student marks. getGpa(): Takes students as an argument and calculates the student’s GPA. displayStudent(): display the given student’s information. displayFaculty(): display the given faculty’s information. NOTE ; KINDLY PROVIDE THE ANSWER OF THIS QUESTION IN C LANGUAGE ASAParrow_forward
- C++ Project ( Build the requested system 100% into a C++ environment, excluding Class framework & All defined variables must be represented as pointer type, int, char etc)Scenario:A bookshop (PRIMER BOOKSHOP) wants to maintain the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher, and stock position. Whenever a customer wants a book, the sales personnel inputs the title and author, and the system searches the list and displays whether it is available or not.- If it is not, an appropriate message is displayed.- If it is, then the system displays the book details and requests for the number of copies required.- If it is requested, copies of the book details and requests for the number of copies required are available, the total cost of the requested copies is displayed and your system needs to update the database.- Sales personnel, from time to time are allowed to update the latest stock and price to the created…arrow_forwardObjectives: The main objective of this assignment is checking students’ ability to implement membership functions. After completing this assignment, students will be able to: • implement member functions • convert a member function into a standalone function • convert a standalone function into a member function • call member functions • implement constructors • use structs for function overloading Part A: Problem description: revisiting the home decoration company assignment. Need to modify the program so the company can make some critical decisions, including processing the received inventory of art, books, furniture, and fabric. It needs the structs art, books, furniture, fabric, date, and dimension. Processing inventory: The company wants to organize its inventory by cost from least to greatest. If the price of two items is the same, either one can be displayed first. You must use a member function of the appropriate corresponding struct to perform the comparison. Lastly…arrow_forwardThere is a class Team, that holds information about the team name, number of players in the team, and player’s code. Design the constructor function that decides the number of player in the team and initializes code for each player. Create a team and display its all data. In C++(Implement dynamic memory allocation).arrow_forward
- 1) Convert your structure into a class. For this exercise, you can leave the data as public (otherwise you would have to change the input and output functions). 2) Write a member function show_all that prints all the information for one record - name, cost, markup, and the three inventory numbers. 3) Add a user option S that lets the user see all the information for all the items in the inventory, using the show_all member function. Print a header so the user knows what each column means, and format the output to appear in columns. Hint: do a setwidth() before *each* cout. Pick widths that make sense for name, cost, markup, and the three inventory numbers. Previous code: #include <iostream>#include <fstream>#include <vector>using namespace std; struct Record {string name;double cost;int markup;int count[3];}; const string places[3] = {"counter", "shelf", "warehouse"}; bool read_file(vector <Record> &v);void placement (vector <Record> &v);void…arrow_forwardHELP WITH C+...PASTE INDENTED CODE Given the code: class Organization {private; int numMembers; // number of members in the organization string *name; // name of the organization string *members; // dynamic array of members}1. Write a function definition for a Constructor to initialize all data members.2. Write a function definition for the Copy Constructor.3. Write a function definition for the Destructor.arrow_forwardUSE C++ PLEASE Q#1 Using the concept of classes, constructors and data structure (arrays or any under data structure) implement a detailed University and student enrollment system. Each department of university has a separate class and perform every functionality with in a class. Create a main class where methods of other classes will be called.arrow_forward
- Passing Structures in Parameters in C Program Create a structure called Vehicle with the fields string brand int speed in km/hr. Create a function timeCompute that accepts a Vehicle type of parameter and a distance in km. Return the time needed for the vehicle to reach the distance in minutes. In the main function, create a Vehicle instance called vehicle1 and ask the user to input the details for the vehicle1's brand and speed. Also ask for an integer input, distance, then call the timeCompute function while passing in the vehicle1 instance and the inputted value of distance. Print the return value and interpolate it in this sentence: "It will take a CodyVehicles vehicle {time_in_minutes} minutes to reach a distance of {distance}." Input 1. One line containing a string brand 2. One line containing an integer speed in km/hr 3. One line containing an integer distance in km Output: Enter brand: CodyVehicles Enter speed: 70 Enter distance: 140 It will take a…arrow_forwardIn C++ Create a class called Pencil. Pencil has a type. Create another class called Customer. The customer class should have a ID number, array (using pointers) called purchases, and a Pencil variable. Make sure to create the purchases array in the constructor. Create a function to fill in purchase amount. Create a way to output all the information about a customer, including all the details about their type of pencil.arrow_forward(phyton) create a vehicle claas with max_speed and mileage. define a function that changes the max speed with the setMax_speed(new speed) function. Create an object of this class change the max_speed value of this object to 200 with the help of the function you definedarrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr