* write a C program that inputs the old salary (os) and the new salary (ns) of an employee. Then it calculates and display the amount of increase in the salary (inc) with respect to old salary. Then it outputs a message as per the following conditions: inc> =40 inc<40 and inc>=30 "A+ grade employee" "A grade employee" "A- grade employee" "B grade employee" inc <30 and inc>=20 inc<20
Q: Describe any issues that may arise when using legal software.
A: Introduction: Copyright laws protect legal software; the publisher may distribute only one copy of…
Q: What is Hadoop, and what is Hadoop's history from its inception to its current state? What is the…
A: Hadoop ? current state history and difference between Hbase and pig below steps
Q: Is it known where Ada Lovelace worked?
A: Ada Lovelace: Ada Lovelace was an English woman who lived in the nineteenth century. Augusta Lord…
Q: Under the circumstances, providing the client with copies of the auditor's previous papers is…
A: Introduction: Audit documentation contains, among other things, records of the work's preparation…
Q: C++ Code Only: Write a program to print the following output: 12 123 1234 12345
A: Code is given below:
Q: When and how was the abacus introduced to the world?
A: Brief Introduction about the abacus: A simple calculation tool, which includes a frame with strings…
Q: rast the various CNN-based object detectors using the following metrics: number of parameters,…
A: Compare and contrast the various CNN-based object detectors using the following metrics: number of…
Q: When a program requests input/output (I/O), what happens to the CPU? When an IO operation is…
A: Introduction: I/O requests for parcels are kernel-mode structures that enable communication between…
Q: Use the python programming enviroment to write a code can solve a system of linear equations with n…
A: code: import numpy as npimport sysn = int(input('Enter unknowns number: '))a = np.zeros((n, n + 1))x…
Q: Write a python program to develop a program for Speed Typing Test
A: Python Program: import timeimport math ans='Y'print(" "*7+"Welcome to Speed Test…
Q: Explain each line in main (you can put it in the comments) and explain why the output looks how it…
A: Answer :-
Q: Use scipy.stats and matplotlib.pyplot from Python to plot the cdfs of the Gamma(1, 1) and Gamma(2,…
A: Here we can write the python code for this given problem and attach the output for this , so the…
Q: What difficulties does a multithreaded design pose for an operating system?
A: Introduction: According to the information supplied, We must identify the key obstacles of…
Q: Can you find the next term in the following sequences? 1. 7,7,7,7,7,... 2. 3,-3,3,-3,3,... 3. 1,5,2,…
A: According to the information given:- We heave to find out the correct next element in mentioned…
Q: Compute the weakest precondition for each of the following statements based on their postconditions.…
A: According to the information given:- We have to compute the weakest precondition for each of the…
Q: Explain how to route data over a wide-area network.
A: Introduction: A vast area network (WAN) is a telecommunications network that spans a large…
Q: What are the benefits of a file system website over a http website? Computer science
A: Introduction: The file system website and the HTTP (HyperText Transmit Protocol) website are both…
Q: e doing to prevent data
A: Introduction A data breach occurs when information is stolen or removed from a system without the…
Q: Use C++ to program a baseball game.
A: Baseball code that contains the strikes of the players and count the strikes. Print the strike…
Q: What role does database technology play in the data management of an organisation?
A: Accosting to the information given:- We have to define the database technology play in the data…
Q: What assessment will show how Facebook business model ensures that their current cyber practices are…
A: Facebook business model ensures that their current cyber practices are both legal and ethical below…
Q: Now is the time to act. What types of dismissals ensure that you are aware of? In what ways might…
A: Introduction: What types of dismissals ensure that you are aware of? Here is the solution's…
Q: How would you categorise the following maintenance activities: upgrading the hardware and software…
A: Introduction: Maintenance It's an important part of any SDLC that involves designing and developing…
Q: Which memory type is utilized for primary storage?
A: Introduction: Here we are required to explain which memory type is utilized for primary storage.
Q: Why is virtual memory not more widely used in embedded systems? Computer science
A: Introduction: Virtual memory is not used in embedded systems. Virtual memory is a memory management…
Q: When was the phrase "computer literate" first coined?
A: 1978
Q: How is a computer mouse's plural form referred to?
A: Computer moue: The mouse is a little, moveable device that allows you to operate a variety of…
Q: What does "randomly selecting numbers" imply?
A:
Q: Consider the following C++ codes: Code a: Code b: int x-8; // global void func () int x-8; // global…
A: Let us see the details below,
Q: Using magnetic tape for batch processing in payroll is a good example. It is common for payroll to…
A: Storage Device: The storage device can be defined as a device that is used to store, extract, and…
Q: How can you intercept the victim's network communication without disrupting the service between…
A: Introduction: Interception attacks take use of security holes in a network's privacy in order to get…
Q: What are some instances of assembly language Conditional Loop Instructions?
A: Intro The Conditional loop instructions present in the assembly language include: LOOPZ LOOPE…
Q: Write a quick statement on multimedia and its many forms, including the most common storage, access,…
A: Introduction: Write a quick statement on multimedia and its many forms, including the most common…
Q: When creating an LMS portal, which system development life cycle should we use?
A: Introduction: Following the Agile system development life cycle is a good idea.
Q: The service model of a network layer "defines the characteristics of end-to-end transit of packets…
A: INTRODUCTION: Here we need to tell the network layer of the Internet's service model and the…
Q: What distinguishes software from hardware?
A: Intro If we're talking about computers, hardware refers to the real and tangible components, such as…
Q: Which memory type is utilized for primary storage?
A: It refers to the procedures for acquiring, storing, retaining, and retrieving information. from…
Q: What is your definition of Big Data? What are some of the most important competitive advantages that…
A: Introduction: Generally speaking, "big data" refers to information that is extraordinarily enormous…
Q: Оx51а00: bl Øx51dd4 Оx51а04: ldrex го, [re ro, го, r5 Оx51а14 0x51а08: стр bne 0x51аба: Оx51а0с: г1,…
A: Below the assembly program to resolve the error
Q: Who invented the flash drive?
A: According to the information given:- we have to find out who invented the flash drive.
Q: Write a Matlab program that displays 50 consecutive prime numbers starting at 2. The Matlab /Scilab…
A: Code: clearclcp=zeros(1,50);i=1;k=2;while i<=50check=0;n=round(sqrt(k));while n>=2if…
Q: What are the supplementary storage options?
A: Supplementary storage options in computer are the secondary or the extra storage options, which are…
Q: Describe the GRANT statement and its relationship to security. What kind of privileges may be…
A: According to the information given:- We have to describe the GRANT Statement in relation ship to…
Q: Consider the following C++ code: int n = 1; // global print1 (int x) { cout << x + n; plus_n () { n…
A: We are given a C++ code for which first we will find out the output produced by it and then we will…
Q: WHY DO STORAGE FACILITIES AUCTION LOCKERS WITHOUT FIRST
A: Introduction
Q: A college portfolio might aid you in the job search process (and beyond). What should be included in…
A: As you begin to build your portfolio, you should examine the following categories: Personal…
Q: What was the first computer business to go public?
A: The first computer business was traced back to developments at the close of the 19th century.
Q: QUESTION 8 In Java, objects are explicitly deallocated from the stack. True False
A: According to the information given:- We have to choose the correct option to satisfy the statement.…
Q: Describe any difficulties that may arise while using legal software.
A: Introduction: Billing, accounting, paperwork, client data, scheduling, and appointments are just a…
Q: Who created the hard drive?
A: The question is asking for the inventor of hard drive which is a part of Computer System.
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
Step by step
Solved in 2 steps with 1 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.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.
- The programming language is C++, write a program base on the given statement. Write a program that reads in the sales expenses of the Short DistanceTelephone Company for the past year and then calculate the profitand the next tax based on the ff. table PROFIT TAX RATE0 – 10000 010001 – 30000 100 + 3% OF THE PROFIT30001 – 50000 200 + 5% OF THE PROFITOVER 50000 300 + 7% OF THE PROFITCreate a c++ program that asks the user to enter all of his 3 quizzes during the preliminary coverage. The program would then compute the average of these 3 quizzes. Afterwards, the program would ask the user again to enter 3 quizzes for his/her midterm coverage. The program again would compute the average for the quizzes for the midterm coverage. Use the math function max() to find out which of the two average grades are highest. Example: Please enter 1st prelim quiz: ____ Please enter 2nd prelim quiz: ___ Please enter 3rd prelim quiz: ___ Please enter 1st midterm quiz: ____ Please enter 2nd midterm quiz: ____ Please enter 3rd midterm quiz: ____ The average of your quizzes in prelims and midterms are: 93 for prelims and 97 for midterms. 971. Write a C program that will input 10 names of student. Each student name has 4 exam scores (0- 100). Determine and display the average score of each student. Output also the name of students whose average score is between greater than or equal to 75. 2. Make a C program that prompts the user to input a positive integer value, and compute the following sequence: If the number is even, halve it; if it's odd, multiply by 3 and add 1. Repeat this process until the value is 1, printing out each value. Finally print out how many of these operations you performed. Typical output might be: Initial value is 9 Next value is 28 Next value is 14 Next value is 7 Next value is 22 Next value is 11 Next value is 34 Next value is 17 Next value is 52 Next value is 26 Next value is 13 Next value is 40 Next value is 20 Next value is 10 Next value is 5 Next value is 16 Next value is 8 Next value is 4 Next value is 2 Final value 1, number of steps 19 If the input value is less than 1, print a message…
- Write an interactive C program using if calculate the total water bill according to the given condition: Q2 else statement, to input water unit charge and For the first 50 units RM 0.40/unit For the next 100 units RM 0.80/unit For the next 100 units RM 1.20/unit For above 250 units RM 1.55/unit An additional surcharge of 15% is added to the bill.Write a C++ program that will repeatedly ask the user to enter an integer quantity of liquid given in cups, convert that quantity to its equivalent quantity in gallons, quarts, pints, and cups, and display the equivalent quantities. For example, if the user enters 31 cups, the program will determine and display that 31 cups are equivalent to 1 gallon, 3 quarts, 1 pint, and 1 cup. The program should continue doing conversions until the user indicates that she wishes to exit the program. Requirements and Comments: • Use a function convert to do the conversions to determine the equivalent quantities. Note: This function must not contain any cout or cin statements. • Conversions: 1 gallon = 16 cups; 1 quart = 4 cups; 1 pint = 2 cups. • Do not assume the user knows the number of conversions to be done in advance.Write a program in C that asks the user to enter a number of seconds and works as follows:• There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes in that many seconds. If there are leftover seconds they should be displayed also on a separate line.• There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours and minutes and leftover seconds in that many seconds.• There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours and minutes and leftover seconds in that many seconds. Pay close attention to how the output is formatted in the example. If there are 0 days, hours, minutes or seconds that line should not be printed.
- Using C Language: Write a program that consists of 2 guessing game. The first game: It is a guessing game in which the computer picks a specific number from 1 to 10, then the user guesses the number chosen by the computer and has ten attempts, and in each attempt the chosen number by the computer changes. The second game: A guessing game. The computer also chooses a three-digit number, for example: 950 and you have ten attempts to predict the number chosen by the computer. For example, the user types 390, the computer will tell him that the first digit is wrong, the second digit is correct, but it is not in the correct location, and the last digit, which is 0, is correct. And the user makes repeated attempts to find the correct whole numberUsing 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 chargesa C++ program that recommends the number of calories a person should eat each day. Calories are units of energy found in all foods. Base your recommendation on the person's weight and whether the person has an active or sedentary (inactive) lifestyle. If the person is sedentary, that person's activity factor is 13. If the person is active, that person's activity factor is 15. Multiply the activity factor by the person's weight to get the recommended number of calories. Start your program by: having the user enter their weight, as a floating point number; having the user enter whether they have active or sedentary lifestyle, as a character, 'A' for active or 'S' sedentary; use a switch (or else if) selection statement to use the appropriate calculation for the recommended calories for the selected lifestyle. · print out your results on the screen.