A program calculates the total salary of an employee with the condition that if the working hours are less than or equal to 48, then give normal salary. The hours over 48 on normal working days are calculated at the rate of 1.25 of the salary. However, on holidays or sundays, the hours are calculated at the rate of 2.00 times of the salary. Design test cases using decision table testing.
Q: (a) A student is given 3 tests, each marked out of 100. The student passes if his average mark is…
A: #include <stdio.h> int main(){ //printf("Hello World"); int std[3],i,total=0;…
Q: Write a program which prompts the user for the number of rooms to be cleaned and the sizes of the…
A: Input the number of rooms Input dimensions of each room Find the area of each room If Area is more…
Q: Write a program that prompts the user to enter the number of study hours of a student and the…
A: Algorithm Start Accept h, n Accept h from user Accept n from user If(n>=4 and h<26), go to…
Q: Develop a program for current electrical billing system based on the given requirements using the…
A: 1. Flowchart for generating electricity bill
Q: An electronic shop wants you to write a program to take orders from the clients and print the…
A: while changing from input type to number to string, make sure you clean the unwanted spaces in the…
Q: A salesman is paid a commission on the following basis: Sales Value (SV) Commission up to P10,000.00…
A: Steps followed: Declare sales value(sv) and commission(comm) variables. Read sales value (sv) from…
Q: An electronic shop wants you to write a program to take orders from the clients and print the…
A: function main: Start read item read price read quantity read delivery type if delivery is fast then…
Q: Write a program that determine the bonus amount using a nested if-else statements . For hourly…
A: As no programming language is mentioned, it is solved using basic C++
Q: An employee’s weekly working hours is 40. If an employee exceeds 40 hours, it is considered…
A: Introduction of the Program: The C++ program takes to input the number of hours worked by employee…
Q: C++ program that will allow the user to input the First Name, Last name, Middle Initial, and grade…
A: The asked C++ program has been provided by making use of if-else structured statements.
Q: If you know that the student's name is represented by Nam$ and M represents the student's grade in a…
A: below is the java code for above problem.
Q: The short-term, 0-24 hours, parking fee, F, at an international airport is given by the following…
A: Program Planning: Include necessary header files. Prompt the user to enter the number of hours a…
Q: b) Write a full program by apply the following decision table using nested if statement. Assume that…
A: Sample Response: //C++ programming language#include <iostream>using namespace std;//main…
Q: What answers do you get for below queries for given program. Program : vegetarian(jose).…
A: As i have read Bartleby guidlines i can provide answer of only 1 part of questions in case of…
Q: write a program in c++ Assume eight employees working at Ziomind Sdn Bhd (Ismail, Atikah, Ravi,…
A: C++ code: #include <iostream> #include<iomanip> using namespace std; string names[8];…
Q: Write a program that will determine the salary of commission based employees. For each employee, the…
A: I have provided solution in step 2.
Q: If x is 2, it will be 3 after the evaluation of the following expression: (x >= 0) && (x-- > 1).
A: 1) We have expression (x>=0)&&(x-- >1) 2) Above expression checks for two condition…
Q: Write C Program that receive number of students in a Lecture, and decide how much form of exam…
A: logic:- read number of students read width and height of lecture hall. define sizeLecture(double…
Q: Q1/Write C++ program to read a score of student and print the estimation to refer it. e.g: 100 - 90…
A: Write a c++ program to give grade based on marks.
Q: A company wants a program that will calculate the weekly paycheck for an employee based on how many…
A: #note: since the programming language is not specified, we are providing answer in python #reading…
Q: Write a program that determine the bonus amount using a nested if-else statements . For hourly…
A: Start Input type If employee is hourly based Input working hours If hours more than 40, bonus is…
Q: program accepts the height of a person in centimeter and categorise the person according to their…
A: Here in this question we have given a incomplete code segment and we have asked to find the correct…
Q: A student is given 3 tests, each marked out of 100. The student passes if his average mark is…
A: According to the Question below the Complete Program: Program Output:
Q: Write a program that asks the user for the number of credits earned so far. If the number of credits…
A: C++ code for above : #include <iostream> using namespace std; int main() { //get…
Q: Write a menu driven program for student managements system, in which you have to take input…
A: CODE: #include<bits/stdc++.h> using namespace std; int main() { string name;int…
Q: This program accepts the height of a person in centimeter and categorise the person according * .to…
A: MCQ question
Q: Write and test a well commented program which helps an insurance broker determine insurance premiums…
A: Actually, program is an executable software that runs on a computer.
Q: ution b) eager substitution {with {z {+ 2 3}}
A: Evaluate the following program according to a) lazy substitution b) eager substitution {with {z {+…
Q: Write a program that uses an if-elif-else statement to determine a traveling schedule. 1) request…
A: 'date'print ("Enter the your_date between(1-31).")date = int(input())if (date<1): print…
Q: A person X wants to distribute the property share to his children and the wife. Write a C+ program…
A: We need to take input from a user of the below things - total property worth in PKR number of sons…
Q: The following control structures have one outcome, except ... Select one: a. char symbol = 'A'…
A: The given codes belong to java. The code will be reproduced in below sections as screen shots for…
Q: Get user input as a boolean and store it in the variable tallEnough. Also, get user input as a…
A: Attached Source Code in Java:import java.util.*; public class RollerCoaster { public static…
Q: Write a program that can accept two inputs - a food type and a price, and determines if the food is…
A: Python used to answer this question
Q: Given four positive integers a, b, c, and d, compute the sum of those among them that are odd.…
A: A Java program that computes the sum of those among the given integers that are odd without using…
Q: A business law class of 25 students takes a midterm exam that has 100 true- or-false questions. The…
A: We need four arrays in this problem. The array KOUNT stores the number of times a grade is achieved…
Q: I need to write a program for a Lion Hunt. The program should calculate the number of hours it will…
A:
Q: Convert the following FOL statement to English 3 x student(x) and (not learn(x, German) V not…
A: ∃ x student(x) : There exists some x who is a student not learn (x , German) : x does not learn…
Q: 1. Program the following. Make the number guessing program with switch case. Make an alphabet…
A: NOTE: According to the guidelines, only the first program is implemented. Program description: guess…
Q: Write a Q. BASIC program that reads and outputs the weather status average using Nested IF…
A: I have implemented the following requirements with comments for better understanding of the code. I…
Q: Write a program that given an amount of change less than $1.00 will print out exactly how many…
A: 1) Since you have not specified programing language, I have written program in python 2) Below is…
Q: The short-term, 0-24 hours, parking fee, F, at an international airport is given by the following…
A: Hey! Since you have not specified the programming language you need the answer in, we are solving…
Q: A person X wants to distribute the property share to his children and the wife. Write a C++ program…
A: #include <iostream>using namespace std; int main() { float…
Q: Write the program to get # of units as the user input and output the bonus amount : In a…
A: #include <iostream> using namespace std; int main(){ int units,bonus; cout <<…
Q: In python, an important feature of an if statement with elif clauses is that once a condition…
A: if-elif statements are known as conditional statements
Q: Write a Java program using If-Else If That will allow the user to input the age of student and will…
A: function main: Start declare age, commission read age if age >= 100 then commission = (age * 2)…
Q: Write a C-language program using ladderized if-else statements, that will compute for the discount…
A: Control structures are used to determine the path of execution and control the execution of…
Q: Write the statement in words if: p: Firemen work hard. q: Firemen wear red suspenders. 1) ~q 2) p…
A: Tilde sign is used for negation which represents negation of a sentence. ∧ logic combines two or…
Q: Implement the following decision table using a nested if statement and multiple alternatives if…
A: Given:
Q: Write a program that can accept two inputs - a food type and a price, and determines if the food is…
A: GIVEN: Write a program that can accept two inputs - a food type and a price, and determines if the…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
- Your English professor has announced the following grading policy: For each essay, the highest score in the class will be entered as a 100%; all other scores will be entered as the percent of that top score. For example, if the highest essay is a 50 out of 100, it will be counted as a perfect paper, and essays with a score of 40 out of 100 will be entered as an 80%. The final grade for the course will be determined using these adjusted percentages, with 90% and above an A, 80% and above a B, 70% and above a C and below 70% not passing. The students all get together and decide not to work hard on the next paper because if nobody does well, they will all do okay. This plan results in a Nash Equilibrium. A.) is a solid commitment device, and thus stable. B.) will be unstable because there is an incentive to break the agreement. C.) will be stable because there are no incentives to deviate. D.) requires everyone to follow their…Section: FactThyroid function is measured using a factor called TSH, which stands for thyroid-stimulatinghormone. A TSH test is a blood test that measures this hormone. TSH normal values are 0.5 to 5.0mIU/L. If TSH is over 5.0 thyroid is underactive. On the other hand, if TSH is less than 0.5 thyroid isoveractive.Design the test case for boundary value analysis of the following consider a program that prompts the user to input 3 number (say x y z) and the data type for input parameters ensures that You must take values of x y z as any 3 non zero numbers from your Student-ID. The program should then output the numbers in ascending ordermy student id is 64174
- Question 2:Design a 16 people voting system where 0 means ‘No’ and 1 means ‘Yes’. It should show number of ‘Yes’ votes and then number of ‘No’ votes.Design the test case for boundary value analysis of the following consider a program that prompts the user to input 3 number (say x y z) and the data type for input parameters ensures that You must take values of x y z as any 3 non zero numbers from your Student-ID = 64174. The program should then output the numbers in ascending order.Context: Measuring Air Quality Levels of various air borne pollutants such as Nitrogen Monoxide (NO), Nitrogen Dioxide (NO2) and particulate matter (also called particle pollution) are all major contributors to the measure of overall air quality. For instance, NO2 is measured using micrograms in each cubic metre of air (㎍/m3). A microgram (㎍) is one millionth of a gram. A concentration of 1 ㎍/m3 means that one cubic metre of air contains one microgram of pollutant. To protect our health, the UK Government sets two air quality objectives for NO2 in their Air Quality Strategy The hourly objective, which is the concentration of NO2 in the air, averaged over a period of one hour. The annual objective, which is the concentration of NO2 in the air, averaged over a period of a year. The following table shows the colour encoding and the levels for Objective 1 above, the mean hourly ratio, adopted in the UK. Index 1 2 3 4 5 6 7 8 9 10 Band Low Low Low Moderate Moderate Moderate High…
- is a popular type of bar chart that illustrates a project schedule. Gantt chart Calendar chart Program chart None of the above In final examination, students can get b03000 marks. A student has to get 50% in order to pass the examination. If below than that he will be given C grade, if he gets 2000-2500 will have A grade. Using boundary velu B grade and above that he what will be the values for testing if we are testing for C grade? 1500, 1501 1999 2000 1499, 1500 1999 2000 1500, 1501 2000 2001 1499, 1500, 2000 2001 defines safety in terms of hazards Your answe Advantages of avolidance approach in safety engineering include cost and performance? True False Clear solectionInterest on a credit card’s unpaid balance is calculated using the average daily balance. Suppose that netBalance is the balance shown in the bill, payment is the payment made, d1 is the number of days in the billing cycle, and d2 is the number of days payment is made before billing cycle. Then, the average daily balance is: averageDailyBalance =netBalance x d1-payment x d2d1 If the interest rate per month is, say, 0.0152, then the interest on the unpaid balance is: Interest= averageDailyBalance * 0.0152 Write a program using c++ compiler that accepts as inputnetBalance, payment, d1,d2, and interest rate per month. The program outputs the interest. Format your output to two decimal places.Write collection of production rules to calculate electricity bill as per following rules: •If the units consumed are less than and equal to 300, then the cost is Rs 10/- per unit. •If the units consumed are more than 300 and less than and equal to 500, then the cost is Rs 12/- per unit. •If the units consumed are more than 500 and less than 1000, then the cost is Rs 15/- per unit and surcharge of 15% of bill is added. •If the units consumed are more than 1000, then the cost is Rs 15/- per unit and surcharge of 25% of bill is added. Trace the production rules for the sample execution of the system given below;Write collection of production rules to calculate electricity bill as per following rules: •If the units consumed are less than and equal to 300, then the cost is Rs 10/- per unit. •If the units consumed are more than 300 and less than and equal to 500, then the cost is Rs 12/- per unit. •If the units consumed are more than 500 and less than 1000, then the cost is Rs 15/- per unit…
- Scenario:One of the renowned supermarket in Dhaka City, “Shwapno” is celebrating their firstanniversary of opening. They have become very popular among people in a short amount oftime. As a method of celebration they have designed three interesting and exciting offer for theircustomers for that day only!! The offers are described as follows:Offer 1: This offer says, if the name of any customer starts with “S” OR ends with “o”, theywill receive a gift which contains 1 kg miniket rice and 1 litre soyabean oil. This offer isdedicated from their name, Shwapno.Offer 2: This offer says, if one customer have taken products and his/her total product weightis less than 1.50 kg, then Shwapno will give all the products to the customer for free. If the totalweight is 1.50 kg or more, the customer will have to pay the full amount.Offer 3: This offer says, if a customer is aged less than 15, then he/she will receive chocolates.If aged 15 or more, then no gifts for the customer.Implementation:Create…Python Programming Problem: The first line consist a number X i.e., the number of test cases. The first line consists three space-separated integers N, Q1, and Q1. Then Q1 lines follow, each containing a description of a road proposed0. Each of these lines contains three space-separated integers p, q, and r, where p and q denote the end points of the road and r denotes the associated cost. Then Q1 lines follow, each containing a description of a road proposed by Brian's company in the same format. Output a single line for each test case. If it is impossible to choose a subset of the roads in such a way that for each pair of cities, there is exactly one path of roads connecting them, output a single line containing "No way" for that test case. Otherwise, output a single line containing two space-separated integers: the maximum profit Brian can gain and the minimum total cost of the chosen roads that yields the maximum profit. Input: 1 3 1 1 0 1 1 0 1 3 Output: No wayC++ Programming Using Big O notation, indicate the time requirement of each of the following tasks in the worst case. Given the associated assumptions. After arriving at a party, you shake hands with each person there. Assume: where n is the number of people at the party under the assumptions that there is a fixed maximum time between hand shakes, and there is a fixed maximum time for a handshake. Each person in a room shakes hands with everyone else in the room. Assume: where n is the number of people at the party under the assumptions that there is a fixed maximum time between hand shakes, and there is a fixed maximum time for a handshake. You climb a flight of stairs. Assume: where n is the number of steps under the assumptions that you never take a backward step, and there is a fixed maximum time between steps. You slide down the banister. Assume: where n is the height of the banister under the assumptions that you never slow down and you reach a limiting speed. After…