[solved] – Question 7875
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 $8.00 per hour; otherwise, if the person works for more than forty hours, but less than or equal to sixty hours, the person receives $320.00 plus $12.15 for each hour worked over 40 hours. Anyone who works for more than sixty hours simply gets a Jackpot salary of $1000.00 The program should request the hours worked as input and display the salary as output.
try it using the nested if structures.
Expert Answer
[solved] – Question 78771
I have to write a code to calculate the discount rate and sales tax for a hardware store. Employees get a 10% discount, contractors 20%, and orders over 800 get 5%. The sales tax rate is 8%, and customers over 90 do not pay sales tax. I have to write this using nesting in javescript
Expert Answer
[solved] – Question 7880
MonthYearOpenHighLowCloseAvg Vol
December200891.3103.684.5585.3533800900
November2008105.93111.7979.1492.6744957200
October2008111.92116.485107.5966902300
September2008172.4173.5100.59113.6643697600
August2008159.9180.45152.91169.5323273800
July2008164.23180.91146.53158.9533096200
June2008188.6189.95164.15167.4434281100
May2008174.96192.24172188.7532650300
April2008146.3180143.61173.9538841700
March2008124.44145.74118143.542313100
February 2008136.24136.59115.44125.0246645400
January2008199.27200.26126.14135.3662108100
In c programming, I have a text file like above but i’m wondering how i can extract only open and close column and store it as two dimension array.
Expert Answer
[solved] – Question 78864
Create a program that computes the tuition of a certain student base on the chosen payment method.
10% discount – CASH
5% discount – 2-installment
10% interest – 3-installment
Expert Answer
[solved] – Question 78885
What is the top element in the stack S.
Stack(S); //create a stack S
Queue(Q); //create a queue Q
Push (S,1); Push(S,2);
Push (S,3); Push(S,4);
Enqueue(Q,5); Enqueue(Q,6);
For (i=1) to 4) {
X=Pop (S);
Enqueue(Q,x);
}
For (i=1 to 6) {
Z=Dequeue (Q);
Push(S,x);
}
Expert Answer
[solved] – Question 78919
Define the time structure, and write a program that obtains two time values from the user in 12:59:59 (using a string) format, stores them in struct time variables, converts each one to seconds (type int), adds these quantities, converts the result back to hours-minutes- seconds, stores the result in a time structure, and finally displays the result in 12:59:59 format. Note: The conversion from time format to seconds should be done in a function, a Time type variable would be passed to it, it would calculate the total number of seconds from that time to
00:00:00 and then return a structure variable.
Expert Answer
[solved] – Question 7893
when you have sevral tabs on web site what html code do you use to navigate to the tab you want to select
Expert Answer
[solved] – Question 78969
PROBLEM #1 Write a class StudentInfo that represents a student record. It must have variables to store the student ID, student’s name and student’s CGPA. It also must have a function to print all the values. You will also need to overload a few operators.
Task 1: Create a list of objects of class StudentInfo. Task 2: Insert 5 student records i. 15234 Jon 2.6 ii. 13732 Tyrion 3.9 iii. 13569 Sandor 1.2 iv. 15467 Ramsey 2 3.1 v. 16285 Arya 3.1
Task 3: Delete the record with ID 15467 Task 4: Retrieve the record with ID 13569 and print whether found or not along with the entire record. Output should be: Item is found 13569, Sandor, 1.2 Task 5: Print the list Output should be: 15234, Jon, 2..6 13732, Tyrion, 3.9 13569, Sandor, 1.2 16285, Arya, 3.1
Expert Answer
[solved] – Question 78970
Write a class TimeStamp that represents a time of the day. It must have variables to store the number of seconds, minutes and hours passed. It also must have a function to print all the values. You will also need to overload a few operators.
Task 1: Create a list of objects of class TimeStamp. Task 2: Insert 5 time values in the format ssmmhh
i. 15 34 23
ii. 13 13 02
iii. 43 45 12
iv. 25 36 17
v. 52 02 20
Task 3: Delete the timestamp 25 36 17
Task 4: Print the list
Output should be: 15:34:23
13:13:02
43:45:12
52:02:20
Expert Answer
[solved] – Question 7899
The using namespace statement is commonly used in programs to simplify the code involving C++ header files.Is really necessary to code your own namespaces in programs. Can you tell me some advantages and disadvantages of user-defined namespaces.
Expert Answer

