1 Student Result Statistics Calculation Write a complete C program to summarize the results of N

1. Student Result Statistics Calculation Write a complete C++ program to summarize the results of N students in a certain course by calculating the minimum, maximum, and average scores. Here are the steps to write the program: 1. Prompt the user to enter the number of students who finished the class. 2. Use a loop to iterate through each student and prompt the user to enter marks (between 0 and 100) and store them in a one-dimensional array. 3. Write a function to calculate the maximum and minimum grades. 4. Write a function to calculate the average grade. 5. Calculate the number of students who achieved grades above and below the class average. 6. Display the calculated maximum, minimum, and average scores. 7. Display the number of students who scored above and below the class average. Example: A group of 5 students has completed one course with scores 70, 75, 80, 85, 95. The calculated statistics should be: Maximum Mark: 95 Minimum Mark: 70 Average Mark: 81 Number of students above average: 2 Number of students below average: 3

1. Student Result Statistics Calculation Write a complete C++ program to summarize the results of N students in a certain course by calculating the minimum, maximum, and average scores. Here are the steps to write the program: 1. Prompt the user to enter the number of students who finished the class. 2. Use a loop to iterate through each student and prompt the user to enter marks (between 0 and 100) and store them in a one-dimensional array. 3. Write a function to calculate the maximum and minim

Read More

alternativeslog authlog bootstraplog cronlog dpkglog kernlog maillog alternativeslog auth

IN C++ LANGUAGE PLEASECase ScenarioYou are the both the Linux and Network Administrator for a small company. There hasbeen suspicious activity on the system. In order to preserve log information, it will benecessary to archive the current files in /var/log ending with the ".log" extension. Thefiles are to be saved to a file named log.tar, stored in the directory, ~/archive.It has also been requested that the files that were archived be saved to a directory,~/backup.Objectives• Create an archive named log.tar that is stored in the archive directory located inthe home directory.• Remove path names from the files that are archived.• Produce verbose output while archiving.• List the contents of the archive without extracting.• Extract the files to the directory, ~/backup.Curriculum Resources• Chapter 2 – Using the Shell• Chapter 5 – File Manipulation• Chapter 12 – Archive CommandsDeliverables• Provide the final commands for successful completion.• Provide screen shots of the commands, the command execution, and theoutput of the commands required to complete the tasks.• Take the first screen shot after executing the command(s) in the CLI to createthe archive, including the output the command(s) generate while executing.• Take the second screen shot after executing the command(s) in the CLI toextract the archive files, including the output the command(s) generate whileexecuting. Include a listing of the backup directory in this screen shot.• The final result of the archive listing should match the following:• The final result of the listing of the backup directory should match thefollowing:

IN C++ LANGUAGE PLEASECase ScenarioYou are the both the Linux and Network Administrator for a small company. There hasbeen suspicious activity on the system. In order to preserve log information, it will benecessary to archive the current files in /var/log ending with the “.log” extension. Thefiles are to be saved to a file named log.tar, stored in the directory, ~/archive.It has also been requested that the files that were archived be saved to a directory,~/backup.Objectives• Create an archive

Read More

This python program must be created using modular programming techniques only No data structure

This python program must be created using modular programming techniques only. No data structure functions can be used. (Import OS and Date-Time module needs to be used.) Create a menu driven system for user to navigate through the system using appropriate options. The Department of Health in your state needs a computer program to manage the inventory of PPEs1 that it receives from multiple suppliers2 and distribute them to the hospitals3 that it manages. List of PPE items the department receiv

Read More

LAB EXERCISE 1 PART 2 Based on the given codes forr Hotelh and maincpp create Hotelcpp so that

LAB EXERCISE 1 (PART 2) Based on the given codes for Hotel.h and main.cpp, create Hotel.cpp so that the output will be as shown below: Room Bookings: Room 0 booked by Alice for 3 nights Room 1 booked by Bob for 2 nights Room 3 booked by Carol for 4 nights Room Bookings: Room 0 booked by Alice for 3 nights Room 3 booked by Carol for 4 nights ...Program finished with exit code 0 Press ENTER to exit console. Hotel.h #ifndef HOTEL_H #define HOTEL_H #include #include class Reservation { public: Reservation(int roomNumber, const std::string& guestName, int nights); int getRoomNumber() const; const std::string& getGuestName() const; int getNights() const; private: int roomNumber; std::string guestName; int nights; }; class Hotel { public: Hotel(int numRooms); Hotel(); bool bookRoom(int roomNumber, const std::string& guestName, int nights); bool cancelBooking(int roomNumber); void displayBookings() const; private: int numRooms; std::vector reservations; bool* roomAvailability; }; #endif Main.cpp #include "Hotel.h" #include int main() { Hotel hotel(10); // Creating a hotel with 10 rooms hotel.bookRoom(0, "Alice", 3); hotel.bookRoom(1, "Bob", 2); hotel.bookRoom(3, "Carol", 4); hotel.displayBookings(); hotel.cancelBooking(1); hotel.displayBookings(); return 0; }

