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

In visual Studio C++ Create a program that uses a for loop to input the high...
In visual Studio C++ Create a program that uses a for loop to input the high temperature, and low temperature for each day of the week. The high and low will be placed into two elements of the array. For each loop the high and low will be placed into the next set of elements of the array. After the temps for all seven days have been entered into the array, a for loop will be used to pull out...
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...
answer the following using C# Design and program a Visual Studio Console project in C# that...
answer the following using C# Design and program a Visual Studio Console project in C# that allows your user to enter a number. The program will examine the number to see if it is prime. If it is prime, it will print the next higher prime and the next lower primes to the console. If the number entered by the user is not prime, display a message to that effect. All code should be written by you. Do not copy/paste...
USING VISUAL STUDIO 2017, LANGUAGE VISUAL C# I have struggled on this program for quite some...
USING VISUAL STUDIO 2017, LANGUAGE VISUAL C# I have struggled on this program for quite some time and still can't quite figure it out. I'm creating an app that has 2 textboxes, 1 for inputting customer name, and the second for entering the number of tickets the customer wants to purchase. There are 3 listboxes, the first with the days of the week, the second with 4 different theaters, and the third listbox is to display the customer name, number...
ONLY USE VISUAL STUDIO (NO JAVA CODING) VISUAL STUDIO -> C# -> CONSOLE APPLICATION In this...
ONLY USE VISUAL STUDIO (NO JAVA CODING) VISUAL STUDIO -> C# -> CONSOLE APPLICATION In this part of the assignment, you are required to create a C# Console Application project. The project name should be A3<FirstName><LastName>P2. For example, a student with first name John and Last name Smith would name the project A1JohnSmithP2. Write a C# (console) program to calculate the number of shipping labels that can be printed on a sheet of paper. This program will use a menu...
use VISUAL STUDIO CODE to write this javascript program Exercise 1 (a) Create a HTML file...
use VISUAL STUDIO CODE to write this javascript program Exercise 1 (a) Create a HTML file that uses createElement and appendChild to dynamically insert three paragraphs when a button is clicked. (b) Create a HTML file that includes JavaScript that is similar to: let recs = [“my item …1”,”my item…2”, …] i.e. an array that contains several CSV item records. When the user clicks a button, each array element will be rendered as a list element. Use a HTML list....
create a C++ program using Visual Studio that could be used by a college to track...
create a C++ program using Visual Studio that could be used by a college to track its courses. In this program, create a CollegeCourse class includes fields representing department, course number, credit hours, and tuition. Create a child (sub class) class named LabCourse, that inherits all fields from the the CollegeCourse class, includes one more field that holds a lab fee charged in addition to the tuition. Create appropriate functions for these classes, and write a main() function that instantiates...
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...
Please use original C++ code for this. This is for visual studio. Program 5: Shipping Calculator...
Please use original C++ code for this. This is for visual studio. Program 5: Shipping Calculator The Speedy Shipping Company will ship packages based on how much they weigh and how far they are being sent. They will only ship small packages up to 10 pounds. You have been tasked with writing a program that will help Speedy Shipping determine how much to charge per delivery. The charges are based on each 500 miles shipped. Shipping charges are not pro-rated;...
Write a C-based language program in visual studio that uses an array of structs that stores...
Write a C-based language program in visual studio that uses an array of structs that stores student information including name, age, GPA as a float, and grade level as a string (e.g., “freshmen,”). Write the same program in the same language without using structs.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT