Problem E: Aircraft Controller

Problem E: Aircraft Controller
Instruction: Please write a C++ program with one main(). You should add segments of codes to complete each task from a) to e).
a) Imagine that you are an airtraffic controller. Write a C++ code that allows you to store the flight data in a one dimensional array of struct. For this purpose, define the struct FlightInfo that contains:
i. FlightNumber: integer
ii. Speed[3]: double array
iii. AverageSpeed: double
iv. Heavy: boolean
Note that the array Speed stores the current aircraft’s speeds in km/h for past three hours. That is, Speed[0] respresents the speed three hours ago, Speed[1] respresents the speed two hours ago, Speed[2] respresents the current speed. Heavy denotes whether the weight of this aircraft exceeds 100 tons or not.
b) Write a C++ code that allows you to input the information (FlightInfo) of 10 flights except for the AverageSpeed that will be calcualted later in part (c). You must input weight, which is an integer. Then your code checks whether it exceeds 100. If it exceeds 100, your code asigns TRUE to Heavy. Otherwise, your program assgins FALSE to Heavy. The data must be saved into one dimensional array of FlightInfo.
c) Write a C++ code that uses the array Speed to calculate the average speed (which will be saved in AverageSpeed) of each flight.

Language (or Software): C++

Download CPP file : Click HERE

Create an Invoice class with three fields: ID number, balance due and day due.

1)Create an Invoice class with three fields: ID number, balance due and day due. 2)The constructor for Invoice will accept three arguments for the three fields noted above. 3)In the Invoice class constructor check that the id number falls within a constant
range where the low id number is 100 and the high id number is 999. Check that the day falls within a constant range where the low day number is 1 and the high day is 31. If the ID number or the day fall outside of the specified ranges, throw an argument exception.
Assign the values passed in to the corresponding class variables. 4) Create read-only implemented accessors for ID number, balance due, and day due. 5) In Main instantiate an array of five (5) Invoice objects. 6)Create a constant integer and set the default
constant to 999. 7)Prompt the user for inputs for ID number, balance, and day. For the inputs, use if statements to verify that each input for each of the three fields is the required value type (int, double, and day). If the input being checked is not the
correct value type set the field equal to the default constant. 8)Handle any exceptions (try-catch block) that are thrown when the object is instantiated. Trythe assignment of each instantiation object, passing the three entered values to the object array
element and catchan argument exception, assigning an instantiation using the constant default value, 0, and 1for the ID number, balance, and day respectively. 9)At the end of input display all the entered and possibly corrected records as shown below. 10)Internal
documentation. The following is an example of possible output: Enter invoice number >> 100 Enter balance >> 1000.00 Enter due day >> 15 Enter invoice number >> 1000 Enter balance >> 2000.00 Enter due day >> 16 Enter invoice number >> 300 Enter balance >> 3000.00
Enter due day >> 40 Enter invoice number >> xyz Enter balance >> 4000.00 Enter due day >> 17 Enter invoice number >> 500 Enter balance >> 5000.00 Enter due day >> 18 Entered invoices #100 $1,000.00 day 15 #999 $0.00 day 1 #999 $0.00 day 1 #999 $0.00 day 1
#500 $5,000.00 day 18 Press any key to continue . . .


Download .zip file : A+ Answers Click HERE

Alex is 31 years old and has lived in Los Alamos New Mexico

Alex is 31 years old and has lived in Los Alamos, New Mexico, for the last four years where he works at the Los Alamos National Laboratory (LANL). LANL provides employees with a 401(k) plan and for every $1 an employee contributes (up to 9 percent of the employee’s salary) LANL contributes $3 (a 3 to 1 match). The plan provides a six-year graded vesting schedule. Alex is now in his fifth year working for LANL, and his current year salary is $150,000. Alex’s marginal tax rate is 28 percent in 2014. Answer the following questions relating to Alex’s retirement savings in 2014.
a. Assume that over the past four years, Alex has contributed $45,000 to his 401(k) and his employer has contributed $115,000 to the plan. The plan has an account balance of $175,000. What is Alex’s vested account balance in his 401(k)?
b. Because Alex considers his employer’s matching contributions “free money,” he wants to maximize the amount of LANL’s contributions. What is the least amount Alex can contribute and still maximize LANL’s contribution? 
c. In need of cash to build a home theater, Alex withdrew $30,000 from his traditional 401(k) account. What amount of the withdrawal, after taxes and penalties, will Alex have available to complete his project?
d. Assume that Alex contributes $10,000 to his traditional 401(k) account this year. Also assume that in 30 years, Alex retires (at age 61) and withdraws the $10,000 contribution made this year and all the earnings generated by the contribution. Also assume that his marginal tax rate at the time he retires is 25 percent. Ignore any prior or subsequent contributions to his plan. If Alex earns a 6 percent annual before-tax rate of return, what are his after-tax proceeds from the distribution?
e. Assume that Alex is 74 years old at the end of the year, retired, and that his marginal tax rate is 25 percent. His account balance in his traditional 401(k) was $1,250,000 at the end of last year. What is the minimum distribution Alex must receive from his 401(k) account for this year? If Alex receives a $43,000 distribution for the year from his 401(k) account (his only distribution during the year) what amount will he be able to keep after taxes and penalties (if any)?


