Assignment

Solved: 1. PersonData and CustomerData classes Design a class named PersonData with the following member variables: lastName fi

C++ program. Please read the instructions.
1. PersonData and CustomerData classes Design a class named PersonData with the following member variables: lastName firstName address city state zip Zip ne Write the appropriate accessor and mutator functions for these member variables. Next, design a class named CustomerData, which is derived from the PersonData class. The CustomerDataclass should have the following member variables: . customerNumber mailingList The customerNumber variable will be used to hold a unique integer for each customer. The mailingList variable should be a bool. It will be set to true if the customer wishes to be on a mailing list, or false if the customer does not wish to be on a mailing list. Write appropriate accessor and mutator functions for these member variables Create a program that does the following: Create a function enterNCustomers int n) that asks to enter n number customers. All the customer ficlds must be filled in, and the result of the function is a vector containing n customer objects. Note that you may read customer info in from a text file - its up to you. User input or input from a file. Create another function that displays all the customer information to the console.
media%2F956%2F956b68eb-e448-478f-b371-c7
media%2Fd04%2Fd044ffe5-674c-4fff-b2c1-43

1. PersonData and CustomerData classes Design a class named PersonData with the following member variables: lastName firstName address city state zip Zip ne Write the appropriate accessor and mutator functions for these member variables. Next, design a class named CustomerData, which is derived from the PersonData class. The CustomerDataclass should have the following member variables: . customerNumber mailingList The customerNumber variable will be used to hold a unique integer for each customer. The mailingList variable should be a bool. It will be set to true if the customer wishes to be on a mailing list, or false if the customer does not wish to be on a mailing list. Write appropriate accessor and mutator functions for these member variables Create a program that does the following: Create a function enterNCustomers int n) that asks to enter n number customers. All the customer ficlds must be filled in, and the result of the function is a vector containing n customer objects. Note that you may read customer info in from a text file – it’s up to you. User input or input from a file. Create another function that displays all the customer information to the console.

Expert Answer

Read more

Solved: Research a company that utilizes network technology to connect their geographically separated offices. Describe the

Research a company that utilizes network technology to connect their geographically separated offices. Describe the network technology and discuss the benefits from utilizing the technology.

Expert Answer

 

Answer:

There are many ways to connect multiple offices via network. In that we have these categories…
1)Mode of communication

Read more

Solved: Mini Bank Account Management System: This system aimed to computerize the bank account management operations such as open an accoun

**C++ program**

Mini Bank Account Management System: This system aimed to computerize the bank account management operations such as open an account, withdraw money, deposit money etc.

Modules: There are three main parts of the system:
1) Person, Student and Teacher objects, where Person needs to be declared as an abstract base class and Student & Teacher should be declared as derived class.
2) Bank Account containing the account holder
3) Bank transactions such as open an account, withdraw and deposit money

Main Menu: Main Manu consists of the following items:

1) Main Menu

2) Administrator Menu

3) Open Account

4) Close Account

5) Withdraw Money

6) Deposit Money

7) Display Account holder with maximum deposit

8) Exit If user choose the Administrator menu then system will display another submenu, which will show the following submenu options:

1) Create Student Record

2) Display All Student Records

3) Display All Students by Last Name

4) Display Specific Student Record

5) Modify Student Record

6) Delete Student Record

7) Create Teacher Record

8) Display All Teacher Records

9) Display Specific Teacher Record

10) Modify Teacher Record

11) Delete Teacher Record

12) Return to Main Menu

Data storage: data can be stored in a text file. Therefore, you must use the file read and write operations for data retrieval and storage. For this system, three files required: Student.txt, Teacher.txt and Bank Account.txt.

N.B: The above requirements can be considered as a guideline for this project. You can provide more functionalities for the proposed system. However, the above features must be present to achieve full credits from this Term Project. All inputs must be considered and displayed a proper error message. You can create a simple console based project with the above menu, where the system will prompt the user to enter the corresponding number from the keyboard to execute an operation. e.g. user needs to enter 3 for opening a bank account.

Expert Answer

 

#include<iostream>
#include<fstream>
#include<cstdlib>

Read more

Solved: Write a C++ function to evaluate this mathematical function: f(x) = 0.1x^2-x In x. Assume that the correspondi

