[Solved] CPR101 Week1 Activity

$25

File Name: CPR101_Week1_Activity.zip
File Size: 197.82 KB

SKU: [Solved] CPR101 Week1 Activity Category: Tag:
5/5 - (1 vote)

Part 1 of 4: Visual Studio Community introduction

Complete the Visual Studio project creation and Hello World program using the Visual Studio 2019 IDE (Integrated Development Environment)See the CP4P_Week1_VS_2019 demo.docx within the zip file.

The Visual Studio Community IDE used and needed for the C programming course runs only under a Windows operating system. There is a Visual Studio for macOS and Visual Studio Code for all OSs but the VS products are similar in name only, not in substance. (Microsoft would not maintain three different products if they were all the same.) By a wide margin, Visual Studio IDE is used by professional developers; VS supports many target environments, not just Microsoft Windows platforms.

Remove all the instructions before you submit. Keep only the questions and your answers. (Delete this line and all that came before it.)

Your name: Student No.: UserID: @mySeneca.ca

Where does Visual Studio store your helloWorld.c source file? Find the file and paste its Full Path in the box:

(Hints at using File Explorer to find your Visual Studio projects files are in the VS demo document.)

What is the content within the helloWorld.c file? Your source code, of course.Copy the text of your customized source statements from the Visual Studio editor and paste in the box below using the Paste Option to either Merge Formatting (M) or Keep Text Only (T).

N.B. there is no need to submit the VS project or the .c source file itself with this weeks activityjust your C code above.

Part 2 of 4: Proper naming convention and having correct file extensions

Four files can be found in the CP4P_Week1_Activity_WorkFiles subfolder. Those files all have the wrong file extension. Your task is to add the correct extension to those file names so the system can properly process those files.

  • IF the filename extensions are not being displayed in File Explorer:
  1. Press Alt-V to activate the View menu:
  2. Click to turn on the display ofFile name extensions

Normally, when you right-click a file, a number of options are available to process that file. E.g. Preview, Open, Open with > [optional applications]. These options are based on the files extension which the system relates to an application. Double clicking a file name opens it using the default application.

file.txt Notepad file.html Web Browserfile.bmp Paint graphics file.jpg Windows Picture Viewer

If there is a problem with the data within the file, the default application may issue an error message or, as many manuals say, results may be unpredictable.

Click and drag the file from File Explorer and drop it into a browser; any browser can render any of these file types but only if the files content matches its file extension. Firefox gives the best feedback when there is a problem. If nothing happens when you click and drag, you are probably dragging a compressed file from the .zip. Software applications work only with uncompressed file data.

Describe what happens and what you see when the file is dropped into Firefox (preferred) or any other browser. It will not be as expected from the file extension.

lunamoth.html

lunamoth.jpg

lunamoth.txt

lunamoth.bmp

To see the files data which is causing problems, open those files with Notepad to inspect their content: Start Notepad ( + Notepad), Open the file (Ctrl+O or File / Open) or just click and drag the file from File Explorer and drop into Notepad. This will display the files binary data as characters. Examine the raw data and determine what the files extension should be.

Now, rename each file adding the proper extension until all four files are opened correctly by their default applications. e.g. rename lunamoth.bmp to lunamoth.bmp.??? in order to keep track of which extension was renamed to another extension. Only the last extension on a files name is used by the operating system.

What are the new names of the files?

lunamoth.html.???

lunamoth.jpg.???

lunamoth.txt.???

lunamoth.bmp.???

What does this experience tell you about the importance of file names and their extensions? Did the renaming of these files have an effect on the data contained within the files?

Part 3: Working with a removable USB drive and a local drive while doing common file/directory operations

  • Open File Explorer and navigate to your folder containing the above Week 1 files.

In the left hand pane within the folder tree and using right-click

  • Create a new folder somewhere on the C: drive, e.g. under Desktop or Downloads.
  • Create a new folder on another drive, e.g. your USB drive or the D: drive on a lab PC if you dont have a USB drive (get one soon)

What happens to the files (not their content) when you select the lunamoth files in your original folder, then drag and drop them in the new folder on your USB drive or the D: drive, i.e. when the target drive is different from the source driveare the files MOVED or COPIED?

