please write the code in C format avoid using (<<count>>)
Assume that you work for a travel agency. Write a C program that
performs 7 different tasks described below
for this company. The flights have the following
daily departure and arrival times:
| hotel name | cost | ride cost | |
| Rose | 248$ | 0$ | |
| Poprock | 90$ | 25$ | |
| flower | 128$ | 20$ |
| departure time | arrival time | cost |
| 7:15 am | 8:25am | 231$ |
| 8:15 am | 9:25am | 226$ |
| 9:15am | 10:25am | 226$ |
| 10:15am | 11:25am | 283$ |
| 11:15am | 12:25pm | 283$ |
| 3:15pm | 4:25pm | 226$ |
| 4:15pm | 5:25pm | 226$ |
| 5:15pm | 6:25pm | 401$ |
a) Based on the time entered by the customer, the closest departure time is displayed using 12- hour format.
b)the customer is asked if they would like a hotel and for how many days. hotel cost is mentioned above. Calculate the total cost (before taxes) and display it (flight + hotel for n number of days +ride).
c) now there is 2 types of discount:
Discount1: If the total fee is a multiple of 11,
then the
customer gets a 6% discount.
Discount2: An additional discount of 7% is given
to those customers whose subtotal
after discount1 is a multiple of the sum of digits of the
customer’s day of birth.
Three examples are given below for your convenience. See Sample
Input / output
for more clarification.
• Ex1: If the day of birth entered is 3, the customer will get an
additional 7%
discount if the sub-total of their purchase after discount1 is a
multiple of 3.
• Ex 2: If the day of birth entered is 12, the customer will get an
additional 7%
discount if their purchase after discount1 is a multiple of 3
(since sum of digits of
day of birth (12) is 3).
c)13% tax is applied to the total cost and the final bill is?
In: Computer Science
|
Employee |
A Birth Place |
B Monthly Salary (Nearest Dollar) |
C Current Rating |
D Rating Score (1.0 – 5.0) |
E Driving Distance Residence to Office (Miles) |
F Parking Permits Issued |
|
Sue |
Williamsburg, VA |
2,916 |
Meets |
3.2 |
2.3 |
1 |
|
Fred |
Boone, NC |
2,500 |
Below |
1.8 |
20.2 |
1 |
|
Mark |
Key West, FL |
1,000 |
Meets |
2.9 |
0.5 |
0 |
|
Dontay |
Smugglers Notch, VT |
2,000 |
Exceeds |
4.3 |
365.4 |
1 |
|
Margie |
Muleshoe, TX |
1,900 |
Meets |
3.0 |
5.7 |
2 |
|
Blake |
Lancaster, PA |
4,500 |
Meets |
3.4 |
1.6 |
1 |
List the column letter(A,B,C,D,E,F) associated with the following questions.
a. Which variables arecategorical (qualitative)? Answer: ___________________
b. Which variables are numerical (quantitative)?Answer: ___________________
c. Which of the variables, if any, arediscrete? Answer: ___________________
d. Which variables, if any, are continuous? Answer: ___________________
e. Which variables, if any, requireanIntervalScale? Answer: ________________
f. Which variables, if any, requirean OrdinalScale? Answer: ________________
g. Which variables, if any, requirea NominalScale? Answer: ________________
h. Which variables, if any, requirea Ratio Scale? Answer: _______________
In: Statistics and Probability
Almost all U.S. light-rail systems use electric cars that run on
tracks built at street level. The Federal Transit Administration
claims light-rail is one of the safest modes of travel, with an
accident rate of .99 accidents per million passenger miles as
compared to 2.29 for buses. The following data show the miles of
track and the weekday ridership in thousands of passengers for six
light-rail systems.
| City | Miles of Track | Ridership (1000s) |
| Cleveland | 16 | 16 |
| Denver | 18 | 36 |
| Portland | 39 | 82 |
| Sacramento | 22 | 32 |
| San Diego | 48 | 76 |
| San Jose | 32 | 31 |
| St. Louis | 35 | 43 |
| SSE | |
| SST | |
| SSR | |
| MSE |
In: Statistics and Probability
Almost all U.S. light-rail systems use electric cars that run on
tracks built at street level. The Federal Transit Administration
claims light-rail is one of the safest modes of travel, with an
accident rate of .99 accidents per million passenger miles as
compared to 2.29 for buses. The following data show the miles of
track and the weekday ridership in thousands of passengers for six
light-rail systems.
| City | Miles of Track | Ridership (1000s) |
| Cleveland | 14 | 17 |
| Denver | 16 | 37 |
| Portland | 37 | 83 |
| Sacramento | 20 | 33 |
| San Diego | 46 | 77 |
| San Jose | 30 | 32 |
| St. Louis | 33 | 44 |
| SSE | = |
| SST | = |
| SSR | = |
| MSE | = |
In: Statistics and Probability
|
Let p and q be the propositions |
|
| Determine whether each of these conditional statements is true or false. 2 a) If 1+1= 2, then 2 +2 !! en c) If l+I= 3, then 2+2 =5. |
|
| Write each of these propositions in the form "p if and only if q" in English. a) If it is hot outside you buy an ice cream cone, and if you buy an ice cream cone it is hot outside. b) For you to win the contest it is necessary and sufficient that you have the only winning ticket. |
| Let p, q, and r be the propositions p:Grizzly bears have been seen in the area. q: Hiking is safe on the trail. r: Berries are ripe along the trail. Write these propositions using p, q, and r and logical connectives. a) Berries are ripe along the trail, but grizzly bears have not been seen in the area. b) Grizzły bears have not been seen in the area and hiking on the trail is safe, but berries are ripe along the trail. c) Ifberries are ripe along the trail, hikingg is safe if and only ifgrizzly bears have not been seen in the area. d) It is not safe to hike on the trail, but grizzly bears have not been seen in the area and the berries along the trail are ripe. |
| How many rows appear in a truth table for each of these compound propositions? 5 a) p→-p b) (pv )A(qvs) |
In: Computer Science
3. Suppose that the production function is CobbDouglas with parameter α = 0.3.
a. What fractions of income do capital and labour receive?
b. Suppose that immigration raises the labour force by 10 percent. What happens to total output (in percent)? The rental price of capital? The real wage?
c. Suppose that a gift of capital from abroad raises the capital stock by 10 percent. What happens to total output (in percent)? The rental price of capital? The real wage?
please explain it like how to they get digits from suddenly out of no where
d. Suppose that a technological advance raises the value of the parameter A by 10 percent. What happens to total output (in percent)? The rental price of capital? The real wage?
In: Economics
String is wrapped around an object of mass M = 0.3 kg and moment of inertia I = 0.01 kg·m2. You pull the string with your hand straight up with some constant force F such that the center of the object does not move up or down, but the object spins faster and faster (see the figure). This is like a yo-yo; nothing but the vertical string touches the object. When your hand is a height y0 = 0.26 m above the floor, the object has an angular speed 0 = 14 radians/s. When your hand has risen to a height y = 0.66 m above the floor, what is the angular speed of the object? Your answer must be numeric and not contain the symbol F.
In: Physics
The proportion of customers who do online shopping is believed to be 0.3. A survey of49 customers was taken. They were asked if they did online shopping. A. What is the probability of the sample proportion to be below 0.25? B. What is the probability that the sample mean is above 0.35? C. What is the role of the central limit theorem in solving this problem?
In: Statistics and Probability
The CO2 content of the air in a 5000 cu ft room is 0.3 percent. Fresh air containing 0.1 percent CO2 is pumped into the room at teh rate of 1000 ft^3/min . A) find the percentage of CO2 in the room after 30 min. When will the CO2 content be 0.2 percent? ANS) 0.10 percent and 3.47 minutes
In: Chemistry
Given the following data, use exponential smoothing with a = 0.3 and α =.5 to develop a demand forecasts for period 7. Assume that the forecast for week 1= 19. Use the Mean Absolute Percent Error to determine which forecasts are more accurate.
|
Period |
1 |
2 |
3 |
4 |
5 |
6 |
|
Demand |
17 |
19 |
15 |
19 |
13 |
18 |
In: Advanced Math