Types of charges Room charges : Junior suite Deluxe suite Executive suite Critical care units: ICU/CCU nursery Charge per day (RM) Patient Name Room Name a) Write a program using C++ language with prompt the user to inputs the patient's name, room name, the number of days spent in the hospital, the critical care unit (Y or N), the nursery (Y or N), and the mode of payment (Credit card-B or Cash - C). 150 250 350 b) Calculates the discount based on the total charge. A discount of 10% will be given if the mode of payment is cash. c) Print the receipt as follows for each customer: ROSEWOOD HOSPITAL Official Receipt Payment Method ICU/CCU Nursery Total Charge Discount Total Payment 300 60 Maserati Executive Suite Cash No No RM 1400.00 RM 140.00 RM 1260.00
Q: Find a piece of writing that describes how to use technologies that don't need you to use your hands…
A: Given: The following states have passed legislation that makes it illegal for drivers to use…
Q: Describe the following terminologies with respect to parallel computing. a) Synchronization b)…
A: The answer is written in step 2
Q: E. What is the hexadecimal representation of each of the following binary numbers? I) 0011 0101 1101…
A: Answer E i). 0011 0101 1101 1010 0011 0101 1101 1010 3 5 D A We divide the…
Q: --Problem -3 -Create a flowchart design that depicts the solving of the following problem: Asks user…
A: The answer is in step 2
Q: What are some examples of the many categories of issues that simulation models might be used to…
A: Introduction Simulation modelling: Simulation modelling is the process of creating and analyzing a…
Q: Explain the instruction (fliplr) with example? Your answer
A: The answer is given in the below step
Q: According to the ACM code of ethics and conduct, what ethical and professional norms would be…
A: 1.) APPROVAL When 1) registering a private participant in a programme that employs biometric…
Q: or faster sorting of letters, the United States Postal Service encourages companies that send large…
A: Encoding number system:- Interchange (ASCII) The most widely used coding scheme is still ASCII.…
Q: Do the following without using a cal- culator or a computer, but check your answers with a…
A: Introduction: The term "number system" refers to a method of representing and using numbers. The…
Q: Question 19 Listen Which of the following addition problems cannot be solved accurately when using a…
A: A formulaic representation of addition between two real numbers as approximation is called…
Q: Determine the time complexity function of the program snippet below, int f1(int n) { if (n = 1)…
A: The given C program is: int f1(int n) { if (n <= 1) return n; return 2*f1(n/2); } int…
Q: The ability to demonstrate the four P's is essential for good management of software projects.
A: Successful software project management requires the four Ps: Project 1: PERSONNEL, PRODUCT, PROCESS,…
Q: We wish to implement a system that allows the management of Employees and Students. As a first step,…
A: Answer:-enum OrderBy { TYPE, ID, FIRST_NAME, LAST_NAME, DEPARTMENT, MAJOR} public…
Q: Q2. For the purpose of merge sorting, separate T[1..n] into three arrays of sizes as equal as…
A: A typical merge sort algorithm divides an array in half continuously until it can no longer be…
Q: Write the Fibonacci Function program with: Recursive and iterative method respectively using the…
A:
Q: Suggest four reasons why the productivity rate of programmers working as a pair might be more than…
A: please check the step 2 for solution
Q: Find a closed form representation for the function defined recursively by f(0) = 5 and…
A: We have to find the solution of the given recurrence relation and prove the solution using induction…
Q: Why is data considered intellectual property? Select an answer: because it uses values and…
A: Inventions, literary and creative works, designs, and symbols, names, and pictures used in business…
Q: According to the ACM code of ethics and conduct, what ethical and professional norms would be…
A: Ethical issues of using facial recognition technoly are data privacy, mass surveillance etc.
Q: ease provide step by step working Alice has used Bob's public key (n=93542543, e =9341) to produce a…
A: The RSA algorithm was developed by Ravist, Shamir, and Adleman. This is an asymmetric public key…
Q: What does it imply when people talk about operating systems? Describe the two primary purposes of an…
A: Intro OS manages computer hardware and software resources while allowing programs to share standard…
Q: Do you think that the government and law enforcement agencies should be able to see user accounts on…
A: Facebook: Facebook. Facebook, a social network site, is being utilised as evidence against student…
Q: Problem: How many levels of 4-2 reducers are needed to reduce k summands to 2 in a reduction tree?…
A:
Q: What benefits does paging offer?
A: Introduction: The benefits of paging must be established. Paging is a type of memory storage that…
Q: While examining evidence in EnCase you are looking at the tree view. Which of the following depicts…
A: Answer is given below- " Option 'C' is correct answer-
Q: In what different ways may information on the mouse be obtained? In what specific order does…
A: At this point, it is necessary to evaluate the resources that the mouse can access: On the inside of…
Q: computer science - How can a process data flow diagram be used to explain and evaluate a technique?
A: Introduction: In computer science, DFD, also known as a data Flow Diagram, is a typical approach for…
Q: Modern disks often have their own main memory caches, typically about 1 MB, and use this to prefetch…
A:
Q: When clients make purchases on social networking sites like Facebook, which already have a great…
A: Indeed, I accept that security issues via web-based entertainment are a central issue for…
Q: Need help to create the question below in Excel vba. Write a function called NextCell that takes a…
A: Public Function NextCell(CellAddress As String) As Boolean NextCell = Range(CellAddress).Offset(0,…
Q: PROBLEM 5 Brenda Mage, an undergraduate accountancy major at Ateneo de Zamboanga University, is…
A: Solution:: An undergraduate business major wants to decide/figure out a course schedule for the…
Q: how files in the schedule management system will be physically kept and accessible
A: Introduction: What exactly is a File Management System? A file management system is used to do file…
Q: Explain briefly any two-built in functions in spreadsheet.
A:
Q: 6. (Immutable Data Class Objects) Built-in types int, float, str and tuple are immutable. Data…
A: Below is the answer to above question. I hope this will be helpful for you....
Q: What role does cryptography play in terms of information security? What are the consequences of not…
A: Introduction: Cryptography protects information and communications using codes so that only the…
Q: What is the Internet's mechanism?
A: Introduction: The internet is a global computer network that transmits data and media across a…
Q: What are the advantages of providing static and dynamic views of the software process as in the…
A: The Rational Unified Process(RUP) is a software development process for object oriented models .It…
Q: When it comes to the process of writing codes of ethics for professional organisations, we will…
A: Code of ethics for the professional organization - An organization's objective and core principles…
Q: How does EnCase verify the contents of an evidence file, using the default settings? EnCase…
A: EnCase is used to find some evidence from the damaged (seized) hard drive by creating an evidence…
Q: Which of the following lines, if any, contains a valid, though not necessarily accurate/helpful,…
A: ANSWER:
Q: What type of bookmark will enhance the information in your report in EnCase? Picture bookmark…
A: Bookmark is the link which is saved to the web pages that are added to the links which is saved as…
Q: It is discussed in great length but also its impa cyberbullying the problem.
A: Introduction: Cyberbullying can happen online through social media, forums, or gaming where users…
Q: Suggest four reasons why the productivity rate of programmers working as a pair might be more than…
A:
Q: oder the following table: in knakal Design Paradigms Isle and Conquer Chick st ( Greedy Finyl…
A: ANSWER:
Q: Write a Java program to read the value of a double variable z and print the value of 2³-12z² + 5z +…
A: Start Take input as z value Compute z3 - 12z2 + 5z + 6 Print result Stop
Q: What are your opinions on the topic of whether or not social media sites such as Facebook ought to…
A: Facebook: College organizations and policing use Facebook, an online entertainment stage, as a…
Q: Trainers at Tom's Athletic Club are encouraged to enroll new members. Write an application that…
A: As Language is not provided , doing it in Java Programming Language.
Q: Modern disk drives store more sectors on the outer tracks than the inner tracks. Since the rotation…
A: 1. Frequent, random accesses to a small file (e.g., catalog relations).- Here place the file in the…
Q: A set of integers may be implemented using an array of integers. Since the array is only partially…
A: set.h Code: #include<stdio.h> typedef int Set[100]; //Function dclarations void…
Q: Is it possible to describe how a computer operates using this method? After that, we'll most likely…
A: Introduction: The elements of input, storage, processing, and output are all necessary for a…
Step by step
Solved in 2 steps with 1 images
- Needs to be done in C# language. Problem Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient, the following data should be entered: • The number of days spent in the hospital• The daily rate• Hospital medication charges• Charges for hospital services (lab tests, etc.) The program should ask for the following data if the patient was an out-patient: • Charges for hospital services (lab tests, etc.)• Hospital medication charges The program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out-patient information. Both functions should return the total charges. Input Validation: Do not accept negative numbers for any data.C++ Language code and explain Zodiac Sign Identifier - Ask the user's birth month and birth day and return the corresponding Zodiac Sign he/she belongs: Evaluate the user's birth month and day by checking the following: If born from, Mar 21 to Apr 19 - Aries Apr 20 to May 20 - Taurus May 21 to Jun 20 - Gemini Jun 21 to Jul 22 - Cancer Jul 23 to Aug 22 - Leo Aug 23 to Sep 22 - Virgo Sep 23 to Oct 22 - Libra Oct 23 to Nov 21 - Scorpio Nov 22 to Dec 21 - Sagittarius Dec 22 to Jan 19 - Capricorn Jan 20 to Feb 18 - Aquarius Feb 19 to Mar 20 - Pisces Example: What is your month of birth? 1 - January (31 days) 2 - February (27 days, if Leap Year 28 days) 3 - March (31 days) 4 - April (30 days) 5 - May (31 days) 6 - June (30 days) 7 - July (31 days) 8 - August (31 days) 9 - September (30 days) 10 - October (31 days) 11 - November (30 days) 12 - December (31 days) Please enter your birth month: 8 Please enter day of your birth: 16 Please enter your year of birth: 1997 Your birthday is every…Static Variable: a variable whose lifetime is the lifetime of the program (static int x;) Dynamic Variable: It is a pointer to a variable (int *x;) Is this comparison true?
- use C++ programming language Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an inpatient or an outpatient. If the patient was an inpatient, the following data should be entered: The number of days spent in the hospital The daily rate Charges for hospital services (lab tests, etc.) Hospital medication charges If the patient was an outpatient, the following data should be entered: Charges for hospital services (lab tests, etc.) Hospital medication charges Use a single, separate function to validate that no input is less than zero. If it is, it should be reentered before being returned. Once the required data has been input and validated, the program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the inpatient data, while the other function accepts arguments for outpatient data. Both functions should return the…Use C++ programming language Ingredient AdjusterA cookie recipe calls for the following ingredients:• 2.5 cups of sugar• 1 cup of butter• 3.75 cups of flourThe recipe produces 45 cookies with this amount of the ingredients. Write a program thatasks the user how many cookies he or she wants to make, and then displays the number ofcups of each ingredient needed for the specified number of cookies.PLEASE CODE IN PYTHON Problem Description An anagram is a word or a phrase formed by rearranging the letters of another phrase such as “ITEM” and “TIME”. Anagrams may be several words long such as “CS AT WATERLOO” and “COOL AS WET ART”. Note that two phrases may be anagrams of each other even if each phrase has a different number of words (as in the previous example). Write a program to determine if two phrases are anagrams of each other. Input Specifications The input for the program will come from an input file in.dat, in.dat will have two lines of data, line (1) will have the first phrase and the line(2) will have the second phrase. You may assume that the input only contains upper case letters and spaces. Output Specifications The program will print out one of two statements: ”Is an anagram.” or, ”Is not an anagram.” All output will be to the screen. Sample Input CS AT WATERLOO COOL AS WET ART Output for Sample Input Is an anagram.
- C++ LANGUAGE Create a menu system program using Function: Menu System (1st way) 1 – converting ft to inch 2 – Area of a circle 3 – Exit SUPPLEMENTAL ACTIVITIES ( C++ LANGUAGE)(FUNCTION) 1. Write a parameter and return program that will require the user to enter a temperature in Celsius and convert it to degree Fahrenheit and degree Kelvin. Formula:Fahrenheit = (9/5) * Celsius + 32Kelvin = Celsius + 273 Write your answer.Hospital Charges In Python - Write a program that computes and displays the charges for a patient’s hospital stay. First,the program should ask if the patient was admitted as an in-patient or an out-patient. If thepatient was an in-patient the following data should be entered:• The number of days spent in the hospital• The daily rate• Charges for hospital services (lab tests, etc.)• Hospital medication charges.If the patient was an out-patient the following data should be entered:• Charges for hospital services (lab tests, etc.)• Hospital medication charges.Use a single, separate function to validate that no input is less than zero. If it is, it shouldbe re-entered before being returned.Once the required data has been input and validated, the program should use twoseparate functions to calculate the total charges. One of the functions should acceptarguments for the in-patient data, while the other function accepts arguments for out-patient data. Both functions should return the total…C PROGRAM / C LANGUAGE Make a C program language. Input the number of players then input the number of goals scored for each. Print "Not Messi" if the highest goals exceed 10 and "Okay, fine, it's Messi" if it doesn't INPUT 1. Number of players 2. Goals scored by each player Constraints All of those goals are whole numbers The first line will contain a message prompt to input the number of players • The succeeding lines will contain a message to input the goals scored by each player • The last line contains appropriate resulting message EXPECTED OUTPUT A EXPECTED OUTPUT B Enter the number of players: 4 Goals score by player # 1: 7 Goals score by player #2: 2 Goals score by player #3: 5 Goals score by player #4: 1 Okay, fine it's Messi Enter the number of players: 5 Goals score by player # 1: 10 Goals score by player #2: 2 Goals score by player #3: 20 Goals score by player # 4: 1 Goals score by player # 4: 0 Not Messi
- Lab #3 – Day CalculationBackground - Many times one needs to do calculations on dates. Programs like Excel use the number of days since 1/1/1970 when doing these calculations. We don't know enough C++ to completely do this calculation, yet, but we can make a start.Problem - You will prompt a user for a month, a day and a year. You will then tell the user how many days since January 1 of that year the input date is.For example if the user inputs a 3 for the month, a 2 for the day, and 2000 for the year the program outputs the number of days as being 62. Note 2000 is a leap year. Therefore you must test to see if a year is a leap year when doing this problem.The three rules which the Gregorian calendar uses to determine leap year are as follows:1. Years divisible by four are leap years, unless...2. Years also divisible by 100 are not leap years, except...**3. Years divisible by 400 are leap years. **** Combining rules 2 & 3: Centennial years that are not divisible by 400 are not leap…In C/C++, True or False: A function that changes the value of a variable passed by reference also changes the value of the original variable. A variable's type helps define the amount of memory it takes to hold a value of that type.A header of a C-language function is: void recurs(int current_level, int max_level ) The keyword "void" here signifies