A travel company has three types of buses (A, B and C), each one has a price based on the kilometer traveled per person, the costs are $3.0, $4.5 and $6.0 respectively. Write a C program to determine the total cost of the trip considering that when it is quoted there must be a minimum of 20 people, otherwise the payment is made based on this limit number.
Q: What is the big O notation of the following function: O o(n²) O(27) O O(n log n) Oo(n² log n) n² + n…
A: In a general rule of selection of complexity of overall program we always select complexity of…
Q: Write a C program that uses each of the below system calls at least once. Make sure that the program…
A: Start initiate a main function check if fork() is greater than 0, print the current process, using…
Q: When you think about email, what image comes to mind? Is it feasible for a message to get to its…
A: E-mail: We can send communications electronically via the internet thanks to this service procedure,…
Q: What is the shortcut to compile and run a program ?
A: Disclaimer: '' Since you have not mentioned any particular programming language or compiler. We will…
Q: 1. Please draw and submit an ERD that satisfies the following description 3 entities: a. Apartment…
A: We need to draw crowfoot model for the given scenario.
Q: It is a data structure or a blueprint that defines data and actions in a single unit. A Constructor…
A: A data structure is a storage that is used to store and organize data.
Q: Question 3: Write a regular expression for each of the following languages: (a) all strings over…
A: Let's answer all four regular expressions one by one :
Q: Between a telephone line and a comm adaptor, why is a modem necessary?
A: A modem is linked between a phone line and a communication adapter as follows: A modem is a hardware…
Q: . Compute the data rate of the human eye using the following information. The visual field consists…
A: Data rate of the human eye: Computation of the data rate of the human eye is as follows: The visual…
Q: It is a structured UML diagram that describes the static structure of a system. A) Object B) Class…
A: The structure diagram depicts the system's static structure and its elements at various conceptual…
Q: Application Developer and other roles in the database domain. Which role is more appropriate for…
A: Answer:
Q: Problem_#03] The input shown signal shown below is applied to the AND gate. Draw a timing diagram…
A: Since there are multiple questions, we will provide the answer for the first full question. To get…
Q: void print_factors (int x), that print the prime factors of x's. int sum (int x, int y), that find…
A:
Q: 12. Perform the required conversion from one system to another. 110112 to base-16
A: As given, we have to convert from one system to another. (11011)2 = ( )16
Q: As a web designer, you should focus more on front-end design or on back-end design?
A: As a web designer, you should focus more on front-end design or on back-end design? The visual parts…
Q: A smart modem can automatically dial, end, and answer calls. Is it feasible to identify the sender…
A: A smart modem can automatically dial, end and answer calls. And communication software is the sender…
Q: What parallels between a pointer and a reference may be observed?
A: Pointer: A pointer is a variable that holds the memory address of another…
Q: Can you please add an execution chart of this driver program. Thank you.
A: Here i make a execution chart of all the file one by one:…
Q: please see image for instruction questions here is the HTML sourse code as i could not upload 3…
A: Answer: <!-- The JS Code is listed below the HTML code in the format as you required. -->…
Q: responsibility as a computer maker to provide computers with great prices. Is it feasible to create…
A: You'll know exactly where each component goes and how it is installed when you create your own PC.…
Q: What is the shortcut to compile and run a program ?
A: Introduction: As you have not mentioned any programming language, hence we are writing the solution…
Q: age such that: he first list of characters should be "rotated right 2", which means the last two…
A: the code is an given below :
Q: 3.1 Define the following Internet services 3.1.1 Email 3.1.2 World Wide Web (WWW) 3.1.3 Search…
A: Below I have provided the solution of the given question
Q: ease, Hi I'm p
A: Here, I have written the HTML Code below to design this webpage:
Q: Construct a Turing machine that takes strings over the alphabet {a,b} on the tape, and moves the…
A: Let us take the string of L = { anbm/n,m>=0 } I did not use software but in the…
Q: how to make an complex calculator with addition/substraction/conjugate of complex numbers in C…
A:
Q: New DNS servers have been added to the server configuration of your DHCP server. What is the most…
A: DHCP server An automatic distribution and assignment of the IP addresses, default gateways, and…
Q: What is The Minimax Algorithm?
A: The Minimax Algorithm is explained in next step:
Q: Question 1 (Wonderful tree) Let us think of a rooted tree. A rooted tree is a tree in which one…
A: Here is the c program of the above problem. See below step for code and output.
Q: Correctly overloaded methods must have identifier
A: Introduction: Below describe the which option is correct and why Correctly overloaded methods must…
Q: Prove or disprove the following property using Armstrong’s Axioms Primary Rules only: If A -> B…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: Please help me in creating a letter
A: This is not exactly a computer science question. But as it is related to a co-op program I can help…
Q: How do you assess logistic regression versus simple linear regression models in machine learning…
A: In contrast to logistic regression, which goes one step farther and fits the line values to the…
Q: 8.
A: Here, In the above-given problem statement we are provided a task to develop a C code to find out…
Q: What three things must a network have in order to function successfully and efficiently as intended?…
A: INTRODUCTION: Computer networking is the term for a network of connected computers that may…
Q: [MO12] Cohesion shows the relative independence among the modules. A) True B) False
A: Answer:
Q: What three elements must be present in a network for it to be regarded as effective and functional?
A: Introduction In this question, we are asked about the three elements must be present in a network…
Q: Suppose that each of the 300 million people in the United States fully consumes two packages of…
A: Every individual uses 730 tags in a non-leap year. 219 billion tags are produced annually when 300…
Q: PYTHON CS1 PROBLEM Define a function that takes a dictionary gdict as a parameter and returns a list…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: Input File The input file is a dataset containing addresses, neighborhoods and rent prices from 2020…
A: ANSWER:-
Q: Consider a 1 KB page size and a process size 66800, calculate
A: The answer is
Q: The general syntax of tenary operator is? A consequence?condition: alternative B condition…
A: The general syntax of tenary operator is? A consequence ? condition: alternativeB condition…
Q: How do you analyse the performance of the predictions generated by regression models versus…
A: Supervised machine learning and Unsupervised machine learning are the two main categories of machine…
Q: CashierApplication_Surname. The application should perform the following specifications: • Get the…
A: Start. Ask the user for the details of item. Perform the operations. Print the output asked.…
Q: 7. Perform the required conversion from one system to another. ABC16 to base-8
A: We need to convert ABC from hexadecimal(base-16) to octal(base-8).
Q: write AST Tree Traversal code?
A: The AST is also known as abstract syntax tree.
Q: What is The Minimax Algorithm explain it?
A: Here below we will discuss about Minimax Algorithm.
Q: Write your C++ program in main.cpp. Write a program that generates n random numbers each in the…
A: Here is the c++ program of above problem. See below step
Q: at sense are hardware and software equival quivalent?
A: Introduction: Functionally, hardware and software are interchangeable. Any function performed by one…
Q: Assume the following: (1) the propagation delay between browser and server is 100 ms, (2) the…
A: Let's Convert the images into packets By using the packets/images we can easily calculate the…
Step by step
Solved in 4 steps with 3 images
- A travel company has three types of buses (A, B and C), each one has a price based on the kilometer traveled per person, the costs are $3.0, $4.5 and $6.0 respectively. Write a C program to determine the total cost of the trip considering that when it is quoted there must be a minimum of 20 people, otherwise the payment is made based on this limit number.You are asked to manage salaries of employees of an organization. Write a C++ program to store basic salaries of 15 employees by reading from the user. Calculate tax on salaries and add bonuses to find the final salary that should be paid. If an employee has 0 leaves in the month than a bonus of 8% is added to his/her salary. If an employee has salary more than 1 lac, 15% tax shall be deducted, if salary is between 50,000 and 1 lac, 10% tax shall be deducted, if salary is less than 50,000 than 6% tax shall be deducted. Find final salaries of employees and store in a new array. Program shall than display list of final salaries and also maximum and minimum salaries from final salaries.Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF), and Global Insurance (GI): Basic Salary Range ($) Tax Rate SPF GI 0 – 1999 0 % 11 % 1 % 2000 – 2999 5 % 12 % 2 % 3000 – 4999 8 % 13 % 5 % Above 5000 10 % 17 % 8 % Based on the table given, you are required to write a C programming for a system that accepts the employee’s basic salary, and generates the net salary after the respective deductions as described above
- The 10-week match statistics of a football team are kept in the sequence given below. In this series,values of "2" represent "wins", values "1" represent "losses" and "0" values represent ties. The teammust score at least 12 points in order not to be relegated.2 1 0 0 2 1 1 2 1 0Accordingly, write a C program that prints whether the relevant football team remained in thecluster after 10 weeks, along with its score. Note: 3 points will be awarded for wins, 1 point fordraws, and 0 points for losses. Transactions will be carried out using the array.Write a C program that will calculate the total payment for a brand new car being purchased on installment. The user will input the car price, amount of downpayment made (for 0% to 80% of the car price), interest rate per annum (from 5% to 20%, can be fractional up to 2 decimal places), and the number of months of amortization (12, 24, 36, 48 or 60). Show a summary of the details inputted by the user together with the amount to be financed and the monthly amortization cost. Dispaly a running tally per month of the number of months paid, the total amortization paid (in pesos), and the total running cost of the car. Please provide comments if possible so that i could follow your code easily :)Write a c++ program to compute and display a person's weekly salary as determined by the following conditions: If the hours worked are less than or equal to 40, the person receives $12.00 per hour; otherwíse, the person receives $480.00 plus $18.00 for each hour worked over 40 hours. The program should request the hours worked as input and display the salary as output. HINT: using functions.
- Construct C++ program to solve a given problem using appropriate programming techniques. Write a program that will calculate and print bills for the city power company. The rates vary depending on whether the use us residential, commercial, or industrial. A code of R means residential use, a code of C means commercial use, and a code of I means industrial use. Any other code should be treated as an error. The rates are computed as follows: R: $6.00 plus $0.052 per kwh used. C: $60.00 for the first 1000 kwh and $0.045 for each additional kwh. I: Rate varies depending on time of usage Peak hours: $76.00 for first 1000kwh and %0.065 for each additional kwh. Off-peak hours: $40.00 for first 1000 kwh and $0.028 for each additional kwh. Your program should prompt the user to enter an integer account number, the use code (type char), and the necessary consumption figures in whole numbers of kilowatt-hours. Your program should display the amount due from the user.Write a program in C++ with total change amount as an integer input that outputs the change using the fewest coins, one coin type per line. The coin types are dollars, quarters, dimes, nickels, and pennies. Use singular and plural coin names as appropriate, like 1 penny vs. 2 pennies. Ex: If the input is: 0 or less, the output is: no change Ex: If the input is: 45 the output is: 1 quarter 2 dimes Your program must define and call the following function.void ExactChange(double userTotal, int& numDollars, int& numQuarters, int& numDimes, int& numNickels, int& numPennies) *C++This is for c++. I need a program that asks whether any members of your party are vegetarian, vegan, or gluten-free, then displays only the restaurants that you may take the group to.
- xyz is a telecom company,there are three recharge plans as listed below- 10$ - 50 Gb for 28 days 20$ - 150 Gb for 56 days 40$ - 350 Gb for 84 days write a program in c++ to ask user to which plans does he wants and display the cost of that recharge plan.Write a complete C++ program that can accept the name, quiz1, quiz2, assignment, test and final exam for 10 students in groupA of MTS3013 course. The overall mark is calculated based on 10% of quizzes mark (average of two quizzes), 15% of assignment mark, 25% of test mark and 50% of final exam mark. Determine an appropriate grade for the mark that has been calculated based on the Table 1. Marks Grade 80 - 100 A 70 - 79 B 50 - 69 CWrite a code using C++ for the given prompt: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be, say, four inches thick. The length of the patio is to be, say, twice the width. Write a program that prompts the user to specify: The amount of premixed concrete (in cubic yards) ordered The thickness of the patio (in inches) The ratio of length and width Ex. If the ratio is 3 to 2, have the program accept a 3 then a 2. Then compute the ratio using these numbers The program then outputs: The length and width of the patio (in feet). (1 cubic yard = 27 cubic feet.) To calculate the width, you will need to: Find the total cubic feet of the concrete Divide the total cubic feet of concrete by the result of the length to width ratio multiplied by the thickness of the patio, over 12 (inches in a foot) Square root the answer To find the square root of a decimal number, include the header file cmath using the statement #include <cmath>,…