Question

In: Computer Science

 VISUAL STUDIO (File Creation and Submissions)  FLOWCHART  Writing program in C++ ( cout,...

 VISUAL STUDIO (File Creation and Submissions)
 FLOWCHART
 Writing program in C++ ( cout, \n, \t, solving expressions )
 Correcting errors
Q1: Draw flow Chart of the following problems:
a) Display “Hello World” on screen.
b) Display Your Name, date of birth and mobile number on screen.
c) Compute and display the perimeter and area of a rectangle with a height of 7 inches and width
of 5 inches.
d) Compute and display the perimeter and area of a circle with a radius of 6 inches.
e) Compute and display the sum of a=1245698 and b=12345.
f) Read an employee's ID, total worked hours of a month and the amount he received per hour.
Print the employee's ID and salary of a particular month
Test Data:
Input the Employees ID: 0342
Input the working hours: 8
Salary amount/hour: 15000
Expected Output:
Employees ID = 0342
Salary = RS. 120000.00
g) Read two item’s weight and number of purchase and calculate the average value of the items
Test Data:
Weight of Item1: 15
No. of item1: 5
Weight of Item2: 25
No. of item2: 4
Expected Output:
Average Value = 19.444444
Q2: Practice the following on Visual Studio:
a) Create a blank C++ file using Microsoft Visual Studio

b) Create and save a cpp File in default directory
c) Create and save a cpp file in any location other than default location
d) Upload the test file for submission on portal.
Q3: Write C++ programs for the following problems.
a) Display Hello World message on screen.
Expected Output:
Hello World
b) Display Your Name, date of birth and mobile number on screen separated by comma as follows:
Expected Output:
Ahmad, 5-06-1995, 0321-5673451
c) Display a horizontal line of ten consecutive asterisks on screen as follows:
Expected Output:
**********
d) Display ITC LAB 1 on screen enclosed in single quotes as follows:
Expected Output:
‘ITC LAB 03’
e) Display ITC LAB 1 on screen enclosed in double quotes as follows:
Expected Output:
“ITC LAB 03”
Q4: Write the following lines of codes one by one as it is and then analyze the output:
a) cout<< ‘This is my first ITC lab ‘
b) //cout<< ‘This is my first ITC LAB’
c) cout>> “987654321”;
d) cout<<” 9876
54321”;
e) cout<<” 9876”
“54321”;
f) cout<<” 9876”;
cout<<54321;
g) cout<<”test\t\test1”;
h) cout<<” ###### \n ****** \n &&&&&&”;
i) cout<<” ###### \n &&&\t&&&”;
j) cout<<” 25+35”;
k) cout<< 100 + 200 ;
l) cout<<”40 * 3”;
cout<<”=”;
cout<<40*3;

m) cout<<10/5;
n) cout<<5/10;
o) cout<< k;

Solutions

Expert Solution

Hi there, due to limited time and so many subpargs under one question i have solved only first question, for remaining please repost.

If you need any further help do comment I'll be happy to help you further.

I have draw flowchart by considering general assumption if you want only to enter special value put values in there as per your question.

I have also shown this for part e how to do that.


Related Solutions

