Write a C++ program based on the following requirements: Write a program to determine whether a person qualifies for a credit card. To qualify, the person must have worked on his or her current job for at least 2 years and make at least RM 35000 per year. Write 2 function after inserting how many years working and total salary per year 1. Function Qualify - should explain that the applicant qualifies for the card and the annual interest rate is 12%. 2. Function No_Qualify – Should explain that the applicant does not qualify for the card and give general explanation why. Copy+paste your program code and submit it with your lab report.
Q: subject : thoery of computer science 1. Create an NFA and FA for all strings over (a, b) that…
A: We are going to draw finite automata for the language-. All strings that begin or end with aa.…
Q: Write a C++ program to calculate a rectangle's area. The program consists of the following function:…
A: ANSWER:-
Q: In many aspects, ubiquitous computing varies from conventional desktop computing, which is also…
A: Given: Another word for ubiquitous computing is "pervasive computing."This study topic is about when…
Q: 01 (B) consider you have an image (array) of size 8x8 in which the middle two rows and the middle…
A: Consider you have an image (array) of size 8x8 in which the middle two rows and the middle two…
Q: Give an example of both open source and proprietary word processing and presentation software to…
A: Word Processing and Presentation Software: Word processing is used to enter and edit simple text,…
Q: S1: In IT risk management, loss of organizational value is the inverse gain of organizational value.…
A: Risk is the impact of the event and the probability of an event occurring And which is prevented by…
Q: Explain the cyntaxes the intuition behind 3) Count Sum O.0 while ( count <10): aumber : float (input…
A: Answer the above question are as follows
Q: SLA malicious threat is always from human threat source. S2:As much no two human beings are alike in…
A: Answer: SLA malicious threat is always from human threat source. As much no two human beings are…
Q: State ports of Arduino UNO microcontroller that can produce PWM signal.
A: let us see the answer:- Introduction:- The Arduino/Genuino Uno microcontroller board is based on the…
Q: Do you know the history of the modern computer?
A: Introduction: Various forms of computer hardware and software have been developed in recent years…
Q: Convert this Python code into Ruby. class BankAccount: def __init__(self, aBalance=0):…
A: NOTE: Student asked the given python code into Ruby code. ALGORITHM: 1) Create a class BankAccount…
Q: Use bound by integration for an informal proof that Ik=1 to n k = theta(n²). %3D
A:
Q: What are the benefits of using interfaces?
A: The link between hardware, software, and the user. Users "communicate" with software. The program…
Q: What exactly is a gaming laptop computer, and how do you define one
A: A gaming laptop is a small and portable personal computer with an integrated display that is…
Q: Clarify what it means to "use concepts from software engineering" in software development.
A: Software development: is a discipline of computer science concerned with the design and…
Q: def get_change(cash_received: float, to_pay: float) -> float: ' ' ' Calculates total change to…
A: Please refer to the following steps for the complete solution to the problem above.
Q: How many times will the print statement execute? for i in range(10): for j in range(3): print(f'{i}.…
A: Here in this question we have given a cide segment and we have asked to find the number of times…
Q: Arrange, by steps, and in ascending order, with the number of comparisons and substitutions for each…
A: The complete C++ code is given below with screenshots Also, the number of combinations in each step…
Q: The following code correctly determines whether x contains a value in the range of 0 through 100,…
A: We are going to see if the given statement is true or not. I have pasted the code along with the…
Q: write a java program to print the mirror image of right angled in x-direction after taking number of…
A: Required:- Write a Java program to print the mirror image of right-angled in x-direction after…
Q: Given the binary file "PHYS101.dat" that has the Ids of students who are taking the course PHYS101…
A: Here I have read the content from both the files and then added the student id to 2 different lists.…
Q: In what sense do you use the term "constructors"? The purpose of Constructors is a mystery to me.
A: Constructor:- A constructor in a class is one of the first pieces of code to be executed
Q: work? In thi
A: Routing can be characterized so that it is a course of picking a path between at least one networks.…
Q: Using the shift and subtract method how many times does 3 need to be subtracted when converting 55…
A: Using the shift and subtract method how many times does 3 need to be subtracted when converting 55…
Q: How crucial is software development? Four more characteristics, in your opinion, should be…
A: Introduction: Software development's ability to create and provide value to its users cannot be…
Q: n/10 Which of the following is equal to >(10k+ 2)? k=0 °( + 1) (끌 + 2)
A:
Q: What do you think are the most critical data security measures? If data integrity and user…
A: Data security : Data security refers to the practice of preventing unauthorized access to and…
Q: Compare between the different Input-Output control techniques: programmed I/O, interrupt, DMA, and…
A: According to the Bartleby guideline we are suppose to answer only one question at a time. Kindly…
Q: 3. Show the Huffman Code for each character in the following string. “boss demigoddess ship”
A: We are given a string and we are asked the Huffman code for each character. First, we will check…
Q: Explain the intuition behind the ryn taxes 1.) cOun t. int (Input (* enter he count of numbers :"))…
A: We are given a python code and we are going to understand its syntaxes. I have explained each line's…
Q: The basic concepts that apply to all sorts of software systems may be discussed in this section.
A: Management of the entire software development process is one of the fundamental principles of…
Q: (base) sebasjr@sebasjr-ubuntu:~/C/challenges$ ./a.out Please insert word1 and word2: a b False…
A: Answer is given below-
Q: Create a simple app in JavaFX using GUI that saves data into a file and can access data from that…
A: Answer
Q: (a) Consider a convolutional neural network (CNN) with the following structure for classification of…
A: In the below steps you can find the python to build cnn model using image dataset.
Q: Static and instance methods have different properties.
A: Introduction Static method definition: A static method is a non-instance of a class that does not…
Q: Why aren't computer and mobile phone improvements like these recognised as adaptable?
A: Start: The inquiry is more subjective, and the response will be similar. Even if the technologies…
Q: What is mean by digital envelope.Explain its working.
A: To be determine: Describe about digital envelope
Q: What is the output of the following code? ListQueue q2=new ListQueue> (): q2.offer(4): q2.offer(2):…
A: Java Program: import java.util.Iterator;import java.util.LinkedList;import java.util.Queue; class…
Q: 1. In a BST, if the right sub tree is not empty, then the successor is The maximum in the left sub…
A: Answer: The minimum in the right subtree
Q: Explain how the Pigeonhole Principle can be used to show that among any 31 integers, at least four…
A: Introduction: Here we are required to explain how pigeonhole Principle can be used to show that…
Q: The distance between two points pA (XA,YA) and pB (XB,YB) is calculated as follows V(XA-XB)+(YA–YB)…
A: Find the required code in C++ given as below and sample output :
Q: What exactly does the word "computer" refer to?
A: Answer: Computers are increasingly employed in banking, medical, finance, and education. With AI,…
Q: Q5. (Find the second lowest interger number) Write a program that prompts the user to enter a set of…
A: NOTE : As the question is not specific about the programming language to be used , so C++ will be…
Q: The Ghana health service requested for a machine learning model to detect the presence of a new…
A: According to the policy we are allowed to answer only three subparts of a question. Kindly upload…
Q: llowing array. What is
A: Solution - In the given question, we have to find the value of tempArray[9].
Q: In what ways do interfaces benefit the user? Instead than using class objects, why not create them…
A: Answer the above question are as follows
Q: In Charles Babbage's view, what does a computer consist of?
A: According to Charles Babbage: The Analytical Engine (also known as a "Fully programmable machine"),…
Q: What are PUSH statements are normally used for?
A: In MLPS or the Multiprotocol label switching can be explained as the technology which helps in data…
Q: Is there anything that sets a computer apart from any other piece of technology?
A: Introduction: Every computer has distinguishing features that set it distinct from others. Among…
Q: Defintion of end user computing and system tools:
A: Solution: End-user computing (EUC) refers to the technologies used by IT professionals to install,…
Coding in C++
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- (Numerical) Heron’s formula for the area, A, of a triangle with sides of length a, b, and c is A=s(sa)(sb)(sc) where s=(a+b+c)2 Write, test, and execute a function that accepts the values of a, b, and c as parameters from a calling function, and then calculates the values of sand[s(sa)(sb)(sc)]. If this quantity is positive, the function calculates A. If the quantity is negative, a, b, and c do not form a triangle, and the function should set A=1. The value of A should be returned by the function.in C++ program please: part a) According to Wikipedia: “The International Collegiate Programming Contest, known as the ICPC, is an annual multi-tiered competitive programming competition among the universities of the world.” Moreover, the participants of the contest should be no older than 24. Complete the following function which takes as input two parameters: the current year and the birth year of a student. The function should return the age of the person given the parameters. int calculateAge(int current_year, int birth_year) { part b) The teacher wants to determine if a group of students is eligible for this competition. Complete the following piece of code considering that the age of these students are stored in the studentsAge array and use the calculateAge function to determine the eligibility. Note: solution should use calculateAge ! int main() { int studentsAge[10]; #your answer for (int i = 0; i < 10; i++) { cin >> studentsAge[i]; # your answer Your program…in C++ program please: part a) According to Wikipedia: “The International Collegiate Programming Contest, known as the ICPC, is an annual multi-tiered competitive programming competition among the universities of the world.” Moreover, the participants of the contest should be no older than 24. Complete the following function which takes as input two parameters: the current year and the birth year of a student. The function should return the age of the person given the parameters. int calculateAge(int current_year, int birth_year) { part b) The teacher wants to determine if a group of students is eligible for this competition. Complete the following piece of code considering that the age of these students are stored in the studentsAge array and use the calculateAge function to determine the eligibility. Note: solution should use calculateAge ! int main() { int studentsAge[10]; #your answer for (int i = 0; i < 10; i++) { cin >> studentsAge[i]; # your answer Your program…
- in C++ program please: According to Wikipedia: “The International Collegiate Programming Contest, known as the ICPC, is an annual multi-tiered competitive programming competition among the universities of the world.” Moreover, the participants of the contest should be no older than 24. Complete the following function which takes as input two parameters: the current year and the birth year of a student. The function should return the age of the person given the parameters. int calculateAge(int current_year, int birth_year) {Write a complete C++ program, to determine whether or not a person is eligible for MalaysianFamily Assistance. The program should be able to do the following tasks: Task 1: Write a "getInput" function.a) This is a function that does not return any values.b) It accepts as input parameters the identity card (IC) number, gross monthlyincome, eligibility status, and number of children.c) The function should prompt the user to enter their IC number, gross monthlyincome, and the number of children they have if they are eligible. A person iseligible for this assistance if their gross monthly income does not exceedRM5000.d) The function returns to the calling module all of the values entered by the user in(c), as well as the eligibility status using reference parameters. Task 2: Write a "deterAmountAssist" function. a) It accepts as input parameters the gross monthly income and the number ofchildren.b) The function should determine the amount of assistance received by those whoare eligible…Using c++ write a program : Write a C++ program to calculate net pay of an employee. Input basic pay from user, and pass it to a user defined function CalculatePay(), calculate the net pay and return to main function. Calculate net pay of employee: House Rent is 35% of basic salary Medical Allowance is 10% if basic pay is more than Rs. 10000/-. It is 15%, if basic pay is less than or equal to Rs. 10000/- Conveyance allowance is Rs. 1000/- if basic pay is less than or equal to Rs. 10000/-. It is Rs. 1800/- if basic pay is more than to Rs. 10000/- Net pay is calculated by adding basic pay, house rent, medical allowance and conveyance allowance.
- HUK computer store offers credit plan at 10% down payment and an annual interest rate of 12%. You are required to write a C++ program to calculate and print the payment schedule for a loan to purchase a computer for the first month: a. Prompt the user for the purchase b. Write a void function called display() to print the following headings: The month number The starting balance The interest to pay The principal to pay The monthly payment The ending balance for that month c. Create a double function called creditcredit() that has the purchase price as its parameter. The function must do the following (d to j): d. Create two variables annual interest rate = 12% monthly rate = annual interest rate/12 e. The month number should begin with 1 f. Use a loop to display information for 12 months g. Monthly payment is calculated at 5% of the purchase h. The amount of interest for a month is calculated as the…Question 8: Write a C++ program to calculate net pay of an employee. Input basic pay from user, and pass it to a user defined function CalculatePay(), calculate the net pay and return to main function. Calculate net pay of employee: House Rent is 35% of basic salary Medical Allowance is 10% if basic pay is more than Rs. 10000/-. It is 15%, if basic pay is less than or equal to Rs. 10000/- Conveyance allowance is Rs. 1000/- if basic pay is less than or equal to Rs. 10000/-. It is Rs. 1800/- if basic pay is more than to Rs. 10000/- Net pay is calculated by adding basic pay, house rent, medical allowance and conveyance allowance.*C language is used Define a function called hypotenuse that calculates the length of the hypotenuse of a right triangle when the other two sides are given. Use this function in a program to determine the length of the hypotenuse for each of the following triangles. The function should take two arguments of type double and return the hypotenuse as a double.
- done in c++ Program Specifications: Write a program that asks for a user's name and age, finds the ticket price based on the age, and prints out the user's name, age, and ticket price. The program must define the following 3 functions and call them in the main function. Create a function called getName that takes in no arguments and returns the name of the user. Create a function called getAge that takes in the argument age and uses pass-by-reference to set the age of the user. Ensure that the user cannot put in an age that is negative or greater than 100. Create a function called printTicket that takes in the user's name and age and does the following ○ If they are less than or equal to 13 years old set ticket_Price to 9.99. ○ If their age is greater than 13 and less than 65, set ticket_Price to 19.99. ○ If their age is greater than or equal to 65, set ticket_Price to 12.99. ○ Output to the console the user's name, age and ticket price.The Card Box Problem C++ you should write documentation for your program. Using functions, write a program that prompts the user to enter the area of the flat cardboard. The program then outputs the length and width of the cardboard and the length of the side of the square to be cut from the corner so that the resulting box is of maximum volume. Calculate your answer to three decimal places. Your program must contain a function that takes as input the length and width of the cardboard and returns the side of the square that should be cut to maximize the volume. The function also returns the maximum volume.C++ program Write a function named "reduce" that takes two positive integer arguments (as reference), call them "num" and "denom", treats them as the numerator and denominator of a fraction, and reduces the fraction.The function should return the value 0 (to indicate failure to reduce: if either of the two arguments is zero) and should return the value 1 otherwise.Function Prototype: bool reduce(int & num,int & denom);