LAB EXERCISE 1 (PART 2) Based on the given codes for Hotel.h and main.cpp, create Hotel.cpp so that the output will be as shown below: Room Bookings: Room 0 booked by Alice for 3 nights Room 1 booked by Bob for 2 nights Room 3 booked by Carol for 4 nights Room Bookings: Room 0 booked by Alice for 3 nights Room 3 booked by Carol for 4 nights …Program finished with exit code 0 Press ENTER to exit console. Hotel.h #ifndef HOTEL_H #define HOTEL_H #include #include class

Read More

This python program must be created using modular programming techniquesonly No

This python program must be created using modular programming techniques only. No data structure functions can be used. (Import OS and Date-Time module needs to be used.) Provide explanation QUESTION 1 The Department of Health in your state needs a computer program to manage the inventory of PPEs that it receives from multiple suppliers and distribute them to the hospitals that it manages. List of PPE items the department receives are listed in Table 1 below: Task: a) All items and its details need to be recorded in ppe.txt file. The details for each item should include item code, supplier code, and quantity in stock (measured in the number of boxes). Other relevant details can also be recorded. - All PPE items are measured in boxes, i.e., they are received, recorded and distributed in boxes. - Each item is supplied by exactly one supplier. However, one supplier can supply more than one type of item. - Assume that there should be a minimum of three hospitals in your state. b) The program should have a feature for the user to update the item quantities every time after receiving from suppliers (increase in quantity) or distributing to the hospitals (decrease in quantity). You should record the details of all the updates in a text file transactions.txt. Details of transactions (i.e. items received and distributed) should include item code, supplier code/Hospital code, quantity received/quantity distributed, and date-time. c) Details of suppliers need to be stored in suppliers.txt file. d) When testing the program, you should perform adequate updates on each item. This is to prove whether the feature is correctly functioning. e) Before distributing any item to hospitals, the program should check for the available quantity in stock. The user needs to be notified if the quantity in stock is insufficient. The program should also indicate the current quantity in stock for the user to retry with the appropriate quantity. f) The program should have a feature to create hospitals.txt file for storing and updating hospital details. Include the hospital code for each of them. You can only have 3 or 4 hospitals. g) Record all updates in the transaction txt file. The program should have options to track items and print: a) Total available quantity of all items sorted in ascending order by item code. b) Records of all items that have stock quantity less than 25 boxes. c) Track available quantity for a particular item. d) Track item received during a specific time period (startDate to endDate) Important Note: i. Inventory creation should be done only once and during the very first time the program is executed. The initial quantity of each item needs to be recorded as 100 each in ppe.txt file during this time. The program should prompt for all inputs for creating this file. ii. You can only have 3 or 4 suppliers. You should not include supplier details in ppe.txt file. Only the supplier code needs to be stored in ppe.txt file. iii. The program should have a feature to create suppliers.txt file for storing and updating supplier details. The main program menu should have the following options: Transaction Menu: A) Modify (Add, Delete) B) Print Transaction C) Search in transaction Inventory Menu: A) Modify (Add, Delete) B) Print the latest inventory C) Search in inventory Supplier Menu: A) Modify (Add, Delete) B) Print supplier list C) Search supplier list Hospital Menu: A) Modify (Add, Delete) B) Print Hospital List C) Search hospital list

This python program must be created using modular programming techniques only. No data structure functions can be used. (Import OS and Date-Time module needs to be used.) Provide explanation QUESTION 1 The Department of Health in your state needs a computer program to manage the inventory of PPEs that it receives from multiple suppliers and distribute them to the hospitals that it manages. List of PPE items the department receives are listed in Table 1 below: Task: a) All items and its details n

Read More