Document1 Wor DESIGN PAGE LAYOUT RSFERENCES MALNGS REVIEW vew Write a C++ function to evaluate this mathematical function: f(x) 0.1x 2-x In x. Assume that the corresponding function prototype is double f (double 冒鳳 23 WORDS

Write a C++ function to evaluate this mathematical function: f(x) = 0.1x^2-x In x. Assume that the corresponding function prototype is double f (double x);

Expert Answer

Read more

Solved: Write a MIPS assembly language program that prompts the user to input a string (of maximum length 50) and an integer index.

Write a MIPS assembly language program that prompts the user to input a string (of maximum length 50) and an integer index. The program should then print out the substring of the input string starting at the input index and ending at the end of the input string. For example, with inputs “hello world” and 3, the output should be “lo world”.

Expert Answer

 

Here is MIPS code for the question. Output is also shown. Please rate the answer if it helped. Thank you.

.data
str: .space 50 #used to store user input of max 50 characters

Read more

Solved: Write a complete java program that printout the following pattern using nested loops:

Write a complete java program that printout the following pattern using nested loops:

1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
6 5 4 3 2 1

I have this:

public class trying {
/** Main method */
public static void main(String[] args) {

//count down from 5
for (int i = 7 ; i >= 1; i–) {
System.out.println();

//count down from 6
for (int j = 7- i; j >= 1; j–) {

System.out.printf(“%4d”, j);
}
}

}}

but it prints this:

1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
6 5 4 3 2 1

Expert Answer

 

public class pattern {

public static void main(String args[]){

Read more

Solved: Find the MST using a) Kruskal’s algorithm and b) Prim’s algorithm

Find the MST using a) Kruskal’s algorithm and b) Prim’s algorithm

(10 points each). Show each step of the procedure and what’s the minimum cost?

B.     Show the order in which vertices are visited using a) DFS and

b) BFS (10 points each). Edges that are given are undirected.

C) Give a topological sort (10 points).

Assume     ‘<‘ = ‘->’.

D.     Summary report on 2 of the 3 algorithms (Dijkstra’s, Bellman-Ford’s, Floyd-Warshall’s)

User the table below and assume the graph is undirected, please draw the graph and show each step

A B C D E F G H I J
A 0 0 3 0 0 0 0 6 0 1
B 0 0 0 0 0 6 0 0 0
C 0 5 0 7 0 0 3 0
D 0 8 4 0 0 0 0
E 0 9 0 0 0 0
F 0 8 0 0 0
G 0 7 3 0
H 0 2 0
I 0 5
J 0

Expert Answer

 

 Based on the guideline, I can only solve a and b subpart of 1st question. I can at most upload the DFS and BFS for you upon request

PRIMS:

Let us start from A… So we add A to the empty tree

Read more

Solved: 2.Show the order in which the vertices in graph G are visited using the DFS algorithm and the BFS algorithm. G =

2.Show the order in which the vertices in graph G are visited using the DFS algorithm and the BFS algorithm. G = (V,E) where V = {a, b, c, d, e, f, g} and E = {(a,b), (a,c), (b,d), (c,e), (d,f), (e,f), (e,g)}. Start at vertex a and check edges in alphabetical order.

3.Give a topological sort for the following relations: (a<b, a <c, d<b, e<c, a<e, a<d).

4.Using any resources known to you, investigate and report on two of the following algorithms: 1) Dijkstra’s, 2) Bellman-Ford’s, 3) Floyd-Warshall’s. In each report, give a description in your own words of i) the purpose of the algorithm, ii) the problem solving technique used, and iii) the reported complexity and efficiency of the algorithm. Be sure to cite all sources used including web pages. For each of your chosen algorithms, attach a copy of the best (in your opinion) web site that you found most helpful and understandable in describing the algorithm.

Expert Answer

 

Solution:

Note: Multiple questions asked, please post the questions separately

2.

DFS:

  • DFS use a stack to hold and process the vertices of the graph.
Read more

Solved: List, draw and describe with strengths/applications and weaknesses all Neural Network types/architectures.

List, draw and describe with strengths/applications and weaknesses all Neural Network types/architectures.

Expert Answer

 

Neural networks offer a number of advantages, including requiring less formal statistical training, ability to implicitly

Read more

Solved: Convert the following decimal numbers to their binary equivalents. Calculate the answer to fi

4.5 Convert the following round the result up or down as necessary. (a) 1,5 (d) 1024.0625 decimal numbers to their binary equivalents. Calculate the answer to five binary places and l 1237 4.11 Con (a) 1237 4.12 Per using BO (a) 001 1.1 (e) 3.141592 (d 1/3 (0 1/V2 46 Convert the following binary numbers to their decimal equivalents. 011 4.13 T things (d) 11011.111010 followi (a) an (b) a s (b) 0.0001 as omplete the following table. Calculate all values to four places after the radix point. 47 complete the following table Calculate ll values to four (c) as (d) an 4.7 C

Thank You 🙂

Convert the following decimal numbers to their binary equivalents. Calculate the answer to five binary places and round the result up or down as necessary. (a) 1.5 (b) 1.1 (c) 1/3 (d) 1024.0625 (e) 3.141592 (f) 1/Squareroot 2 Convert the following binary numbers to their decimal equivalents. (a) 1.1 (b) 0.0001 (c) 111.101 (d) 11011.111010 (e) 111.111111 (f) 10.1111101 Complete the following table. Calculate all values to four places after the radix point.

Expert Answer

Read more
Still stressed from student homework?
Get quality assistance from academic writers!