Take in numbers about 4 times and create a function that adds those four numbers together. Use that sum to check if it is higher than 50 or less than 50. If it is less than 50 tell the user to go work more. If it is more than 50 tell the user good job! They will have good luck for the new year. If it is 50 tell the user to have a good day.
Q: Do the programming exercises on page 54-55 Exercise 1: A user-friendly program should print an intro...
A:
Q: What are your goals after taking ICT program? What are your interests that served as your basis in c...
A: INTRODUCTION: ICT workers contribute to developing the goals and cultures of the individuals and org...
Q: What will be the output of the program ? #include int main() { int k=1; printf("%...
A: Here % d is for integer k that is k== 1. Now condition is checked with the help of ternary operato...
Q: the formula and simplified logical diagram of the following truth tabe
A:
Q: How well did your predictions match the drought monitor map? Describe areas where your predictions w...
A: Acquire two matching clear containers (use 400 ml beakers or the bottom half of 1-liter soda bottles...
Q: The SAS table hold.work contains a numeric column named ID. Write an entire DATA step to create a ta...
A: 1) creating a table proc sql ; create table hold.work2 like hold.work;quit :
Q: 2. Given the following sequence of stack operations, what is the top item on the stack when the sequ...
A: Here in this question we have given a sequence of stack operation.and we have asked to find the top ...
Q: My C program admin option is not working. Please help me fix it and explain what's wrong. ---------...
A: EXPLANATION: The admin function that is present in the program code includes the for a loop. The fo...
Q: Write a prolog function, average(X,Y), that takes a list (X) of integer values as input and returns ...
A: Given: we have to write a prolog function average(X,Y), that takes a list (X) of integer values a...
Q: Question 2 Next you will need to create classes to implement the interface and extend the abstract c...
A: class Circle extends AbstractShape{ private double m_radius; //Constructor public Circl...
Q: What are the design differences between a mobile operating system and a typical interactive system s...
A: Answer : A "Mobile OS" is designed to be used on a device with a small touch screen. A "Desktop OS" ...
Q: HW 3 (due 2/15) draw the graph below with 2 self-intersections
A: Solution: If a feature intersect itself at a point and continue by crossing itself, it is consider...
Q: Create a data based on the linear model with dummy (0,1) variables y = Xb + e, and this model not of...
A: ANSWER:-
Q: Suppose you have an investment plan where you invest a certain fixed amount every year. Modify futva...
A:
Q: Can you think of instances where using default values will increase data integrity and instances whe...
A: Default settings: To prevent problems in the absence of an entry, default values are utilized. The d...
Q: NIST SP 800-14 defines three categories of information security policies, which you must list and de...
A: Computer Security Policy: Computer security policies are very essential to achieve the desired goals...
Q: Problem B. Counting Glorious Create another function count_glorious(low, high) that takes in two p...
A: According to the Question below the Solution: Output:
Q: What is connection pooling, and how does it work?
A: Connection pool means a group of connection objects.... Whenever our application needs such objects,...
Q: Take in one number and check if it is even or odd. Then, print out the number and tell me if it is e...
A: Answer: Provide the program in c++ Code: #include <iostream>using namespace std; int main() { ...
Q: program6_1.py BetterBuy is having a sale. Write a program that uses a while loop to store to a file ...
A: f = open('data.txt', 'w+')#f.write('ITEM\tREG.PRICE\tREDUCED\t\tSALE PRICE\n')f.write(f"{'ITEM' : &l...
Q: 2. Given a list of integers (1, 2, 3, 4, 5,). Write a Python program using a map to double every ele...
A: Given :-
Q: What methods are used to process data? (Include details)
A: Introduction: What methods are used to process data? (Include details) Manual, mechanical, and elect...
Q: Kindly give working code and output with explanation i have output in terminal like this: [[22, 3...
A: If you want to print output in the terminal and save it as a pdf file: from fpdf import FPDF # ...
Q: Agile methodologies give importance to: processes and tools. comprehensive documentation. contract n...
A: Introduction: Agile methodologies: It is a project development approach in which project development...
Q: Write a C++ program that will use linear/multiple regression to determine the ability to give loans ...
A: SUMMARY: - Hence, we discussed all the points.
Q: 45. In the Ruby programming language, write a program to input the name of a file and print the exte...
A: In the Ruby programming language, write a program to input the name of a file and print the extensio...
Q: ALGORITHM BubbleSort(A[0..n – 1]) I/Sorts a given array by bubble sort //Input: An array A[0..n – 1]...
A: Bubble sort algorithm BubbleSort(A[0...n-1]) for(i=0;i<=n-2;i++) for(j=0;j<=n-2;j++) do ...
Q: Why is it important to use Try Catch?
A: Answer: Try and catch are the keywords that are used for showing the exception handling and also che...
Q: 4. The distance between two points (a and b) (where a-coordinates is (ax, ay, az) and b-coordinate i...
A: import math# Take the values of x, y and z as per your interest, as there is no particular values gi...
Q: What goes into creating the software component of a computer system?
A: Defined creating the software component of a computer system
Q: A 15 bit data word along with parity bits received by the receiver is as follows: 101010 111111 0111...
A: Odd parity check When the data is sent in data blocks it is subjected to parity check. In case of od...
Q: You are the new IT manager for a small company. There are 10 PC's and all of them use Microsoft Off...
A: What are the different types of software licenses? There are five types of common software license ...
Q: 1. Convert 82ADh to decimal. 2. Convert 11101b to decimal. 3. Convert 2BD4h to decimal.
A: Given: 1. Convert 82ADh to decimal.2. Convert 11101b to decimal.3. Convert 2BD4h to decimal. Goal: C...
Q: Given a graph with 14 edges. What is the missing value 'k' in the following degree sequence, 1, 2, 3...
A: In any graph, the sum of the degree sequence is equal to twice the number of edges Given degree seq...
Q: Given the Boolear
A: DeMorgan’s Theorem: (a+b)’=a’.b’ (a.b)’=a’+b’
Q: What is the maximum number of IP addresses that can be assigned to hosts on a local subnet that uses...
A: The Answer is
Q: The current legal system allows both proprietary software and open source software to be distributed...
A: The answer is given below.
Q: Why is it a good idea to first write out an algorithm in pseudocode rather than jumping immediately ...
A: Answer:
Q: 1. Write a C program that will use an amray that stores 3 numbers. Then, the program vwill detemmine...
A: #include <stdio.h> #include <conio.h> int main(){ int a[1000],i,n,min,max; pri...
Q: Can you implement the Student class using the concepts of encapsulation? A solution is placed in the...
A: public class Student { private String name; private int rollNumber; public String getName() { ret...
Q: Let A = {1,2,3, 4, 5} and B = {1,2, 3, 4, 5, 6}. Give a set T C A®B so that following three constrai...
A: A = {1,2,3,4,5}, B = {1,2,3,4,5,6} Tꓯ€ᴟø We have given relationship ᴝ AøB With three constraints ꓯa...
Q: 6. Given an random number generator rand5() that generates a uniform random integer in the range [1,...
A: By the given question we have rand5() function, which generates the random number between the 1 to 5...
Q: True or False: Threads in the same process share a stack. Explain your response in as few words as p...
A: The straight forward answer for the above question will be False
Q: What methods are used to process data? (Include details)
A: Introduction: Any company cannot benefit from data in its raw form. Data processing is the process o...
Q: strategies of research engineer , to help businesses prepare for the explosion in 5G and by extensi...
A: Modern IoT has distinct correspondence requirements, for example, high consistency, minimal dormancy...
Q: 4) Design a Turing machine to recognize the language L = {a ^ 2 ^n |n2 0}
A: INTRODUCTION: There is an endless tape on which read and write operations may be done in a Turing co...
Q: In Python 3, write a program with classes to keep track of phones. Here are the requirements: Create...
A: Given The answer is given below
Q: Compile and run the ImageGen01 application.
A: ANSWER: Compile: Accumulating is the change from Source Code (comprehensible) into machine code. A c...
Q: Why do you think gadgets in a networked environment might need to be uniquely identified?
A: For the most part, software and user data files are saved on a central computer, known as a file ser...
Q: How do you create a file (document) using a vi text editor on the UNIX system? When using the Putty ...
A: How do you create a file (document) using a vi text editor on the UNIX system? When using the Putty ...
Step by step
Solved in 4 steps with 3 images
- (Physics) Buoyancy is the upward force a liquid exerts on a submerged object, as shown in Figure 6.9. The buoyancy force is given by this formula: B=pgV Bisthebuoyancyforce( lbforN).isthefluiddensity( slug/f t 3 orkg/ m 3 ).gistheaccelerationcausedbygravity( 32.2ft/se c 2 or9.8m/ s 2 ).Vistheobjectsvolume( f t 3 or m 3 ). a. Using this formula, write a function named buoyantForce(double ro, double vol, int units) that accepts a fluid density, the volume of an object placed in the fluid, and the units to be used(1=U.S.Customaryunits,2=metricunits), and returns the buoyancy force exerted on the object. b. Include the function written for Exercise 6a in a working C++ program, and use your program to complete the following chart:Given person_is_old(age) which returns True or False based on the incoming age as an integer. Write a function that uses the one mentioned above so that it prints “Go to work!” if the person is not old and “You deserved to have a long vacation” otherwise. Your function must also accept the age as its argument. My code def funct2(age): flag = old_person(age) if(flag): print("You deserved to have a long vacation") else: print("Go to work!")Exercise 4 A number, a, is a power of b if it is divisible by b and a/b is a power of b. Write a function called is_power that takes parameters a and b and returns True if a is a power of b. Note: you will have to think about the base case.
- fast please in pyth 10. Write a complete function. The name of the function is priceGuide, it has a single input parameter called avgPrice, and it has no return. The function is used to determine how expensive restaurants are, based on their average meal price (you can assume that the price is always larger than zero). If the average price is $10 or less, print the message “Inexpensive”. If the price is more than $10 but less than or equal to $30, print the message “Moderate”. If the price is more than $30, print the message “Pricey”. 9. Write a for loop to print all the even numbers contained in the range of 2 to 20, inclusive.Age information for 100 families of 4 people is defined as members of a community. For every family, Send the age of each family member to a function called average (), where the average is after calculating, send the address of the average information to the main() function, main the function prints, Send the addresses of parents ' age information to function1 (), in the function, it checks whether the ages of the mother and father are double, and each if the age of both is even, it returns a value of 1 from the function, otherwise a value of 0,write a C program.The food pantry provides its volunteers with keys to unlock doors and a Food Pantry vest to let customers know they work there. There are a limited amount of keys and vests, so volunteers need to check them out of the office.Complete the program by creating a CheckoutEquipment function that takes in the number of keys and vests currently available at the office. If there are enough keys and vests, the function should reduce the number of keys and vests by 1 and return true. Otherwise, the number of keys and vests will stay the same, and the function will return false. Take note that the number of keys and vests will be defined in the main function and the CheckoutEquipment function should modify the values of those variables declared in main. #include <iostream> int main() { int keys = 10; int vests = 10; bool checked_out = CheckoutEquipment(keys, vests); if (checked_out) { std::cout << "Successfully checked out.\n"; } else { std::cout << "Not…
- A bank charges $10 per month, plus the following check fees for a commercial checking account: $0.10 each for less than 20 checks $0.08 each for 20 through 39 checks $0.06 each for 40 through 59 checks $0.04 each for 60 or more checks Write a function BankCharges() that allows the user to enter the number of checks written and computes and displays the bank’s service fees for the month. All checks for the month are assigned the same charge, based on the total number of checks written during the month. Use the following test data to determine whether the application is calculating properly. In each case, the customer is charged only a single rate, based on the total number of checks. Your solution should clearly show the function. Customer Number of Checks Bank Charges Nancy 15 Lilian 25 Arianna 45 Ben 75Write a function which accepts the user’s first and last name and prints the first name 4 timesseparated by tabs, and last name 2 times separated by spaces. (1 tab = 4 spaces)Example OutputEnter the first name: JohnEnter the last name: MorganJohn John John John Morgan MorganIf a year has the digit 7 OR the digit 4 in it, then it is called a “Beautiful year”. For example, 2017, 2014, and 2072 are all beautiful years. If the year has BOTH 4 and 7 in it, then it's an “Amazing year”. For example, the years 2047 and 2074 are amazing years. All other years are “Ugly years”. You need to write a function that takes a year as an argument and return it's type. Then, finally print the returned values in the function call. ================================================ Sample Function Call 1: function_name(2470) Sample Output 1: Amazing year ================================================ Sample Function Call 2: function_name(2170) Sample Output 2: Beautiful year ================================================ Sample Function Call 3: function_name(2021) Sample Output 3: Ugly year
- The prompt asks: Write a function that calculates the amount of money a person would earn over a period of years if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of years and call the function which will return the total money earned in dollars and cents, not pennies. Assume there are 365 days in a year. function totalEarned(years) { } var yearsWorked = parseInt(prompt('How many years will you work for pennies a day? ')); alert('Over a total of ' + yearsWorked + ', you will have earned $' + totalEarned(yearsWorked));Create a function called midvalue that accepts three distinct int values as input and returns the value that is located exactly in the centre of the three. Thus, midvalue(5,28,14) yields 14.Declare and define a function that computes bonus for an employee depending on the base salary and the number of years of experience of the employee. Inside the function, check the number of years of experience. If the number of years of experience is greater than 10 years, the bonus is 10% of the base salary, otherwise it is 5% of the base salary. You will need to call this function from your main function and pass the base salary and the number of years as arguments. Code: #include <iostream>using namespace std; double compute_bonus(double base_salary, int experience); int main(){ double base_salary; int experience; //get values of base_salary //get experience from user //call compute_bonus by passing necessary parameters //display the bonus returned by the function return 0;} //function definition{ double bonus; //compare experience/calculate bonus //return computed bonus }