Starting out with Visual C# (4th Edition)
4th Edition
ISBN: 9780134382609
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 5, Problem 6MC
A __________ file contains data that has been encoded as text, using a scheme such as Unicode.
- a. text
- b. character
- c. Unicode
- d. system
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Please no plagiaris.m....
Write a PowerShell script (.ps1 file) to do the following.
1. Ask the user to input two floating point numbers
2. Calculate the addition, subtraction, multiplication and division of the two numbers and print the following result:
Enter 1st floating Point number : 45.3Enter 2nd floating Point number : 19.56
Basic Calculator by: Your Name------------------------------------------45.3 + 19.56 = 64.8645.3 - 19.56 = 25.7445.3 * 19.56 = 886.06845.3 / 19.56 = 2.3159509202454
PYTHON QUESTION #6
Two programs are required. In each program:
Start with a comment that includes your name and course number.
Include pseudocode that describes all steps required to solve the problem.
Employ variable names that describe the values they store and adhere to Python naming conventions.
Include additional comments as needed to annotate your code.
Use correct spelling and grammar.
5a: Write a program named filemaker.py that will be used to store the first name and age of some friends in a text file named friends.txt. The program must use a while loop that prompts the user to enter the first name and age of each friend. Each of these entries should be written to its own line in the text file (2 lines of data per friend). The while loop should repeat until the user presses Enter (Return on a Mac) for the name. Then, the file should be closed and a message should be displayed. See Sample Output.SAMPLE OUTPUT
Enter first name of friend or Enter to quit DennyEnter age…
Python
Need only up to 11 character not whole file
Write a program in python to read a file up to 11 characters and print what is written on it the file named news.txt
Chapter 5 Solutions
Starting out with Visual C# (4th Edition)
Ch. 5.1 - Prob. 5.1CPCh. 5.1 - Prob. 5.2CPCh. 5.1 - Prob. 5.3CPCh. 5.2 - What is a loop iteration?Ch. 5.2 - What is a counter variable?Ch. 5.2 - What is a pretest loop?Ch. 5.2 - Does the while loop rest its condition before or...Ch. 5.2 - What is an infinite loop?Ch. 5.3 - What messages will the following code sample...Ch. 5.3 - How many rimes will the following loop iterate?...
Ch. 5.4 - Name the three expressions that appear inside the...Ch. 5.4 - You want to write a for loop that displays I love...Ch. 5.4 - What would the following code display? for (int...Ch. 5.4 - What would the following code display? for (int...Ch. 5.5 - What is a posttest loop?Ch. 5.5 - What is the difference between the while loop and...Ch. 5.5 - How many times will the following loop iterate?...Ch. 5.6 - What is an output file?Ch. 5.6 - What is an input file?Ch. 5.6 - What three steps must be taken by a program when...Ch. 5.6 - What is the difference between a text file and a...Ch. 5.6 - Prob. 5.22CPCh. 5.6 - What type of object do you create if you want to...Ch. 5.6 - What type of object do you create if you want to...Ch. 5.6 - If you call the File.CreateText method and the...Ch. 5.6 - If you call the File.AppendText method and the...Ch. 5.6 - What is the difference between the WriteLine and...Ch. 5.6 - What method do you call to open a text file to...Ch. 5.6 - What is a files read position? Initially, where is...Ch. 5.6 - How do you read a line of text from a text file?Ch. 5.6 - How do you close a file?Ch. 5.6 - Assume inputFile references a StreamReader object...Ch. 5.7 - What is the benefit of using an Open and/or Save...Ch. 5.7 - Prob. 5.34CPCh. 5.8 - What does a Random objects Next method return?Ch. 5.8 - What does a Random objects NextDouble method...Ch. 5.8 - Write code that creates a Random object and then...Ch. 5.8 - Write code that creates a Random object and then...Ch. 5.8 - Prob. 5.39CPCh. 5.8 - What happens if the same seed value is used each...Ch. 5.9 - Prob. 5.41CPCh. 5.9 - Prob. 5.42CPCh. 5 - ListBox controls have an __________ method that...Ch. 5 - A __________ is commonly used to control the...Ch. 5 - A(n) __________ loop tests its condition before...Ch. 5 - The term __________ is used to describe a file...Ch. 5 - The term __________ file is used to describe a...Ch. 5 - A __________ file contains data that has been...Ch. 5 - When you work with a __________ file you access...Ch. 5 - Prob. 8MCCh. 5 - A __________ object is an object that is...Ch. 5 - When a program works with an input file, a special...Ch. 5 - When the user selects a file with the Open dialog...Ch. 5 - The __________ control displays a standard Windows...Ch. 5 - Once you have created a Random object, you can...Ch. 5 - Prob. 14MCCh. 5 - When you run an application, the applications form...Ch. 5 - If the ListBox is empty, the Items.Count property...Ch. 5 - To increment a variable means to increase its...Ch. 5 - When a variable is declared in the initialization...Ch. 5 - The while loop always performs at least one...Ch. 5 - The term read file is used to describe a file that...Ch. 5 - To append data to an existing file, you open it...Ch. 5 - As items are read from the file, the read position...Ch. 5 - The numbers that are generated by the Random class...Ch. 5 - Prob. 10TFCh. 5 - What is contained in the body of a loop?Ch. 5 - Write a programming statement that uses postfix...Ch. 5 - How many iterations will occur if the test...Ch. 5 - What are filename extensions? What do they...Ch. 5 - When an input file is opened, what is its read...Ch. 5 - How can you read all of the items in a file...Ch. 5 - What is a variable that is used to accumulate a...Ch. 5 - By default, the Open dialog box displays the...Ch. 5 - Prob. 9SACh. 5 - Prob. 10SACh. 5 - Write a loop that displays your name 10 times.Ch. 5 - Write a loop that displays all the odd numbers...Ch. 5 - Write a loop that displays every fifth number from...Ch. 5 - Write a code sample that uses a loop to write the...Ch. 5 - Assume that a file named People.txt contains a...Ch. 5 - Distance Calculator If you know a vehicles speed...Ch. 5 - Distance File Modify the Distance Calculator...Ch. 5 - Celsius to Fahrenheit Table Assuming that C is a...Ch. 5 - Prob. 4PPCh. 5 - Pennies for Pay Susan is hired for a job, and her...Ch. 5 - Prob. 6PPCh. 5 - Prob. 7PPCh. 5 - Prob. 8PPCh. 5 - Prob. 9PPCh. 5 - Addition Tutor Create an application that...Ch. 5 - Random Number Guessing Game Create an application...Ch. 5 - Calculating the Factorial of a Number In...Ch. 5 - Random Number File Writer Create an application...Ch. 5 - Random Number File Reader This exercise assumes...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
For each of the following activities, give a PEAS description of the task environment and characterize it in te...
Artificial Intelligence: A Modern Approach
What is pseudocode?
Starting Out With Visual Basic (8th Edition)
Mass and Weight Scientists measure an objects mass in kilograms and its weight in Newtons. If you know the amou...
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Explain how entities are transformed into tables.
Database Concepts (7th Edition)
(Check password) Some Websites impose certain rules for passwords. Write a method that checks whether a string ...
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Assume a class named Bird exists. Write the header for a member function that overloads the operator for that ...
Starting Out with C++: Early Objects
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- C++ Calculate the sum of one column from a txt file, Please do read the question carefully Below is some information in a txt file 249,V,R,5287,250,M,A,2941,251,M,R,7552,252,M,C,6723, How do I use c++ to read this text file and get the sum of the 4th column(last column) with follow #include #include <iostream>#include <iomanip>#include <string>#include <vector>#include <fstream>arrow_forwardC++ with comments please Create a program proj5_3.cpp that would read the content of an input file and write it back to an output file with all the letters "C" changed into "C++". The names of input/output files are entirely up to you. For example the following file content:"C is one of the world's most modern programming languages. There is no language as versatile as C, and C is fun to use."should be changed and saved to another file with the following content:"C++ is one of the world's most modern programming languages. There is no language as versatile as C++, and C++ is fun to use."To read one character from the file you should use the get() function: ifstream inputFile;char next;...inputFile.get(next); Absolutely NO GLOBAL VARIABLES/ARRAYS/OBJECTS ALLOWED for ALL PROBLEMS.arrow_forwardA file that contains program code is called a(n) __________.a. destination code fileb. executable file c. machine language file d. source code filearrow_forward
- Using any means at your disposal (MS Word, MS Paint, Adobe Photoshop, or hand drawn, etc.),draw a flowchart that will let the user enter 100 numbers. The program will identify the lowestnumber entered by the user, computes for the square of the number and prints it. Your outputshould be a JPEG (.jpg) file with “LASTNAME_CLASSCODE_FLOWCHART” as itsfilename.arrow_forwardQuestion about C language. Make 100 text files text001.txt text002.txt etc text099.txt in a folder and write in each of them string "fghjkl". It'd be good to use sprintf(). Here is the basement of the code and it's needed to fill in all the missed part: #include <stdio.h> int main() { FILE* fout; char filename[100]; /* code part */ return (0); } Thank you!arrow_forward(Inventory) Create an ASCII file with the following data, or use the shipped.dat file available on this book’s Web site. The headings aren’t part of the file but indicate what the data represents Using this data file, write a C++ program that reads the file and produces a report listing the shipped date, part number, first name, last name, and company name.arrow_forward
- Create a new text file using a notepad or any other software, The text file contains your name(first 8 chars) and the file must be exactly 8 bytes in size only and name it “your_ID.txt”.arrow_forwardQuestion 5 Python Problem Manually create (or find) a text file with 1000 words. Save the text file in an appropriate place on your computer. Write a script that will search the file and will find any word that contains the letters “ade” in that order. Print each word found that contains these three letters within the word. Full explain this question and text typing work only thanksarrow_forwardPlease code this asap i need to understand these questions and if possible please attach a pdf or word file so i can copy and paste it in codeblocks and run the program myself!arrow_forward
- please use c# Be sure to thoroughly document your coding, explaining what you did and why you did it. Comments should explain what your code does (each line or each block of lines...etc.) 17.3 (File of Student Grades) Create a program that stores student grades in a text file. The file should contain the name, ID number, class taken and grade of every student. Allow the user to load a grade file and display its contents in a read-only TextBox. The entries should be displayed in the following format: We list some sample data below: i attached imagearrow_forwardManually create a file city.txt Manually store city namesNew York Mandi Bahauddinwah cantt i) Read these names using a C++ programii) Print the city names having 3 letters before space.arrow_forwardHi, I am trying to learn and execute a morse code in this way and by using this format, I already know another way and it works but it will be very helpful to understand this one as well, thanks. def print_intro(): def get_input(): def encode(message): def decode(message): def process_lines(filename, mode): def write_lines(lines): def check_file_exists(filename): def main():arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C - File I/O; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=cEfuwpbGi1k;License: Standard YouTube License, CC-BY
file handling functions in c | fprintf, fscanf, fread, fwrite |; Author: Education 4u;https://www.youtube.com/watch?v=aqeXS1bJihA;License: Standard Youtube License