Questions
Program is to be written in C++ using Visual studios Community You are to design a...

Program is to be written in C++ using Visual studios Community

You are to design a system to keep track of either a CD or DVD/Blu-ray collection. The program will only work exclusively with either CDs or DVDs/Blu-rays since some of the data is different. Which item your program will work with will be up to you. Each CD/DVD/Blu-ray in the collection will be represented as a class, so there will be one class that is the CD/DVD/Blu-ray. The CD class will be limited to five (5) songs, and the class will need to keep an array of five (5) strings for the song titles. It should also maintain the length of each song and the total length of the CD, as well as the artist name. The DVD/Blu-ray class will have a data member for the title of the movie, length of the movie, the year of the movie, and for the names of two of the main actors in the movie. There will be a class that maintains the list of CD/DVDs/Blu-rays. This list can be limited to just 5 CD/DVD/Blu-rays and provide a method to add a CD/DVD/Blu-ray, to remove a CD/DVD/Blu-ray, and to update a CD/DVD/Blu-ray.

The program should provide a menu for the user to be able to add, delete, update and display the information in a CD/DVD/Blu-ray. Include a comment block at the top of the code file of what the program does.

In: Computer Science

C++ please Instructions Download and modify the Lab5.cpp program. Currently the program will read the contents...

C++ please

Instructions

Download and modify the Lab5.cpp program.

Currently the program will read the contents of a file and display each line in the file to the screen. It will also display the line number followed by a colon. You will need to change the program so that it only display 24 lines from the file and waits for the user to press the enter key to continue.

Do not use the system(“pause”) statement.

Download Source Lab 5 File:

#include <iostream>

#include <string>

#include <iomanip>

#include <fstream>

using namespace std;

int main()

{

ifstream file; // File stream object

string name; // To hold the file name

string inputLine; // To hold a line of input

int lines = 0; // Line counter

int lineNum = 1; // Line number to display

// Get the file name.

cout << "Enter the file name: ";

getline(cin, name);

// Open the file.

file.open(name);

// Test for errors.

if (!file)

{

// There was an error so display an error

// message and end the program.

cout << "Error opening " << name << endl;

}

else

{

// Read the contents of the file and display

// each line with a line number.

while (!file.eof())

{

// Get a line from the file.

getline(file, inputLine, '\n');

// Display the line.

cout << setw(3) << right << lineNum

<< ":" << inputLine << endl;

// Update the line display counter for the

// next line.

lineNum++;

// Update the total line counter.

lines++;

}

// Close the file.

file.close();

}

return 0;

}

In: Computer Science

Implement a simple banking system in Java. Your application should demonstrate the following. Upon running the...

Implement a simple banking system in Java. Your application should demonstrate the following. Upon running the java code, first the application should welcome the user, then ask the user to give one of the options: 1) display the balance summary, 2) withdraw money, or 3) deposit money.

Based on the options your code should perform the following operations such as 1) read the transaction details from a file and display them on the screen. 2) ask the user to enter the amount he wants to withdraw and debit the withdrawal amount from the balance amount. It has to update the file and display the transaction summary. The system should not allow an attempt to withdraw an amount greater than the balance. 3) ask the user to enter the amount he wants to deposit, credit the balance and update the file. It should display the transaction summary.

The records in the file should contain transaction number, transaction type, amount withdrawn, or amount deposited, and balance.
Example:

  1. 1 Deposit 100.0$ 1100.0$

  2. 2 Withdraw 50.0$ 1050.0$

The welcome screen should look like:

Welcome to our Banking System!
Enter your Option in a number: 1. Display balance 2. Deposit amount 3. Withdraw amount
We assume that there is an opening balance of 1000 available in the system (Assign balance=1000.0 in the beginning of the code). Also, while running first start by choosing deposit option or withdraw option.

In: Computer Science

Implement a simple banking system in Java. Your application should demonstrate the following. Upon running the...

Implement a simple banking system in Java. Your application should demonstrate the following. Upon running the java code, first the application should welcome the user, then ask the user to give one of the options:

1) display the balance summary,

2) withdraw money, or

3) deposit money.

