Use DEV-C++ to develop a well-documented C++ program that: 1) Prompts the user to enter from the keyboard an integer value named credits between 0 and 120 representing the number of credit hours passed by a UOB student. 2) Validates the entered value: a) If the entered value is NOT in the range (0..120), then prints an error message: "Error: Unacceptable number of credits. Bye ", and quits the program. b) Otherwise, classifies and prints the student's category based on credits passed by a student as shown in the following table. Student category freshman Credit hours From 00 to less than 31 From 31 to less than 61 sophomore junior senior From 61 to less than 91 From 91 to 120 Less than 0 or greater than 120 Error c) Displays on the screen the entered value and the student's category as shown below. ant the previous steps for unknown number of students until 666 is entered by the user.
Q: Explain two (2) distinctions between the Internet (IP) and ATM (VC) network layer protocols, as well…
A: IP- internet protocol is a communication protocol that transmits datagrams over internetworks and…
Q: Provide instances of data manipulation, forgeries, and web jacking to demonstrate your…
A: Data manipulation In data tampering, data is altered before it is entered into a computer system,…
Q: in java please Write a main method that adds the numbers from 1 to 10 to a LinkedList. The…
A: logic: create an integer linked list and use loop to store number from 1 to 10. create an Iterator…
Q: Describe the various MPEG standards.
A: The MPEG is a Moving picture experts group standard. MPEG is an association that creates guidelines…
Q: Computer science How do app developers profit from their app if it necessitates the use of the…
A: Introduction: According to some estimates, the flexible application business might grow by as much…
Q: 11 def methodA (self): х, у %3D 0,, 0 y = y + self.y x = self.y + 2 + self.temp 12 13 14 15 self.sum…
A: The answer is given below.
Q: Identify and explain the three (3) main components of HCI.
A: HCI or Human computer interaction is a technological study, which suggest how the computer and…
Q: Wireless migration is the process through which a base station or access point moves from one base…
A: Introduction: A switch may connect all wireless LAN access points (APs). The routing information for…
Q: Given the below Binary Search Tree, Answer the following questions: 100 70 212 22 99 166 300 63 150…
A: Process to find predecessor or successor of a node x in binary search tree:->perform inorder…
Q: 2. Machine learning techniques can be built for trading algorithms of cryptocurrencies. true…
A: Machine learning techniques like linear models, random forests, and support vector machines can be…
Q: Using indirect addressing mode (like for LDI and STI), the first memory location contains the…
A: Find the answer given as below :
Q: What are some of the applications of logic gates in your daily life?
A: The logic gates can be used in a number of ways in a person's daily life.
Q: When it comes to embedded systems, watchdog clocks are critical.
A: Introduction: A watchdog timer (WDT) is a crucial component of the simplest type of embedded system.…
Q: Among the recovery methods of the syntax analyzer, which is the most critical to the implementation…
A: There are many different aspects of the syntax analyzer that are critical for the implementation of…
Q: Proofs: Construct proofs to show that the following symbolic arguments are valid. Commas mark the…
A: Given, W → ∼U, W ∨ X, ∼T → (Z • U), X → ∼Z ∴ T This means, Premises : W → ∼U W ∨ X ∼T → (Z • U) X →…
Q: When it comes to embedded systems, watchdog clocks are critical.
A: Introduction: Watchdog timers may be the answer for embedded systems that humans can't continually…
Q: What is the first step in resolving a data corruption problem?
A: Resolving Data corruption problem.
Q: recursive implementation of Euclid’s algorithm for finding the greatest common divisor (GCD) of two…
A: Rescursive function:These are the function which call itself in their own function . Function: This…
Q: To completely define a variable, it must include both its 'type' and its 'additional…
A: The scope and visibility concept of a variable helps us to describe the properties of variables. To…
Q: Character devices are usually faster in transmitting data than block devices. Is this statement true…
A: Introduction
Q: Only mobile networks employ wireless technology for the air interface between phones, antennas, and…
A: Introduction The lines that connect the main network, or backbone network, to the tiny sub-networks…
Q: Consider the following binary search tree (BST). root 30 15 42 20 34 72 2 10 18 25 31 39 59 17 19 32…
A: Here in this question we have given a BST and we have asked to do add(6) in this..and find out the…
Q: (a)Find an appropriate algorithm for the given problem. (b)Draw the graph. (c)Find the maximum…
A: An entity: Spark. js is a framework for effortlessly creating simple and fast internet approaches…
Q: Character devices are usually faster in transmitting data than block devices. Is this statement true…
A: Character devices means these devices sent the characters independently which can use few bytes. The…
Q: Given the following array, int num[5]={3,6,9,12,15}, what will be the value of score for the given…
A: The given array is, int num[5] = {3,6,9,12,15} In array all the elements are at a index, from which…
Q: (C++)Write a program that will allow a student to compute for his equivalent semestral grade. The…
A: C++ program to calculate the equivalent semester grade
Q: A graphical user interface or a command-line user interface is what you prefer? Why?
A: A command-line interface (CLI) is a text-based or command-based graphical user interface (UI) in…
Q: How can VM give processes with their own addresses? Computer science
A: Introduction: As long as your virtual machines have the same Ethernet MAC address, they will receive…
Q: Character devices are usually faster in transmitting data than block devices. Is this statement true…
A: This statement is true Character devices are usually faster in transmitting data than the block…
Q: Convert the following if block to select case If x =10 and x <=15 then IblRes.Text = "Between 10 and…
A: If x<10 then LblRes.text="Below 10" else if x>=10 and x<=15 then LblRestext ="Between…
Q: What is the purpose of the repquota command in Linux? Explain. What distinguishes this from the…
A: Introduction: For a file system supplied by the FileSystem option, the repquota command provides a…
Q: Timers were required in our rdt protocols for a variety of reasons.
A: The solution to the given question is: When sending packets , there may be a chance of losing…
Q: What are the security issues in Windows 10? What are the most common vulnerabilities found in…
A: IntroductionGenuine Windows 7 or Windows 8/8.1 owners are in for a pre-holiday surprise from…
Q: The distinction between restarting a service and reloading a service is explained below.
A: Introduction: The distinction between restarting and reloading a service is as follows, Let us first…
Q: Define "emerging technologies".
A: The solution to the given question is: Emerging technologies can be defined as the different…
Q: Please answer it in Python Write a function show_scores that takes as arguments a dictionary of…
A: The code is given below.
Q: What are some of the benefits and downsides of caching disc write operations, and how do they differ…
A: Introduction: The major benefit of caching, as well as the purpose, is to reduce the amount of…
Q: What distinguishes embedded computers from general-purpose computers is their lack of a hard drive.
A: This question belongs to the computer architecture domain of computer science
Q: Show that the language L = {a"b"+k : n > 0, k > 1} U {a"+*g" :n > 0, k > 3} is not regular.
A: Given language is, L={anbn+k : n>=0, k>=1} ∪ {an+kbn :n>=0, k>=3} Set of input…
Q: What do you think of the modern-day "Mechanical Turk?" A modern Turkish person is distinct from an…
A: INTRODUCTION: What is the called "Mechanical Turk"? Mechanical Turk was named after "The Turk," an…
Q: Consider a function f: N → N that represents the amount of work done by some algorithm as follow:…
A: Introduction: we need to prove or disproof that f (n) is O (n). f(n) = {(1 if n is odd,n if n is…
Q: Which algorithm design technique uses selection sort? Why?
A: INTRODUCTION: Here we need to tell which algorithms design technique uses selection sort.
Q: What are the two benefits of DDR3 memory over DDR2 memory?
A: DDR3 and DDR2 are two different kinds of Random Access Memories. DDR3 refers to third generation of…
Q: Why are NAND and NOR referred to as Universal Gates? What are the benefits of utilizing them?
A: NAND & NOR call Universal Gates the advantage of using them
Q: The creation of the RISC architectural paradigm was inspired by many factors.
A: Introduction: A More condensed set of instructions Microprocessor architectures that use a limited,…
Q: Given the below Binary Search Tree, Answer the following questions: 100 70 212 22 99 166 300 63 150…
A: The answer is given below.
Q: Using a suitable diagram, show the sequence of steps in Knowledge Discovery in Databases (KDD)…
A: Diagram:
Q: Create an Android Application using java that serves restaurant clints. The user can do the…
A: We are attaching both the XML and JAVA code in the below steps along with the screenshots and output
Q: How are virtual ("horizontal") communications between peer protocols at two distinct entities on a…
A: The information an (N)-entity gets from the (N + l)-entity is transported to the (N)-entity in…
Q: The creation of the RISC architectural paradigm was inspired by many factors.
A: Introduction: A Simplified Set of Instructions Computer is a microprocessor architecture that uses a…
Step by step
Solved in 3 steps with 2 images
- (Data processing) Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap years. For example, because 1600 is evenly divisible by 400, 1600 was a leap year. Similarly, because 1988 is evenly divisible by 4 but not by 100, it was also a leap year. Using this information, write a C++ program that accepts the year as user input, determines whether the year is a leap year, and displays a message telling the user whether the entered year is or is not a leap year.(Statistical) In many statistical analysis programs, data values considerably outside the range of the majority of values are simply dropped from consideration. Using this information, write a C++ program that accepts up to 10 floating-point values from a user and determines and displays the average and standard deviation of the input values. All values more than four standard deviations away from the computed average are to be displayed and dropped from any further calculation, and a new average and standard deviation should be computed and displayed.(Numerical) a. Write a C++ program that accepts an integer argument and determines whether the passed integer is even or odd. (Hint: Use the % operator.) b. Enter, compile, and run the program written for Exercise 8a.
- In C++ Programming, write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 15% State Tax: 3.5% Social Security Tax: 5.75% Medicare/Medicaid Tax: 2.75% Pension Plan: 5% Health Insurance: $75.00 Your program should prompt the user to input the gross amount and the employee name. The output will be stored in a file. Format your output to have two decimal places. A sample output follows: Bill Robinson Gross Amount: .......................... $3575.00 Federal Tax: ................................ $ 536.25 State Tax: .....................................$ 125.13 Social Security Tax: ................... $ 205.56 Medicare/Medicaid Tax: ......... $ 98.31 Pension Plan: .............................. $ 178.75 Health Insurance: .......................$ 75.00 Net Pay: ....................................... $2356.00 NOTE: The first column is left-justified, and the right column is…In C++ Programming, write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 15% State Tax: 3.5% Social Security Tax: 5.75% Medicare/Medicaid Tax: 2.75% Pension Plan: 5% Health Insurance: $75.00 Your program should prompt the user to input the gross amount and the employee name. The output will be stored in a file. Format your output to have two decimal places. A sample output follows: Bill Robinson Gross Amount: Federal Tax: State Tax: Pension Plan: . Health Insurance: $3575.00 Social Security Tax: Medicare/Medicaid Tax:.........$ 98.31 Net Pay:...... $ 536.25 $ 125.13 $ 205.56 $ 178.75 $ 75.00 $2356.00C++ 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…
- Qn1: You are asked to write a simple C program that will accept an integer value in the range of 5-95 and as a multiple of 5 representing the number of cents to give to a customer in their change. The program should calculate how many coins of each denomination and display this to the user. Valid coin values are 50, 20, 10 and 5. Your solution (program and algorithm) should be modular in nature. This requires the submission of a high-level algorithm and suitable decompositions of each step. Note that for this problem the principle of code reuse is particularly important and a significant number of marks are allocated to this. You should attempt to design your solution such that it consists of a relatively small number of functions that are as general in design as possible and you should have one function in particular that can be reused (called repeatedly) in order to solve the majority of the problem. If you find that you have developed a large number of functions which each performs…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.Written in C# Language Please! A fixed percentage of water is taken from a well each day. Request values for W and P where: ▪ W is the amount (in litres) of water in the well at the start of the first day ▪ P is the percentage of the water in the well taken out each day Write a program to print the number of the day, the amount taken for that day and the amount remaining at the end of the day. The output should be terminated when 30 days have been printed or the amount of water remaining is less than 100 litres, whichever comes first. For example, if W = 1000 and P = 10, the output should start as follows: Day Amount Taken Amount Remaining 1 100 900 2 90 810 3 81 729 Note: The amount taken and amount remaining should be displayed to 2 decimal places.
- Using c++ 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 total chargesPrograming in c This program will calculate how pricy two products will be in 2030. It will begin by asking the user for the current price of the products. Then, it will print these values out, so the user knows the values were saved correctly. Next, it will ask the user for the inflation rate. After this, the program should multiply the current prices by the inflation rate. When done, it should print out the estimated-inflated values. For this task, you will need to define a structure with two members. These two members will be the products whose inflated price will be calculated. In the example I chose salt and soap. You will also need a local variable in main that holds the value of the inflated rate. Lastly, this process should be ran twice, each time for a different country. Therefore, you will need to declare two variables of the same structure type. One declaration for country1 and one for country2. The example is running estimated values for Mexico and Canada. You may implement…In C programming language, if the first and the second operands of operator + are of types int and float, respectively, the result will be of type A. int B. float C. char D. long int