Customer Accounts
Write a
Name
Address
City, State, and ZIP
Telephone Number
Account Balance
Date of Last Payment
The program should use an array of at least 10 structures. It should let the user enter data into the array, change the contents of any element, and display all the data stored in the array. The program should have a menu-driven user interface.
Input Validation: When the data 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 11 Solutions
Starting Out with C++ from Control Structures to Objects (8th Edition)
Additional Engineering Textbook Solutions
Starting Out with Python (4th Edition)
Using MIS (10th Edition)
Absolute Java (6th Edition)
Starting out with Visual C# (4th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
Starting Out With Visual Basic (8th Edition)
- Open the Calories Solution.sln file contained in the VB2017\Chap08\Calories Solution folder. Open the Code Editor window and locate the btnDisplay_Click procedure. The procedure declares and initializes a one-dimensional array named intCalories. The array stores the numbers of daily calories consumed. The procedure should calculate and display the average number of calories consumed; use the Math.Round method to round the average to an integer. (You learned about the Math.Round method in Chapter 6.) The procedure should also display the number of days in which the daily calories were greater than the average, the number of days in which the daily calories were the same as the average, and the number of days in which the daily calories were less than the average. Code the procedure. Save the solution and then start and test the application.arrow_forwardProgramming Language: C++ Create a structure Student and ask the user how many students. Create an array which will save the number of students in the input. Ask for the data of the first and last student and display them. Do not copy paste other codes from other site and use comments to understand it clearly.arrow_forwardTrue or False Before you can use the structure to store data, you must create an instance of the structure in memory.arrow_forward
- Write a Visual Basic statement that assigns the number 7 to the fourth element in the intQuantities array.arrow_forwardIn visual basic Create an array that will hold 10 integer values.arrow_forwardInstructions Write a program weather.cpp that uses a structure to store the following weather data for a particular quarter: • Total Rainfall Low Temperature High Temperature Average Temperature (average of low and high temperature) The program should have an array of structures with a size of four (4) to hold weather data for an entire year. When the program runs, it should ask the user to enter data for each quarter. Once the data are entered for all the quarters, the program should calculate and display the average quarter rainfall, the total rainfall for the year, the highest and lowest temperatures for the year (and the quarter they occurred in), and the average of all the quarterly average temperatures. Input validation: Only accept temperatures within the range between -100 and + 140 degrees Fahrenheit, and the low temperature must not be higher than the high temperature. Notes • Validate temperatures within the range between -100 and + 140 degrees. • Validate the low…arrow_forward
- An array of structure variables is declared using the statement Dim inventory(4) As Product. Write a Visual Basic statement that assigns the number 100 to the intQuantity member contained in the last array element.arrow_forwardname formatter on c# create an application that lets the user enter the following pieces of data: • the user’s first name • the user’s middle name • the user’s last name • the user’s preferred title (mr., mrs., ms., dr., etc.) assume the user has entered the following data: • first name: kelly • middle name: jane • last name: smith • title: ms. the application should have buttons that display the user’s name formatted in the following ways: ms. kelly jane smith kelly jane smith kelly smith smith, kelly jane, ms. smith, kelly jane smith, kellyarrow_forwardA Review View Help EndNote X9 Search Layout References Mailings Draw Design 1. For a 16-bit unsigned number Ob1111 1111 1111 0001, adding 15 to it gives: 1 0000 0000 00000000 b. 0 a. C. 1 d. 1111 1111 1111 1111 to 000000001 0000 f. e. None of Above 2. (((Ob111 000 101 111 >>>2)>2) gives a. 001 111 000 101 b. 000 111 100 010 C. 011 111 100 001 d. 000 111 100 101 e. None of Above =5, for (int x=L, x<=i, x++). The total iterations of this loop will be a. 0 b. infinite 3. C. d. 5 None of Above e. 4. Automatic type casting is used to a. Copy the value of one variable onto another b. Update datatype of constants by users of constants C. Update datatype of variable by users d. Update datatype by compiler e. None of abovearrow_forward
- Computer Science C# Programming Object Orientation Please use Arrays or ArrayLists where appropriate Implement a menu driven program that has some operations for a food truck. A food truck has multiple food items as well as a menu which contains a selection of the food items which will be sold for that day. A maximum of 10 food items can appear on the menu for any day. For each food item keep a code, description, category, price and quantity in stock (code, description and category are not usually changed). Create a comma delimited text file called "items.txt" for 15 or more food items, indicating the item's description, category, price and quantity in stock. Read all the food items from the text file “Items.txt” Display all the food items available for this food truck. Continuously prompt the user for a food item’s code to be placed on the menu until the menu is full or the user enters -1. Note that only food items which have a positive quantity in stock may be added to…arrow_forwardIf the intNums array contains six elements, which of the following statements assigns the number 6 to the intElements variable? intElements = Len(intNums) intElements = Length(intNums) intElements = intNums.Len intElements = intNums.Lengtharrow_forward(Statistics) Write a program that includes two functions named calcavg() and variance(). The calcavg() function should calculate and return the average of values stored in an array named testvals. The array should be declared in main() and include the values 89, 95, 72, 83, 99, 54, 86, 75, 92, 73, 79, 75, 82, and 73. The variance() function should calculate and return the variance of the data. The variance is obtained by subtracting the average from each value in testvals, squaring the values obtained, adding them, and dividing by the number of elements in testvals. The values returned from calcavg() and variance() should be displayed by using cout statements in main().arrow_forward
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT