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
- Create a struct called emp that captures the following First name Last name Employee number (must be an int) Annual salaryWrite a statement to print the data members of InventoryTag. End with newline. Ex: if itemID is 314 and quantityRemaining is 500, print:Inventory ID: 314, Qty: 500 #include <iostream>using namespace std; struct InventoryTag { int itemID; int quantityRemaining;}; int main() { InventoryTag redSweater; cin >> redSweater.itemID; cin >> redSweater.quantityRemaining; /* Your solution goes here */ return 0;}program that prompts the user to enter Temperature value based on the value of the temperature, print the message according to the following table. Temperature message : Temp >=20 and Temp 30 Hot weather You must type your name and student number above the class declaration using a comment
- You have been hired by Detroit Football team as an assistant of the main coach. You need to modify a program to take all the information (jersey number, name, height, accuracy and yearly salary) of each player and find the information of the best player who has best accuracy among them. You should consider the accuracy in a range [0-10]. Take all the information using a struct data type in C++. Like, struct teamDetroit { int jersey_num[10]; string name[10]; double height[10]; float accuracy[10]; int salary[10]; }; Moreover, take only 3 players information and put the player name as a single name (either first_name or last name). Sample input: Team of Detroit: Put the information of: 1 th player Enter the jersey_num: 2 Enter the name of player: Bob Enter the height of player in inch: 72 Accuracy is: 7.6 Enter the salary of player: ($)13000 Put the information of: 2 th player Enter the jersey_num: 4 Enter the name of player: John Enter the height of…What is the data type of v_emp_salary in the following code? DECLAREv_emp_hiredate employees.hire_date%TYPE;v_emp_salary employees.salary%TYPE; a. Number b. Char c. Date d. Varchar2What does the following code display?values = [2] * 5print(values)
- create a prog that will compute the final grade for a certain student and will display the final grade and a remark if it is passed or failedPass = 75 aboveFailed = 74 belowCS= 60% quiz + 40 assignmentPG =[ 2(Pcs) + PE] / 3TMG = [2(Mcs) +ME] /3MG = [2(TMG) + PG] / 3TFG = Fcs +ME + SFEFG = [2(TFG) + MG ] / 3sample output:enter name of student: Cruzenter quiz Score: 75enter assignment Score: 75enter PE Score: 75PG of Cruz is : 75enter Mquiz Score: 75enter Massignment Score: 75enter ME Score: 75MG of Cruz is: 75enter Fquiz Score: 75enter Fassignment Score: 75enter SFE Score: 75enter FE Score: 75MG of Cruz is: 75FG of Cruz is : 75congrats you PASS#include <bits/stdc++.h> using namespace std; struct Employee { string firstName; string lastName; int numOfHours; float hourlyRate; char major[2]; float amount; Employee* next; }; void printRecord(Employee* e) { cout << left << setw(10) << e->lastName << setw(10) << e->firstName << setw(12) << e->numOfHours << setw(12) << e->hourlyRate << setw(10) << e->amount << setw(9) << e->major[0]<< setw(7) << e->major[1]<<endl; } void appendNode(Employee*& head, Employee* newNode) { if (head == nullptr) { head = newNode; } else { Employee* current = head; while (current->next != nullptr) { current = current->next; } current->next = newNode; } } void displayLinkedList(Employee* head) { Employee* current = head; if(current!=nullptr){ cout…The Apgar Medical group keeps a patient file for each doctor in the office. Each record contains the patient's first and last name, home address, and birth year. The records are sorted in ascending birth year order. Write a program so that display a count of the number of patients born each year John Hanson, 23 Elm, 1927Mary Locust, 476 Maple, 1950Susan Monroe, 512 Peachtree, 1957Carol Fortune, 2819 Locust, 1960James Fortune, 2819 Locust, 1963Lawrence Fish, 12 Elm, 1968Janice Weiss, 234 Birch, 1971Henry Garza, 199 Second, 1973Kimberly Swanson, 310 Appletree, 1980Louis Claude, 2716 Third, 1981Jill Fox, 12 Oak, 1985Opal Reynolds, 78 County Line, 1987Francis Dumas, 67 Fourth, 1992Madison Conroy, 23 Fifth, 1996Daniel Moy, 100 Sunset, 1987
- [This is not a graded assignment! ]Please help me modify this code. It is complete and it runs perfectly :], but does not follow the assignment. Main #include <stdio.h>#include "grades.h" int main() { Student students[] = { {"Adams, Tom", {95, 93, 95, 99, 94}, 90, 85, 80, 75}, {"Curry, Jane", {95, 86, 88, 87, 89}, 90, 85, 80, 75}, {"Franklin, John", {70, 50, 65, 50, 57}, 90, 85, 80, 75}, {"George, Pat", {85, 78, 81, 82, 88}, 90, 85, 80, 75}, {"Keene, Mary", {85, 72, 75, 68, 75}, 90, 85, 80, 75}, {"Kraft, Martin", {80, 85, 80, 88, 93}, 90, 85, 80, 75}, {"Martin, James", {75, 65, 65, 52, 55}, 90, 85, 80, 75}, {"Oakley, Ann", {95, 85, 95, 88, 92}, 90, 85, 80, 75}, {"Smith, Luke", {95, 85, 75, 81, 75}, 90, 85, 80, 75}, }; int num_students = sizeof(students) / sizeof(Student); int i; for (i = 0; i < num_students; i++) { Student student = students[i]; double grade =…This is what I currently have : void displaySentence(char * sentence); char * sentence;Double any element's value that is less than minValue. Ex: If minValue = 10, then dataPoints = {2, 12, 9, 20} becomes {4, 12, 18, 20}. #include <iostream>using namespace std; int main() {const int NUM_POINTS = 4;int dataPoints[NUM_POINTS];int minValue;int i; cin >> minValue; for (i = 0; i < NUM_POINTS; ++i) {cin >> dataPoints[i];} /* Your solution goes here */ for (i = 0; i < NUM_POINTS; ++i) {cout << dataPoints[i] << " " ;}cout << endl; return 0;} Please help me with this problem using c++.