String Manipulator Write a program to manipulate strings. (Visual Studio C++) In this program take a...
String Manipulator Write a program to manipulate strings. (Visual Studio C++) In this program take a whole paragraph with punctuations (up to 500 letters) either input from user, initialize or read from file and provide following functionalities within a class: a)   Declare class Paragraph_Analysis b)   Member Function: SearchWord (to search for a particular word) c)   Member Function: SearchLetter (to search for a particular letter) d)   Member Function: WordCount (to count total words) e)   Member Function: LetterCount (ONLY to count all...
write a c++ program using micro soft visual studio 2010 to write a program and store...
write a c++ program using micro soft visual studio 2010 to write a program and store 36 in variable x and 8 in variable y. add them and store the result in the variable sum. then display the sum on screen with descriptive text. calculate the square root of integer 36 in x. store the result in a variable. calculate the cube root of integer 8 in y. store result in a variable. display the results of square root and...
C++ PROGRAM Using the attached C++ code (Visual Studio project), 1) implement a CoffeeMakerFactory class that...
C++ PROGRAM Using the attached C++ code (Visual Studio project), 1) implement a CoffeeMakerFactory class that prompts the user to select a type of coffee she likes and 2) returns the object of what she selected to the console. #include "stdafx.h" #include <iostream> using namespace std; // Product from which the concrete products will inherit from class Coffee { protected:    char _type[15]; public:    Coffee()    {    }    char *getType()    {        return _type;   ...
Create a Visual Studio console project (c++) containing a main() program that declares a const int...
Create a Visual Studio console project (c++) containing a main() program that declares a const int NUM_VALUES denoting the array size. Then declare an int array with NUM_VALUES entries. Using a for loop, prompt for the values that are stored in the array as follows: "Enter NUM_VALUES integers separated by blanks:" , where NUM_VALUES is replaced with the array size. Then use another for loop to print the array entries in reverse order separated by blanks on a single line...
Write a C program The Visual Studio project itself must make its output to the Console...
Write a C program The Visual Studio project itself must make its output to the Console (i.e. the Command Prompt using printf) and it must exhibit the following features as a minimum: 3%: Looping Menu with 3 main actions: View Cars, Sell Car, View Sales Note: A Car is defined by its price and model 3%: Must contain at least three arrays to record sales figures (maximum of 10 Car models) Two for recording the price and model of one...
Please code in C#-Visual Studio Tasks The program needs to contain the following A comment header...
Please code in C#-Visual Studio Tasks The program needs to contain the following A comment header containing your name and a brief description of the program Output prompting the user for the following inputs: Name as a string Length of a rectangle as a double Width of a rectangle as a double Length of a square as an int After accepting user input, the program outputs the following: User name Area of a rectangle with dimensions matching the inputs Area...
Write a C program that opens a file called "numbers.txt" in writing mode. The program should...
Write a C program that opens a file called "numbers.txt" in writing mode. The program should then read floating point numbers from the keyboard, and write these lines to the opened file one per line, stopping when the number 0 is entered. Your program should check to make sure that the file was opened successfully, and terminate if it was not.
Write a C program of car sale: The Visual Studio project itself must make its output...
Write a C program of car sale: The Visual Studio project itself must make its output to the Console (i.e. the Command Prompt using printf) and it must exhibit the following features as a minimum: 10%: Looping Menu with 2 main actions: Sell Car, View Sales Note: A Car is defined only by its price 10% Must contain at least one array containing sales figures (each entry represents the price of one vehicle) for a maximum of 10 Cars 5%:...
Develop a C++/Python program using visual studio connected to mysql workbench to show all vendor's name...
Develop a C++/Python program using visual studio connected to mysql workbench to show all vendor's name and phone (vendor_name and vendor_phone) in the state "CA" and the city "Los Angeles". here is the database tables CREATE TABLE general_ledger_accounts ( account_number INT PRIMARY KEY, account_description VARCHAR(50) UNIQUE ); CREATE TABLE terms ( terms_id INT PRIMARY KEY AUTO_INCREMENT, terms_description VARCHAR(50) NOT NULL, terms_due_days INT NOT NULL ); CREATE TABLE vendors ( vendor_id INT PRIMARY KEY AUTO_INCREMENT, vendor_name VARCHAR(50) NOT NULL UNIQUE, vendor_address1...
Language: c++ using visual basic Write a program to open a text file that you created,...
Language: c++ using visual basic Write a program to open a text file that you created, read the file into arrays, sort the data by price (low to high), by box number (low to high), search for a price of a specific box number and create a reorder report. The reorder report should alert purchasing to order boxes whose inventory falls below 100. Sort the reorder report from high to low. Inventory data to input. Box number Number boxes in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT