Write a program in C# that will ask user to input his age and determine if he or she is eligible for opening bank account. Hint (AGE must be greater than 18 for opening bank account
Q: Write program in PHP language to take 2 number and find the remainder when a dividing by b.
A: Required:- Write a program in PHP language to take 2 numbers and find the remainder when dividing by…
Q: Programming language: c++ (1) Prompt the user for a string that contains two strings separated by a…
A: Programming Approach: Including necessary header files. Remove leading and trailing spaces. Splits…
Q: Create a c++ program that asks an employee the following questions: Employee name Employee ID…
A: Include necessary headers into program. Declare the variables. Prompt and get the name, department,…
Q: Convert to C# Language def Deposit(balance, pin): # Deposit function…
A: This is C program that asks user to create the bank system criteria through programming. User will…
Q: Write a program that accepts five numbers from the user and displays the lowest to the highest…
A: Here c++ program which takes 5 integer values and then print smaller and Langer values in given…
Q: Write a program that converts kilometers per hour to miles per hour. miles = (kilometers -0.6213712)…
A: GIVEN: Write a program that converts kilometers per hour to miles per hour. miles = (kilometers…
Q: language program which should display 4 items (keyboard, mouse, monitor and speaker) with their…
A: Note: As not mentioned I have solved the question in Python language Code: name = ["keyboard",…
Q: Write a program to determine whether the age of Peter ans Stuart.Peter is 8 years older than…
A: Program Approach - Use the header files as per requirement. Define the main function. Declare the…
Q: turbo c++ program of A company pays an employee $5 per hour if he works 40 hrs. or less. If more…
A: According to the question below the program: Program Output:
Q: Write a C program to check whether the number is EVEN or ODD, without using any arithmetic or…
A: Given Program:- Write a C program to check whether the number is EVEN or ODD, without using any…
Q: Design a program that calculate your age and displays the following information • Your name • Your…
A: Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.…
Q: Write a program to ask user to enter his date of birth and calculate how many independence days…
A: #include <stdio.h> int main(){ int day, month, year; printf("Enter day, month(in number)…
Q: [python language] Write a program that takes a single user input then outputs the type of data…
A: HI THEREI AM ADDING ANSWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Ali want to buy a ticket to movie. Write a program that checks whether he is allowed or not by…
A: #include <iostream>#include <iomanip> using namespace std; int main() { int age,…
Q: Write a C program to calculate the total bill of electricity when the units of consumption are…
A: Step-1: StartStep-2: Declare a integer variable unit and take input from userStep-3: Declare a float…
Q: Fortran programming language: Write a program to take input the first name of a user and print a…
A: logic:- set length of your choice, I have set 30 character. read input concatenate Hello ! with…
Q: Using a Decision Control Structure (if), create a program that reads a commodity code, quantity of…
A: import java.util.*; public class CommodityCode { public static void main(string[] args) { Scanner…
Q: Write a Java language program the will accept username and five (5) score grades of students, Get…
A: Create a Java language program that Prompt the user to enter the username and five (5) score grades…
Q: Design a program that asks the user for a series of names (in no particular order). After the final…
A: Program Plan: Create an empty list to store the names. Start the loop till 1 is pressed. Input name…
Q: Using c++ write a program : Write a program in C++ to handle the following scenario: Three friends…
A: #include <iostream> using namespace std; int main(){ float x,y,z,w,a,b,c,profit;…
Q: A _______ error is an error where the user misspelled a variable or used an incorrect function in…
A: Note: misspelling name of a variable or a function comes under syntax error, which gives error…
Q: Develop a C++ program working as a soda vending machine. The program should show the product menu…
A: Introduction: Here we are required to develop C++ program working as a soda vending machine, with…
Q: Write a program that asks for the names of three runners and the time it took each of them to finish…
A: Program that asks for the names of three runners and the time it took each of them to finish a race.…
Q: A bank customer invested $24 in a bank with 5 percent simple interest per year, write a program the…
A: #include<iostream>#include<iomanip> using namespace std;int main(){double…
Q: Write a Python program in which a student enters the number of college credits earned. If the…
A: In Python, the elif block is a kind of if-else block but the difference is that in elif block as…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: Swift code to solve the given problem
Q: Fill in the blank so that a program is constructed where the user enters a sentence, and it finds…
A: The character in array is to be compared with ASCII value to find whether it is digit or character…
Q: Create a program that has the following methods and corresponding usage. AreaCircle - compute…
A: Introduction: In this question, we are asked to write a C# programming to create the two methods :…
Q: Develop a C# program using Visual Studio that has the following interface: The program must allow…
A: Please give positive ratings for my efforts. Thanks. ANSWER using System; public class funcexer3…
Q: Write a function in Visual basic application that can be used to calculate the balance (change) to…
A: a function BalanceSheet is taken into consideration. Item1 As Integer, Item2 As Integer, Item3 As…
Q: Hi, I need the answer to this question using the C++ programming language. Thank you. Question:…
A: The, code has given below:
Q: I want the program to tell me the booking ID if a room is occupied. If not, tell me it's vacant.…
A: #include <stdio.h> int main(){ int n,a,b,f=0,e,g; int room[10][10]; //hotel with…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: #include <iostream> #include <string> using namespace std; struct fruitData {…
Q: Solve this question with steps please. The subject is programming in c. Use visual studio 2012.…
A: Lets see the solution.
Q: program that reads an integer sum in dollars and displays how many dollars bills of $100, $50, $20,…
A: program that reads an integer sum in dollars and displays how many dollars bills of $100, $50,…
Q: Create a case detector program in the JAVA language in which the user enters an alphabet and the…
A: Required:- Create a case detector program in the JAVA language in which the user enters an alphabet…
Q: You decide to buy some stocks for a certain price and then sell them at another price. Write a…
A: Write a program that determines whether or not the transaction was profitable. If your transaction…
Q: Write a program that reverses the input number. Formulate an equation to come up with the answer.…
A: Program code: //include the required header files#include <iostream>using namespace…
Q: Create a program using java or python to analyze and determine air quality of a city based on user's…
A:
Q: Use C++ Programming language. Amanda and Tyler opened a business that specializes in shipping…
A: C++ Program: #include <iostream> using namespace std; class cylinderType{ public: void…
Q: Solve this question with steps please. The subject is programming in c. Use visual studio 2012.
A: The given code doesn't print intended results. So I am modifying the code to get the correct…
Q: How to write this Code in the C# programming language explain in detail Variables: tax: real…
A: We have input the values price of the item and tax percentage Now tax is calculated Then total is…
Q: write a c++ program to display a calendar for a given year Ask a user to enter the year and the new…
A: Program description: The c++ calender.cpp program that prompts user to enter the year and the…
Q: Write a simple console application to accept the item name and item price. The program should…
A: As no programming language is mentioned, it is solved using basic python
Q: Write a program that accepts the input code from user and print according to the input code. If the…
A: #include<iostream> #include<iomanip> int main(){ int n; cin>>n;…
Q: A company pays an employee $5 per hour if he works 40 hrs. or less. If more than 40 hrs. he gets $9…
A: Note: Implemented program that uses #include<stdio.h>
Q: Exercise 3: Write a C++ program that asks the user to enter the color code and prints the shade…
A: According to the Question below the solution: Program Output:
Q: Write a java program, which accepts an integer from the user and checks whether the number is…
A: Code: import java.util.Scanner;public class Main{ public static void main(String[] args) {…
Q: Write a C++ program to get Temperature in Fahrenheit F and then find the Atmosphere according to the…
A: Header file <iostream> to be declared containing all the standard libraries. Standard…
Q: Sasha purchased a bag of oranges that weighed 2 kilograms. She removed one juicy orange with a…
A: C++ program to calculate the number of grams of oranges is in the bag. Prompt the user to enter the…
Write a
Step by step
Solved in 2 steps with 2 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.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…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…
- Use C++ Language Create a program that will determine if a student needs to take a final exam. This decision depends on the course grade average and the student’s attendance. Use the flow chart below for the final exam criteria.Note: C++ language Write a program that determines the price of an item after discount according to the following rule: if the original price is greater than 100.00 then the discount is 10%, otherwise the discount is 7% in Summer seasons and 5% in Winter seasons. The program should read: 1- the original price of an item and 2- the current season (s for Summer, p for Spring, f for Fall and w for Winter) and prints on the screen the price after the discount.Tasks: Design the C++ programing An ATM allows a customer to withdraw a maximum of $500 per day. If a customer withdraws more than $300, the service charge is 4% of the amount over $300. If the customer does not have sufficient money in the account, the ATM informs the customer about the insufficient fund and gives the option to withdraw the money for a service charge of $25.00. If there is no money in the account or if the account balance is negative, the ATM does not allow the customer to withdraw any money. If the amount to be withdrawn is greater than $500, the ATM informs the customer about the maximum amount that can be withdrawn. Design pseudo code and flowchart that allows the customer to enter the amount to be withdrawn. It then checks the total amount in the account, dispenses the money to the customer, and debits the account by the amount withdrawn and the service charges, if any
- Develop a C# application that will determine the gross pay for each of three employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee’s gross pay.A code in c++ or python A program that asks you to enter the name of a movie or series, and then proceed to ask how much you rate the movie or series on a scale of 1 to 10, then ask what rating you would give the series or movie, and have options for example: G, PG, PG-13, R and finally, a thank you message for your comments appears.Use C++ programming language A customer in a store is purchasing five items. The prices of the five items are:Price of item 1 = $15.95Price of item 2 = $24.95Price of item 3 = $6.95Price of item 4 = $12.95Price of item 5 = $3.95Write a program that holds the prices of the five items in five variables. Display each item’sprice, the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is7%.
- SOLVE IN C# Canada Government has announced 250 immigration visa lottery for third world countries. Total number of Application collected 10000, starting from application number 1 to 10000. You are required to write a program for Canadian government to select 250 visa for lottery visa, randomly from the pool of 10000 application and print the application number on screen Note: No input required in this programprogram that reads an integer sum in dollars and displays how many dollars bills of $100, $50, $20, $10 and $5 and how many coin of $2 and $1 so that their numbers be minimal. write this Code in the C# programming language explain in detailIn C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73