What happens to the files (not their content) when you select the lunamoth files in your original folder, then drag and drop them in the new folder on the C: drive, i.e. when dragging to a different folder within the same driveare the files MOVED or COPIED?

What happens when you drop a file while holding the Ctrl key and releasing the Left mouse button?

Programmers almost always click, drag, and drop using the right mouse button. What happens when you drag and drop a file using right mouse button?

After deleting a file from the PCs internal drive, can you restore it? If so, how?

How do you delete a file from a PC permanently so it cannot be recovered?

After deleting a file from your USB drive, i.e. an external drive, can you restore it? If so, how?

Part 4: Backing up your files

A backup is two copies in separate geographic locations on independent systems.

Use the browser to open the Content System in Blackboard

It is a simple repository where you can store folders and files.

If you see this message: Sorry! We cant access your Content Collection due to a permissions issue. Please ask your administrator for help. then please go to the Service Desk in the SEQ building Learning Centre, tell them about this, and ask them to check your accounts authorities.

Storage is also available by going to mySeneca.ca and opening Office 365s OneDrive.Click on the grid in the top left to open the menu and click on OneDrive.For the next question, if you do not have a USB drive with you, just work with OneDrive and the Content System.

Can you edit a text, source code, and/or MS Office file stored

  • directly on your USB drive?
    • If so, how? If not, what must you do to edit a file stored there?
  • directly in the Blackboard Content System?
    • If so, how? If not, what must you do to edit a file stored there?
  • directly on Office 365s OneDrive?
    • If so, how? If not, what must you do to edit a file stored there?

You can store and work with your Visual Studio projects (in repos or Projects folder) directly on a USB drive or your Office 365 OneDrive at Seneca.

It takes effort to copy files and directories from a USB drive or the Content System or OneDrive to the local drive, work with and save them locally, and then transfer the local files back. Is it worth the effort? Why or Why not? What are the benefits and risks in having the same file on your local system and on a removeable drive or remote system?

Create a backup: make two copies of todays files in separate geographic locations on independent systems both of which are not on the lab machine you might be using now. If using your own PC/laptop, you need at least one backup.

To back up all your Visual Studio work, compress/7zip the repos or Projects folder (with its sub-folders) into an archive and copy/move the archive file to a geographically separate system.

You can work with your Visual Studio projects directly on your own laptop, a USB drive, a personal OneDrive, or your Office 365 OneDrive. Make one of those your standard practice. Choose a different one for your backup. To distinguish the back up from your active version, put the repo into a zip file.

What are the two locations of your backup?

N.B. bidirectional synchronization of your PCs files with a cloud data service makes your system interdependent with the cloud; the synchronization is convenient but the systems are not independent. Although separated by geography, you have one file coexisting in two places. That is neither a copy nor a backup until you disconnect from the cloud service only then are the two systems independent. As soon as you reconnect, files are syncd and you once again have neither a copy nor a backup. If a file is deleted in one system, it will be deleted from all other syncd systems.

Make sure you have a proper backup before restarting or shutting down a Seneca lab PC when it starts, the PC is reset to its default state. That is, all files from the previous session are gone. At the start of term, it is worth confirming that that the PC is correctly configured: the D drive should indeed be temporary, and C:Users should have retained none of your files.

USB flash drives are wonderfully portable which makes them easily losable. If you do lose your drive, usually by forgetting it in the lab PC, how will it ever get back to you?

Little Bo-Bleephas lost her USB-flash-drive-with-files-on-each-of-her sheep,And doesnt know where to find it;Without her name,Home neer it came,But would have if she had signed it.

(Sadly, she didnt have a backup.)

  • Rename your USB drives volume label to your name.
  • Put a !!_PLEASE_RETURN_TO_!!.txt file in the root with your email address, contact information, and a nice message promising a reward coffee.
  • Put your name on the outside of the USB drive.
  • And it just might come home wagging its data behind it.

After your instructor has marked your activity, see the feedback under My Grades. Click the speech bubble beside the mark to see comments. And compare your mark with the Activity Marking Rubric in the course Announcements.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CPR101 Week1 Activity
$25