Programming Logic & Design Comprehensive
9th Edition
ISBN: 9781337669405
Author: FARRELL
Publisher: Cengage
expand_more
expand_more
format_list_bulleted
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
Programing language is C#
6. Hospital Charges
Create an application that calculates the total cost of a hospital stay. The daily base
charge is $350. The hospital also charges for medication, surgical fees, lab fees, and
physical rehab. The application should accept the following input:
• The number of days spent in the hospital
• The amount of medication charges
• The amount of surgical charges
• The amount of lab fees
• The amount of physical rehabilitation charges
Create and use the following value-returning methods in the application:
• CalcStayCharges—Calculates and returns the base charges for the hospital
stay. This is computed as $350 times the number of days in the hospital.
• CalcMiscCharges—Calculates and returns the total of the medication, surgical,
lab, and physical rehabilitation charges.
• CalcTotalCharges—Calculates and returns the total charges.
GPA Calculator
Students are concerned about their GPA. They need to calculate it accurately every
semester to monitor their progress. Develop a GPA calculator that follows the AOU
regulations (AOU-OU Grade Scale) using C# programming language. The application asks the
student to enter his numeric grade of each course and the course's credit hours.
Accordingly, the application calculates the student's GPA after converting the numeric
grade to letter grade. The GPA calculation should produce floating-point results. Display
the results rounded to the nearest hundredth. You should store the letter grades of all
student's courses in an array. The final grade of the student should be also calculated.
Sample I/O
Enter the course grade (-1 to end): 93
Enter the course credit hours: 3
Enter the course grade (-1 to end): 74
Enter the course credit hours: 2
Enter the course grade (-1 to end): 60
Enter the course credit hours: 3
Enter the course grade (-1 to end): -1
The grades of your courses…
True or False An enum declaration can only appear inside the application’s namespace.
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- The output of a calculation is often shown in the user interface in the form of a(n) _____control.arrow_forwardInstructions Activity #4 Kotlin Programming Create a Kotlin program that will assign a number to variable num. Determine if num is an odd or an even number. if num is an odd number print all the odd number from 0 to num. If num is an even number print all the even numbers from 0 to num. Sample Output: Assign Number: 6 2 4 6 Assigned Numbe: 3 1 3 Need Source Code plsss Thank youarrow_forwardA variable with ______ scope has storage created for it by a declaration statement located outside any function.arrow_forward
- C Language Create 3 functions for your program. Function 1: Display MenuCreate a function to display your Café Menu as reference before ordering. This function has no return type and no input parameter. Function 2: Determine item priceCreate a function to determine the price of each item in order to facilitate calculation of total bill.Your function will take input of food item and return price for the item. Function 3: Calculate total bill and balance of paymentCreate a function to calculate the total bill of the customer and also the balance after the paymenthas been made.arrow_forwardH1. In C# (Windows Form App .NET Framework please) Create an application that serves as a time clock that employees can use to clock in and clock out of work. When the application starts, the employee can click a button to clock in. At some later time the employee can click a button to clock out. The application will then calculate and display the amount of time that the employee worked. Show proper step by step explanationarrow_forwardFat Percentage Calculator Develop a C# application that allows the user to calculate the fat of his daily food. The user should enter: • The total number of calories for a food item • The number of fat grams in that food item Accordingly, the application will calculate and display: • The number of calories from fat • The percentage of calories that come from fat Additionally, the applications categorizes if the food is considered low fat, normal fat, or high fat as the following rule. If the calories from fat are less than 30% of the total calories of the food, the food is considered low fat. If the calories from fat are between 30% and 40% of the total calories of the food, the food is considered normal fat. If the calories from fat are more than 40% of the total calories of the food, the food is considered high fat. Note: Make sure the number of calories and fat grams are not less than 0. Also, the number of calories from fat cannot be greater than the total number of calories. If…arrow_forward
- Numerical values that are associated with objective function, decision variables, and constraints are called _________. Multiple Choice parameters binary assumptions valuearrow_forwardIn conclusion, it is important to define a variable by its data type, but this is not always enough. Data type, variable name, memory location, and initial value must all be specified when declaring a variable (if any). This guarantees that the variable is properly managed by the computer and is available for usage in the application.arrow_forwardC# Programming: Create a user-defined function of your choice that takes a string parameter and prints it in the output.arrow_forward
- Name: Instructor Course: ITSE 2321 Object-Oriented Programming (Java) Program: Four This program computes an employee's gross, net, and overtime pay. Enter your ID Number: 1001 Enter your pay rate: 12.50 Enter your hours worked: 36 Program 4 ID Number: Pay Rate: Regular Hours: Overtime Hours: Total Hours: Regular Pay: Overtime Pay: Gross Pay: Tax: Deductions: Net Pay: 1001 12.50 36.00 0.00 36.00 450.00 0.00 450.00 0.00 35.00 415.00arrow_forwardPaint Job Estimator A painting company has determined that for every 115 square feet of wall space, 1 gallon of paint and 8 hours of labor will be required. The company charges $20.00 per hour for labor. Create an application that allows the user to enter the square feet of wall space to be painted and the price of the paint per gallon. The program should display the following data: • The number of gallons of paint required • The hours of labor required • The cost of the paint • The labor charges • The total cost of the paint jobarrow_forwardC# Programming Create a C# program that has the following methods and corresponding usage. 1. AreaCircle - compute the area of the circlearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
.2: Function Parameters and Arguments - p5.js Tutorial; Author: The Coding Train;https://www.youtube.com/watch?v=zkc417YapfE;License: Standard Youtube License