Based on the options your code should perform the following operations such as

1) read the transaction details from a file and display them on the screen.

2) ask the user to enter the amount he wants to withdraw and debit the withdrawal amount from the balance amount. It has to update the file and display the transaction summary. The system should not allow an attempt to withdraw an amount greater than the balance.

3) ask the user to enter the amount he wants to deposit, credit the balance and update the file. It should display the transaction summary.

The records in the file should contain transaction number, transaction type, amount withdrawn, or amount deposited, and balance. Example:

1 Deposit 100.0$ 1100.0$

2 Withdraw 50.0$ 1050.0$

The welcome screen should look like:

Welcome to CIS-2348 Banking System!

Enter your Option in a number: 1. Display balance 2. Deposit amount 3. Withdraw amount We assume that there is an opening balance of 1000 available in the system (Assign balance=1000.0 in the beginning of the code). Also, while running first start by choosing deposit option or withdraw option.

In: Computer Science

For this assignment you will create a set of simple classes that model a cookbook. The...

For this assignment you will create a set of simple classes that model a cookbook. The cookbook will consist of set or recipes. Each recipe will consist of a set of ingredients and instructions. Your submission will consist of the below three classes and a test driver (the only class with a main()) that exercises the functionality of your system.

You will need to implement the following classes based on the description of their attributes and operations:

  • Ingredient
    • name - the name of the ingredient
    • quantity - the amount of the ingredient
    • units - the unit of the quantity (e.g, tablespoon, or T, or Tbl)
    • require the creator to supply the name of the ingredient in order to create one
    • enable the user to retrieve and update each of the attributes appropriately
  • Recipe
    • name - the name of the recipe
    • category - the category of the recipe
    • ingredients - a list of ingredients (you may assume no more than 20)
    • instructions - this would be a paragraph of text, no need to worry about steps
    • require the creator to supply the name of the recipe in order to create one
    • enable the user to retrieve and update each of the attributes appropriately
  • Cookbook
    • name - the name of the cookbook
    • recipes - a list of recipes (you may assume no more than 20)
    • require the creator to supply the name of the cookbook in order to create one
    • enable the user to find recipes by name, returning only those recipes
    • Extra Credit (+1/3 letter grade): enable the user to find recipes by ingredient and return only those recipes

In: Computer Science

write code data structure using  c language You will build a system to manage patients’ data in...

write code data structure using  c language

You will build a system to manage patients’ data in a hospital. The hospital patient management system stores specific information in the form of health record to keep track of the patients’ data. Your program should read the information from a file called “patients.txt” that should be on the following format

: Patient Name#Gender#Date of admission#Date of birth #Illness#Address (City)#Blood type

Your program should be able to do the following tasks: Options: 1. Read data: read the data of the patients from the file.

2. Create linked list: create a linked list.

3. Sort data: use Radix sort to sort the data based on the patients’ names.

4. Add patient: add a new patient.

5. Update patient: update patient’s information.

6. Delete patient: soft delete (explained below).

7. Search for patients a. Name b. Date of birth

8. List patients a. All patients b. Category (i.e., illness) c. City d. Discharged (Patients who were deleted from the system)

9. Export medical report: export XML file following medial health record standards.

10. Exit: exit from the system and store the information back to the file.

you are not allowed to use the String library functions.

In: Computer Science

1) Write an INSERT statement that adds this row to the Invoices table: i nvoice_id: The...

1) Write an INSERT statement that adds this row to the Invoices table: i

nvoice_id: The next automatically generated ID

vendor_id : 32

invoice_number: AX-014-027

invoice_date: 8/1/2014

invoice_total: $434.58

payment_total: $0.0

credit_total: $0.0

terms_id: 2

invoice_due_date: 8/31/2014

payment_date: null

Write this statement without using a column list.: Use DEFAULT to insert the automatically generated ID.

2) Write an INSERT statement that adds these rows to the Invoice_line_Items table:

invoice_sequence: 1 2

account_number: 160 527

line_item_amount: $180.23 $254.35

line_item_description: Hard drive Exchange Server update

