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: According to their importance, which of the following software development factors are the most…
A: Introduction: A software developer uses computer programming to produce software. They build…
Q: Compare the many approaches to software testing. Testing software influences the quality of…
A: Considering Compare software-testing methods. Software testing affects quality. How will you test…
Q: Do connections for floppy drives have pins? 3.5% of high density floppy discs have the ability to…
A: 3.5% of High Density : A high-density diskette, or HD disc, is a 3.5" diskette with a maximum data…
Q: 2.1 LAB: Divide by x Write a program using integers userNum and x as input, and output userNum…
A: Explanation: The program will take a userNumb and a xn variable from client. Utilize a circle for 3…
Q: Are SSL and TLS equivalent? Exists a difference between the two?
A: Answer is
Q: Analysis Phase for Project #3.doc NOTE: Execute Project#3 Test Case #6 (see project #3)…
A: #include<iostream> #include<vector> using namespace std; int main(){…
Q: Are SSL and TLS equivalent? Exists a difference between the two?
A: The answer to the question is given below:
Q: Abstract data types are not specifically specified types of data.
A: ADT: Abstract Data Type While a data structure is used to represent an abstract data type, an…
Q: Which advantages do interfaces provide? Is it not more convenient to construct objects that belong…
A: An Interface is defined as an abstract type used to specify the behavior of a class.
Q: What is the most important quality a software test engineer must have?
A: Software testing refers to evaluating and verifying that a piece of software works as designed.…
Q: The function of a multidimensional array is uncertain.
A: An array is a data structure that contains the elements of the same type. Properties of array: It…
Q: We choose the event delegation approach due to its GUI programming component. Do you have any…
A: GUI Programming Component: Classes for GUI components like Button, Text Field, and Label. classes…
Q: 730 857 443 60 339 500 910 961 824 571 835 196 152 170 78 927 537 857 690 282 955 962 244 144 287…
A: I have given java code below
Q: What does the term 'phishing' signify to you?
A: User education and phishing awareness: Are two of the best lines of protection against malicious…
Q: Cloud computing is essential to the development of e-future commerce.
A: The answer is given in the below step
Q: EMPLOYEE INFORMATION SAMPLE: NAME NAMIE NOTE: GENDER FEMALE ● AGE 26 Fill up the table above with…
A: The question is to write C++ code for the given problem.
Q: We choose the event delegation approach due to its GUI programming component. Am I in a position to…
A: Definition: The event delegation paradigm specifies uniform and standardised procedures for creating…
Q: The HTML, CSS, and JavaScript programming languages were emphasized strongly over the duration of…
A: Define HTML (hyper text markup language):- It is a markup language . that…
Q: Provide a concise explanation for the C++ standard library word "iterator."
A: Introduction: uses of the 'iterator' object in C++, which are detailed below. An iterator is any…
Q: What will be the output of the following program? import java.util.Arrays; public class ArrayTest […
A: Below I have provided a JAVA program for the given question. Also, I have attached a screenshot of…
Q: How many steps are involved in the creation of a website? Explain in your own words the relevance of…
A: Web design: A Web development process describes the processes needed to complete a conventional Web…
Q: The latencies for each stage in a single cycle processor is given as IF ID ALU MEM WB 20ns 25ns 40ns…
A: In order to calculate the speedup, we must contrast the latency of instructions in the pipelined…
Q: Our program's resilience may be assessed in a number of ways.
A: Programming resilience: Software steadfastness is estimated utilizing dependability measurements.…
Q: Using object-oriented programming, why is it required to expend more effort and code to avoid…
A: Coupling establishes the degree to which different parts of an application depend on one another.
Q: Our program's resilience may be assessed in a number of ways.
A: Reliability metrics are used to quantify a software product's dependability. The selection of a…
Q: In the last several months, we've learned a great deal about web design and development
A: According to the information given:- We have to define web design and development.
Q: SQL Server supports the NVARCHAR, NVARCHAR, and NVARCHAR character data types.
A: Character information is stored in a variable-length field using the NVARCHAR data type. Data can be…
Q: 1. Here is part of a program that begins by having the user input the x and y dimensions of a…
A: C++ language: C++ is a programming language that follows the OOPS concept. OOPS is object-oriented…
Q: It is possible to present an example of a "Smart Meter" deployment and operational perspective,…
A: Smart Meter: An IoT system's deployment and operating perspectivation is propelled by innovative…
Q: Q1: Output a welcome message to the console. The message should be contained inside of a string…
A: In this question we need to write a program to output a welcome message to the console. The message…
Q: Given the following notations, evaluate given Prefix notation : *-50 -* 2 +2 3 * 5 4 2
A: Introduction Prefix: If the operator appears in an expression before the operands, it is referred to…
Q: In a uniprocessor system multiprogramming increases processor efficiency by: Increasing processor…
A: Because multiprogramming divides up several tasks so that the CPU always has one to complete, it…
Q: Copying and copying data across tables needs a certain command
A: INSERT instruction: The INSERT INTO command is used for the purpose of copying data from one table…
Q: How dissimilar are the two methods to responsive web design? What are the benefits and drawbacks of…
A: The answer to the question is given below:
Q: How many steps comprise the web design process? Each phase's importance should be addressed in…
A: Introduction The process for web development is a list of procedures that must be followed in order…
Q: You will use sequential, selection and repetition programming statements. You will define one…
A: Here we have given appropriate code in python. You can find the solution in step 2.
Q: What characteristics of arrays make them so effective?
A: The answer to the question is given below:
Q: Trace the program below to determine what the value of each variable will be at the end after all…
A: p=0, d=0, q=7, a=0, s=4, j=1
Q: What are arrays' advantages? The maximum number of dimensions that may be included in an array is.…
A: Simple variable One piece of data makes up a basic variable. It only has one value. A simple…
Q: What are the benefits of using a Java layout manager to develop your application?
A: Note: Due to company policies I am compelled to solve only one question and that is the first…
Q: Describe how protocol standardisation in the Internet of Things works (IoT). The protocol stacks of…
A: Introduction: Standardization is a major IoT challenge. Without global standards, the complexity of…
Q: The ideas of composition and aggregate are distinct. What is the distinction?
A: Please find the solution in next step
Q: Building a successful conversation differs from designing a user interface.
A: Good interface design is about creating a smooth and sustainable relationship between user and…
Q: What are the benefits of using a Java layout manager to develop your application? There are several…
A: Answer is in next step.
Q: The "-t" flag to "ls" sorts the listing by modification time. Write a BASH line which will write the…
A: ls -t sorts the listing by modification time. It prints the listing from the latest to the oldest.…
Q: Q1 Mysterious Function What's the worst case runtime of the following function? Please remember to…
A: According to the information given:- WE have to define the worst case runtime of the following…
Q: Here is part of a program that begins by having the user input the x and y dimensions of a rectangle…
A: Description: Get the user inputs for the dimensions and store them in x and y. Print the dimensions…
Q: Do connections for floppy drives have pins? 3.5% of high density floppy discs have the ability to…
A: To be decided: A floppy drive connector's number of pins How much space can a 3.5% high density…
Q: In relation to C++, the word "inheritance" may be unclear. What are the various inheritance types?
A: Inheritance is one in which a new class is created that inherits the properties of the already exist…
Q: Cloud computing is essential to the development of e-future commerce.
A: Cloud computing is the conveyance of computing services i.e. including servers, storage, databases,…
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.
Step by step
Solved in 3 steps with 1 images
- 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 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 program c++ to enter any number of the year and month, and then determine whother the year is a leap year or not and the number of days for that month. Note: 1. of month 1, 3, 5, 7, 8, 10, 12 31 days. 2. of month 4, 6, 9, 11-30 days.3. of month 2 = 28 days (not a leap year), 2 = 29 (in a leap year)
- Write a C program which uses a switch statement to input an item type (E, P, H, N or O) followed by the amount of the purchase. Apply the discount as mentioned above and determine the final cost of the item. If an incorrect item type is entered, then output “INVALID ITEM TYPE. In this case, do not print any final cost:Write a c++ program where mikayla jylana deposit her money in time deposit at a bank of Php 25000. the bank gave her 12 percent for a term of 30 days. There is a 10 percent withholding tax to be deducted from the interest. (A) Find his withholding tax. (B) Find the net interest she will receive. Use the following formula: I=Prt, where I-Interest, P=Principal value, r=rate of interest and t=timeWe want to obtain the average of g groups that are in the same school year; being that each group can have n students that each student can take m subjects and that in all subjects three marks are averaged to obtain the average of the subject. Write a program in c++ to display the average of the groups, the average of each group and the average of each student
- A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a c++ program that calculates a theater's gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. Assume the price of an adult ticket is $10.00, the price of a child's ticket is $6.00 and the theater keeps 20% of the gross box office profit.Write a C++ program to compute the surface-area of a cylinder, given the radius (R) and the height (H). The program must ask the user to enter R and H. It then prints the surface-area with a proper message in the main program. Define a function to compute the surface-area and let main() call it. Clearly show the function prototype. This function takes the radius R and height H as parameters and returns the surface area. The formula for computing the surface-area of a cylinder is 2πR(H + R), where ? = 3.141 Write a function called isValidLength that takes an integer number and returns true if the number has a valid length and false otherwise. Valid- length is determined by finding number length. If the length is at least 3 digits and at most 5 digits, then the number has a valid length. For example, the number 324 is valid because it's 3 digits long and the number 22 is invalid because it’s 2 digits long. Write a function called isValidDigits that takes an integer…Write a C program for problem: The amount of miscellaneous fees a student pays during enrollment is determined by his nationality, year level and sex. A flat fee of P200 is paid by all students. Male seniors pay an additional P100 for CMT. Female freshmen and sophomores pay an additional P75 for girl scouting. Foreigners pay an additional P200 as alien fees. Make a program that would input NATIONALITY (1 for Filipino, 2 for Foreigner), SEX (1 for male, 2 for female) and YEAR level (from 1-4) and output miscellaneous FEES.
- Write 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>,…An Auto Insurance Program Example - Write a C++ program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insurance Note: Use switch cases when you check the total number of accidents.Write a C# program to read student name, id and score and then calculate grade based on score. If: Score>85 then HD Score> 75 then D Score> 65 then CR Score> 50 then Pass Score<50 then fail