• The Easy Living resort hotel wants you to write a program to calculate the base charge for its guests. The program should prompt the user for the room type ('G' for garden view, 'P' for pool view, or 'L' for lake view) and the number of days the guest is to stay. The program also should prompt for whether the guest is to have a refrigerator in the room and whether there is to be an extra bed in the room.
• The Easy Living resort hotel wants you to write a program to calculate the base charge for its guests. The program should prompt the user for the room type ('G' for garden view, 'P' for pool view, or 'L' for lake view) and the number of days the guest is to stay. The program also should prompt for whether the guest is to have a refrigerator in the room and whether there is to be an extra bed in the room.
Write a program that prompts the user to input a string and outputs the string in uppercase letters. You must use a
character array to store the string.
Sample program:
Enter a string: hello world!, welcome to programming
HELLO WORLD!, WELCOME TO PROGRAMMING
Write a program in C++ using repetition structures to print the following pattern. You are not allowed to use nested loops. (USE WHILE LOOP OR DO WILE LOOP)
****
***-
**--
*---
The client will request a service from the server and the server will process the service-request and then send a reply to the client.
In this lab project:You are a given a CSV file, and you should copy the file into some directory on the server.
Using Python- you will import the CSV file and analyse the data frames (i.e. data structured as columns and rows).
Tasks:
1. Write both TCP client and TCP server in Python version 3.8 or above.
2. Test the network connectivity between TCP client and TCP server.
3. Import the CSV file into the TCP server.
4. Find the number of rows and columns of the data set, and display the results on the TCP client machine.
5. Output the 2nd row on the TCP client machine.
6. Find the averages(mean) of the statistics for NBA players and display the results on the TCP client machine.
Print out:
1. The Python code for the above tasks and
2. Screen shots of results for tasks (2-6) above.
by CodeChum Admin
Remember that time when we've tried identifying the largest digit among the given integer? Well, let's take it to the next level, and figure out the same thing on arrays/lists!
Let's do this one more time!
Instructions:
Input
The first line contains the size of the array/list.
The next lines contains an integer on each.
5
5
34
3
23
10Output
A line containing an integer.
34by CodeChum Admin
Did you know that you can also reverse lists and group them according to your liking with proper code? Let's try it to believe it.
Instructions:
Input
The first line contains an odd positive integer.
The next lines contains an integer.
5
1
3
4
5
2Output
A line containing a list.
[2,5]-[4]-[3,1]by CodeChum Admin
Lists are fun to make, but it's even better to add or remove things from it when it's not usable anymore, right? Let's do just that in this problem now!
Instructions:
Input
Two lines containing a string.
fun
PythonOutput
A line containing a string.
Python·is·really·funby CodeChum Admin
We've already tried printing out the values of an array in reversed order, right? Today, we shall compute for the squares of all the numbers.
There's already a predefined array/list containing 100 integer values. Loop through each values, compute their squares, and display them.
Output
Multiple lines containing an integer.
4
9
25
10000
49
9
25
9
1
16
.
.
.by CodeChum Admin
I have a list of 3 numbers here with me that's already in the code editor, but I want you to add some more to this list by inputting some more numbers yourself in one line and then, print out only the even numbers from the list.
Can you do that for me?
Input
A line containing integers separated by a space.
33·54·32·11·8Output
Multiple lines containing an integer.
2
54
32
8