Set the invoice_id of these two rows to the invoice ID that was generated by MySQL for the invoice you added in question 1

3) Write an UPDATE statement that modifies the invoice you added in question 1. This statement should change the credit_total column so its 10% of the invoice_total column, and it should change the payment_total column so that the sum of the payment_total and credit_total are equal to the invoice_total column.

4) Write a DELETE statement that deletes the row that you added to the Invoices table in question 1. When you execute this statement, it will produce an error since the invoice has related rows in the Invoice_Line_Items table. To fix that, precede the DELETE statement with another DELETE statement that deletes the line items for this invoice. (Remember that to code two or more statements in a script, you must end each statement with a semicolon.

In: Computer Science

On January 1, 2018, R Corp. had 480000 shares of common stock outstanding. During 2018, the...

On January 1, 2018, R Corp. had 480000 shares of common stock outstanding. During 2018, the following transactions affected the common stock account: 2/1/208 issued 120000 shares. 5/1/208 acquired 100000 shares of treasury stock. 6/1/2018 issued a 3-for-1 stock split. 10/1/2018 reissued 60000 shares of treasury stock ( not adjusted for dividend or split). a) Determine the weighted-average number of shares outstanding as of December 31, 2018. b) Assume that Wilke Corp. earned net income of $3456000 during 2018, determine basis EPS

In: Accounting

6-42 Comprehensive operating budget. Skulas, Inc., manufactures and sells snowboards. Skulas manu-factures a single model, the...

6-42 Comprehensive operating budget. Skulas, Inc., manufactures and sells snowboards. Skulas manu-factures a single model, the Pipex. In late 2017, Skulas’s management accountant gathered the following data to prepare budgets for January 2018:
Materials and Labor Requirements
Direct materials Wood
Fiberglass Direct manufacturing labor
9 board feet (b.f.) per snowboard 10 yards per snowboard 5 hours per snowboard
Skulas’s CEO expects to sell 2,900 snowboards during January 2018 at an estimated retail price of $650 per board. Further, the CEO expects 2018 beginning inventory of 500 snowboards and would like to end January 2018 with 200 snowboards in stock.
Direct Materials Inventories Wood Fiberglass
Beginning Inventory 1/1/2018 2,040 b.f.
1,040 yards
Ending Inventory 1/31/2018 1,540 b.f.
2,040 yards
Variable manufacturing overhead is $7 per direct manufacturing labor-hour. There are also $81,000 in fixed manufacturing overhead costs budgeted for January 2018. Skulas combines both variable and fixed manu-facturing overhead into a single rate based on direct manufacturing labor-hours. Variable marketing costs are allocated at the rate of $250 per sales visit. The marketing plan calls for 38 sales visits during January 2018. Finally, there are $35,000 in fixed nonmanufacturing costs budgeted for January 2018. Other data include:
2017 Unit Price Wood Fiberglass Direct manufacturing labor
$32.00 per b.f. $ 8.00 per yard $28.00 per hour
2018 Unit Price
$34.00 per b.f. $ 9.00 per yard $29.00 per hour
The inventoriable unit cost for ending finished-goods inventory on December 31, 2017, is $374.80. Assume Skulas uses a FIFO inventory method for both direct materials and finished goods. Ignore work in process in your calculations. 1. Prepare the January 2018 revenues budget (in dollars). 2. Prepare the January 2018 production budget (in units). 3. Prepare the direct material usage and purchases budgets for January 2018. 4. Prepare a direct manufacturing labor costs budget for January 2018. 5. Prepare a manufacturing overhead costs budget for January 2018. 6. What is the budgeted manufacturing overhead rate for January 2018? 7. What is the budgeted manufacturing overhead cost per output unit in January 2018? 8. Calculate the cost of a snowboard manufactured in January 2018. 9. Prepare an ending inventory budget for both direct materials and finished goods for January 2.

In: Accounting

Wei deposits 3000 at time 0, and 2000 at time 2 in an account that earns...

Wei deposits 3000 at time 0, and 2000 at time 2 in an account that earns interest at an effective rate i. His account balance at time 5 is twice as large as at time 1. Determine i.

In: Finance