Marketing person contains the values { total product sales, commission rates, person base salary}. Write a pseudo code for using that values of makerting person.
Q: Assume the following code has been written: amount = 5 item = 'hotdogs' total = 7.0 Wriite a line…
A: Use the below line to format "{:.2f}".format(total)
Q: Create a struct called emp that captures the following First name Last name Employee number (must…
A: //programming language is not specified so using c++ to answer the question Syntax of structure :…
Q: - CREATE - SHIPPING : int = 1 - DELIVERED : int = 2 - PAID : int = 3 1 Customer - String YAddress :…
A: Purchase product is a relation based attribute between customer and order. Make payment is a…
Q: int main ()( int number; cin >> number; FindNumber (number, 0, 8); return 0;
A: 1)number =7 highvalue=8 lowvalue=0 midvalue=4 now, midvalue<number so, first z will print then,
Q: ***** Price Markup Calculator ********* Enter Item Amount: 224.47 Markup At: 10% 20% 30% 40% 50%…
A: PROGRAM INTRODUCTION: Start the while loop for the initial step during entering the value of the…
Q: Structures: Complete the following program to print all medicines whose quantity are already below…
A: Here is your answer starts in this question we have to complete the following program. Below is…
Q: Double any element's value that is less than minValue. Ex: If minValue = 10, then dataPoints = {2,…
A: Completing the given C++ program so, that it can follow the given rubrics:The array is already…
Q: ** Price Markup Calculator ********* Enter Item Amount: 224.47 Markup At: 10% 20% 30% 40% 50% 246.92…
A: PROGRAM INTRODUCTION: Start the while loop to validate the data entry until the user enters the…
Q: A struct employeeType has been declared with two elements: name and salary. a. Declare an…
A: struct is a data structure used to store the elements of different data types as a collection. These…
Q: The Barking Lot is a dog day care center. Write a program that accepts data for an ID number of the…
A: Program description The program has following parts: -Prompt and accept user input -compute feel…
Q: #include #include struct batsman { char name[20]: p: char* foo(struct batsman *t) strepy(t->name,…
A: Introduction : Given , Code Segment we have to explain its output.
Q: Bill Discount Write a Python program that calculate the bill discount based on the customer type…
A: Python Program for above : #get the bill Bill = float(input("Enter your bill: ")) customer =…
Q: Salesforce Programming Problem(Use Salesforce Developer Console to solve the problem) In this…
A: As per the given problem statement we are given a task to develop a SOQL query to fetch the data of…
Q: #include #include struct batsman char name[20]; }p: char* foo(struct batsman *t) strcpy(t->name,…
A: struct batsman{ char name[20];}p; is a structure which stores string and structure variable…
Q: #include #include #include using namespace std; // structure struct Hat { string brand; string…
A: Actually, program is an executable software that runs on a computer.
Q: #include #include struct batsman char name[20]; p; char* foo(struct batsman *t) strepy(t->name,…
A: Here first of all we have a structure named batsman with one attribute as a name. Now in the main…
Q: Person - id: int - fName : String - LastName: String - phoneNum : String + getld() : int + getfName(…
A: Person.java
Q: Employee i empName : Name hireDate : Date + Employee (): void • Employee (Name aName, Date abate) i…
A: In this question, first, we will draw the UML class diagram. Then convert the UML class diagram to…
Q: Python: On-line Grocery Shopping Use grocery py in Canvas to start your program. It contains two…
A: Python used to answer this question
Q: max = value2; %3D int main () int max = 03; %3D maxValue (1, 2, тах); cout << "max is " << max <<…
A:
Q: Attributes item_name (string) item price (int) item_quantity (int) Defoult constructor Initializes…
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful.…
Q: 6. sum_highest_five This function takes a list of numbers, finds the five largest numbers in the…
A: def sum_highest_five(l): #takes list of numbers if len(l)<5:#if list has fewer than 5…
Q: Total Amount per Blood Type A: B: p500 O: AB: p703.5 Buy another blood? N Total Amount: p1203.5…
A: Answer: I have answered in C++ because here not specified any programming language. our guide is…
Q: If their mark sheets are Fifty students in a class appeared in their final examination. The division…
A:
Q: void printTicket ( Booking Bookings[], int ID_num, int n ) { int id = -1; string destination ; if (…
A: The answer is given below.
Q: Encapsulation variables such as length, breadth, and height are _____________ .
A: Answer:
Q: struct courseType struct studentType struct nameType { string first; string last; }; { string name;…
A: a. student.name.last = "Anderson"; The statement student.name.last = "Anderson"; is valid because:…
Q: Write a statement to print the data members of InventoryTag. End with newline. Ex: if itemID is 314…
A:
Q: allow data to be continuously input for more customer's information such as customer's name and…
A: I have re-written the code with the input of the customer's name and phone number.…
Q: I have a computer since project c++ and we choose an airport system so can u explain this part of…
A: Solution: C++ Program Explanation: /** * This printTicket() function accept array of class…
Q: struct courseType { string name; struct nameType { string first; string last; }; struct studentType…
A: Student.name.last=”Anderson”; Valid classList[1].name=student; Invalid student.name=…
Q: Given the following struct definitions, what is the correct way to print the month a movie was…
A: Nested structure is structure within structure. One structure can be declared inside other structure…
Q: secendterm = thirdTerm Next Trace the values of the following variables throughout the loop:…
A: Here the loop will run from i=3 to number ie 7 and it will increment in steps of 1.
Q: Question 10 The default data type for a sequence object is O a Decimal Char b. Varchar Oc. Int
A: The default data type for a sequence object is given below
Q: What will the following code display?numbers = [10] * 5print(numbers)
A: What will the following code display?numbers = [10] * 5print(numbers) Answer :- [10 10 10 10 10…
Q: Assign numMatches with the number of elements in userValues that equal mato If userValues is (2, 1,…
A: A complete program is as follows, import java.util.Scanner; public class FindMatchValue { public…
Q: What does the following code display?values = [2] * 5print(values)
A: values = [2] * 5print(values) Here the number inside [] square bracket means we are creating a…
Q: int id; float weight; int unit_price; milk; truct store int shelf; product element;
A: The first and second are invalid. myself.milk.id mushelf.shelf =========== The third and fourth…
Q: struct Book { int bookNo; char bookName [100]: struct Book next;
A: The code below is to create a queue of books using linked lists Queue and Book and using functions…
Q: { int row = 5, column ; while ( row -- > 0 ) { column = 4 ; if ( row % 2 == 0 ) cout 0) I" * " cout…
A: output along with an explanation is given below
Q: 6. Tailacess.log will returns
A: Generally Tailacess is used to access the file in the path. Tailacess has many methods to access the…
Q: Design a data structure to store the class score and exam score of students (using their index…
A: Since language is not mentioned so I have used Python 3. CODE : print("Enter the no. of students…
Q: Declare an enumerated data type named Direction with enumerators for North, South, East, and West.
A: Enumerators: This is a programmer defined data type and the elements contained in it are also…
Q: The BMI is calculated as: BMI = weight in kg / height in meter X height in meter. Table 4 shows the…
A: Algorithm to write and read the studentList.txt file: Step1: Read the user input for the number of…
Q: Given the following struct definitions, what is the correct way to print the month a movie was…
A: The structure data type: The structure is a user-defined data type that can contain the collection…
Q: struct namerec{ char last[15]; char first[15]; char middle[15]; struct payrecord{ int id; struct…
A: Step 1 A struct is a user defined data type that contains variables of multiple data types. It is…
Q: pop_most_recent_value doesn't work correctly for Make sure pop_most_recent_value() works correctly…
A: We need to write Python code for the given scenario.
Q: Given the following struct: typedef struct { char surname[MAX], name[MAX]; int id; float avg; //…
A: Hi, i have implemented the mostFrequent(student_t s[],int n) and printStudents(student_t s[],int…
Marketing person contains the values { total product sales, commission rates, person base salary}.
Write a pseudo code for using that values of makerting person.
Step by step
Solved in 3 steps
- Salesforce Programming Problem(Use Salesforce Developer Console to solve the problem) In this assignment you have to create a query that will fetch the data of contact object where the phone number is not null and the contact's name should be in ascending order.def division_calculator(a, b): ''' Question 4 You are asked to write a small division calculator, where you are taking 'a' as dividend and 'b' as the divider. You will need to return both the quotient and the remainder. Your returned result should be the: "a is divided by b, with the quotient equals 'quotient' and remainder equals 'remainder'" Note: You must use f-string to do this question. Args: a (int), b (int) Returns: string >>> division_calculator(3, 1) "3 is divided by 1, with the quotient equals 3 and remainder equals 0." ''' # print(division_calculator(9, 3))Cargo Container Report. You will be producing a program which will allow the user to generate the container report on the following page in Container Number order or Ship Name order. The program will also the user to lookup the data for any given Container by number. The % cargo weight is the percentage of the cargo of the gross weight (cargo weight/gross weight), % total is the percentage of the cargo for that container of the total amount of cargo unloaded (cargo weight for the container / total cargo unloaded. Hint: you are expected to use methods for your calculations. The accompanying file has the data for the containers unloaded today. The data includes container number int ship name. String tare weight of the container (empty weight) int the gross weight (container plus the cargo). Int You will need to computer the cargo weight as the gross weight minus the tare weight. If you have issues reading the data with the String, you may remove the String. However, you will lose points.…
- L et D= { s, d, b}, E= { c, k}, G= { a, k }, U={a, b, c, d, k, s} DUE=Create a struct called emp that captures the following First name Last name Employee number (must be an int) Annual salarySum of two squares def sum_of_two_squares(n): Some positive integers can be expressed as a sum of two squares of some positive integers greater than zero. For example, 74 = 49 + 25 = 72 + 52. This function should find and return a tuple of two positive integers whose squares together add up to n, or return None if the parameter n cannot be broken into a sum of two squares. To facilitate the automated testing, the returned tuple must present the larger of its two numbers first. Furthermore, if some integer can be broken down to a sum of squares in several ways, return the breakdown that maximizes the larger number. For example, the number 85 allows two such representations 72 + 62 and 92 + 22 , of which this function must return (9, 2). The technique of two approaching indices that start from the beginning and end of a sequence, respectively, and approach each other until they meet somewhere, used in the function two_summers in one of our class examples, is directly applicable to this…
- Sum of two squares def sum_of_two_squares(n): Some positive integers can be expressed as a sum of two squares of some positive integers greater than zero. For example, 74 = 49 + 25 = 72 + 52. This function should find and return a tuple of two positive integers whose squares together add up to n, or return None if the parameter n cannot be broken into a sum of two squares.To facilitate the automated testing, the returned tuple must present the larger of its two numbers first. Furthermore, if some integer can be broken down to a sum of squares in several ways, return the breakdown that maximizes the larger number. For example, the number 85 allows two such representations 72 + 62 and 92 + 22 , of which this function must return (9, 2).The technique of two approaching indices that start from the beginning and end of a sequence, respectively, and approach each other until they meet somewhere, used in the function two_summers in one of our class examples, is directly applicable to this…user_tickets = int(input())if user_tickets< 5:num_tickets=1else:num_tickets= user_ticketsprint('Value of num_tickets:', num_tickets)Usage: mortgagepmt [-s] -r rate [-d downpayment] price In this assignment, you are asked to do a mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program. You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate the number of monthly payments you’ll make. Fourth, raise the result of 1 plus the monthly rate to the negative power of the number of monthly payments you’ll make. Fifth, subtract that result from 1. Sixth, divide the monthly rate by the result. Last, multiply the result by the amount you want to borrow.…
- Employee=(ID, name, position, officeN, phoneN, age)// assume the name is unique.Committee =( title, meetingDate, startTime, endTime, location)// You may use <,>,=,!=between dates and times.Membership= ( ID, title, task) // task = ‘member ‘or ‘chair’ For every employee, list the ID, name and number of committees he/she is serving onas member or chair.Q 1: A company named ABC hired three employees in different years; each employee gets an increment of 5000 yearly. Also each employee gets bonus amount of 10k for each project he has done yearly. The programs should have following attributes that should be entered by the user according to their need in specific parts: Employee name Served years No of projects done per year Initial salary Declare a structure for an employee, mention the attributes (name, no of years served, salary), declare an array of structures for no of employees. Then declare three functions, one should return a structure by value with no argument passed which will take all attributes from the user and in second pass the structure by reference as an argument to a function and it should display all the attributes of an employees and then in third pass the structure by value as an argument to a function and it should display current salary of employees.write code that assigns 1 to isAMember if the value of memberID can be found in current Members, and that assigns 0 to isAMemeber otherwise. Use only k, current Memebers, nMembers and isAMember. In C programming language