Download all Answers : Click HERE now! :)

Microsoft Word Quiz

1. If you want to insert a column into an existing table, what would you do?
A. Click in the Table Style Options group of the Design tab.
B. Click one of the insert buttons in the Data group of the Layout tab.
C. Click one of the insert buttons in the Rows & Columns group of the Layout tab.
D. Click Column in the Insert tab.

2. How do you access the dictionary and thesaurus in Word?
A. In the Insert tab, click the Help icon to the left of the Spelling & Grammar tool.
B. In the View tab, click the Dictionary icon.
C. In the Review tab, click the Define icon next to the Spelling & Grammar tool.
D. Click the Dictionary/Thesaurus icon in the upper-left page.

3. To remove any hidden data from your document before sharing it, what should you do?
A. Click the File tab, click Check for Issues, and then click Inspect Document.
B. Click the View tab and then click Protect Document.
C. Click the File tab, click Check for Issues, and then click Protect Document.
D. Click the File tab, click Check for Issues, and then click Check Accessibility.

4. Which icon allows you to add a style to a chart?
A. 1
B. 4
C. 2
D. 3

5. Which of the following menu commands would you select to make a copy of an open file and rename it?
A. Versions
B. Replace
C. Copy
D. SaveAs

6. _______ view focuses on the text and content of a document, without much information on the page
layout.
A. Read
B. Print
C. Draft
D. Outline

7. Which of the following allows you to view and access important information about your document all in
one location?
A. Help icon
B. Status bar
C. Menu bar
D. Backstage view

8. Suppose you want to delete an existing file from within Word. What would you do?
A. Click on the File button, choose Recent, open the file, and select Delete.
B. Click on Save As and give the file a new file name.
C. Open the file in Word, click on Save As, and save the file to the Recycle Bin.
D. Click on the File button, choose Save As, find the file, right click on the file, and select Delete.

9. Which of the following Word features allows you to copy multiple paragraph-formatting styles?
A. Templates
B. Format Painter
C. Hyperlinks
D. Paragraph dialog box

10. If you press the Tab key when you're in in the last cell of a table,
A. the cell is divided.
B. a new table is added.
C. a new column is added.
D. a new row is added.

11. Elisa and Josh need to access General Help. Elisa will press the F1 key. Josh will click on ? in the
upper-right corner of the Word document. Who will access General Help?
A. Neither Elisa nor Josh
B. Only Josh
C. Only Elisa
D. Both Elisa and Josh

12. Suppose you want to view a document that has several headings. What view would you use?
A. Draft
B. Read
C. Outline
D. Web

13. The merge process involves which two types of files?
A. Mail merge template and mailings
B. Text and merge fields
C. Main document and data source
D. Primary and secondary

14. What is the purpose of OneDrive?
A. OneDrive saves files to the Desktop.
B. OneDrive organizes files on an external hard drive.
C. OneDrive allows the user to work on one computer drive at a time.
D. OneDrive allows the user to save files online or in the cloud.

15. If you want to have certain icons available regardless of what tab you're using, you should add them to
the
A. Status bar.
B. Home tab.
C. QuickAccess toolbar.
D. Ribbon.

16. Default tab stops are set in Word every _______ inch.
A. 1/4
B. 1
C. 3/4
D. 1/2

17. Formulas within table cells always begin with
A. parentheses.
B. theAutoSum symbol.
C. an equals sign.
D. a symbol that looks like a backwards F.

18. To ensure that your computer is saving files by default to your hard drive,
A. choose Options from the File Info screen, choose Save in the Word Options window, and make sure the box next to
Save to Hard Drive is checked.
B. choose Options from the File Info screen, choose Save in the Word Options window, and make sure the box next to
Save to Computer by default is checked.
C. choose Save in the Options window and check the box next to Save by default.
D. click on File, choose Options, click on Save, and make sure the box next to Save to Hard Drive is checked.

19. What is the keyboard shortcut Ctrl+Z used for?
A. It will redo a change.
B. It will undo a change.
C. It will check the spelling of a document.
D. It will save a document.

20. You're working in a table that has three columns and five rows. Since the first row will be a header
row, you want it to span all three columns. What formatting feature should you use?
A. Connect cells
B. Combine cells
C. Autofit cells
D. Merge cells


Download A+ Answers : Click here

TYPE SOME PART OF QUESTION YOU ARE LOOKING FOR

.

.
acc week