Write the correct output (C++) #include using namespace std; int main(){ int num=1; switch(num){ case 1: cout<<"1"; case 2: cout<<"2"; case 3: cout<<"3"; case 4: cout<<"4"; case 5: cout<<"5"; default: cout<<"invalid"; } return 0; }
Q: Which of the following software development elements is the most important in terms of importance?…
A: Intro A software developer utilise computer programming to build software. They construct software…
Q: What are the most important aspects of software development? What additional four traits do you feel…
A: Intro Software development: The significance of software development's capacity to produce and…
Q: Explain the differences between procedural and object-oriented programming with one sample programme…
A: Intro In this question we have to understand the difference between procedural programming and…
Q: Correct the program (C++) #include using namespace std; int main(){ int a=5, b = 10, c = 8;…
A: A variable is name where values are stored. Here c is a variable where addition of a and b is…
Q: The use of forensic software by investigators is intended to aid them in finding evidence; but, what…
A: Investigators can learn information about computer users, locate deleted data, rebuild artefacts,…
Q: 2. Given the following table: Process P1 P2 P3 P4 Arrival Time 0 1 2 3 Burst Time 3 4 3 2 Calculate…
A: Round Robin Algorithm: In this algorithm, each and every ready task runs turn by turn only in a…
Q: Distinguishing characteristics of the von Neumann and Harvard computer architectures should be…
A: Von Neumann Architecture Harvard Architecture 1. Uses a single common physical memory for both,…
Q: 5- When de we need to use private keyword in C++ class? 6- A derived class can be a base class for…
A: 5) When you need private keyword in c++ class 6) Derived class can be a base class for other class…
Q: How do you identify tor browser traces during an investigation?
A: Introduction: The Tor browser is one of the issues that piques the interest of any person who is…
Q: ow trustworthy is the use of sentiment analyses? What mechanism do you believe is employed to do…
A: Intro The accuracy and technique of sentiment analysis. Sentiment analysis is the technique of…
Q: How do we decide which model to construct while using Microsoft Access to generate our tables?
A: Intro Microsoft Access: A database management system is Microsoft Access. A relational database…
Q: Explain the importance of networking in IT development in no more than 300 words.
A: Intro Foundation: A software developer's talents are the technical competencies learned to construct…
Q: What is the purpose of forensic software, and how does it equip investigators with certain skills?
A: Software forensics is the science of analyzing software source code or binary code to determine…
Q: Exist any genuine questions that researchers in the field of software engineering must answer?
A: Given: The following list of 15 of the highest-paying software jobs includes information on tasks,…
Q: What is meant by the term "posttest loop"?
A: The meaning of the term "posttest": A test that is administered to students after they have…
Q: Describe the advantages of the deep web for firms that rely on information technology.
A: Sections of the internet that are not accessible by traditional search engines like Google, Yahoo,…
Q: b. Write a program in VB script which will create three buttons labeled as "RED", "BLUE" and…
A: vb script to create three labled button as red,blue,green, and clicking on any button change…
Q: In object-oriented programming, what are the advantages of data abstraction and control abstraction?
A: Given: Abstraction is a way to hide extraneous information and reveal just the essentials so you can…
Q: What are your thoughts on whether social media networks like Facebook should provide law enforcement…
A: Intro Facebook: College administrations and law enforcement organisations are using the social media…
Q: Identify the networking software which helps you to communicate with your teacher and instructors.…
A: Answer: We need to write some networking software which help you to communicate with your teacher…
Q: Explain why firewalls are such a crucial component of network protection and cybersecurity. In a…
A: Introduction: As a vital component of network defense and cybersecurity, network scanning and…
Q: How does forensic software assist investigators, and what is its purpose?
A: Forensic Software: Investigators may learn information about computer users, locate deleted data,…
Q: There is a possibility that basics are being neglected in software development. Explain?
A: Here we have mentioned few basic points that are neglected in software development. You can find the…
Q: What are your goals for the authentication process? Distinguish the advantages and disadvantages…
A: Intro Authentication technology provides access control for systems by checking to see if a users…
Q: Do you have a working knowledge of the following three forensic software programmes and what they…
A: The following three forensic computer procedures must be carried out: 1. Acquiring (without…
Q: What exactly does the shorthand for "Data Definition Language" signify when broken down into its…
A: Language for the Definition of Data: It is abbreviated as "Data Definition Language," which is the…
Q: What are the most compelling reasons for using layered protocols?
A: Introduction: Layered Protocols: A protocol is a set of rules and practices that describe how two…
Q: Create a structure named MyStruct containing two fields: field1, a single 16-bit WORD, and eld2, an…
A: Given Structure name: MyStruct Fields: filed1, a single 16-bit WORD field2, an array of 20 32-bit…
Q: are types of changes that occur when text has been omitted from a document and must be inserted…
A: Modification means a change that has been made. Deletion is the removal of any object from a…
Q: please provide handwritten solution for part(c)
A: Say whether the following are correct. If yes, provide a natural deduction proof. If not, provide a…
Q: What three variables affect hardware choices?
A: The physical parts of a computer system used for tasks like data input, processing, output, and…
Q: Global System for Mobile Communications, or GSM.What does this acronym signify when it is fully…
A: Introduction: GSM (Global System for Mobile Communications) is a second-generation cellular phone…
Q: Explain why some experts are opposed to the practise of denormalization.
A: Introduction: Reasons to oppose the process of denormalization include:
Q: When designing software systems, what are the most important aspects to bear in mind from a design…
A: A software system is a group of cooperating parts based on software that is a component of a…
Q: ain the differnece between soql and sosl sales
A: Introduction: Below the differnece between soql and sosl salesforce.
Q: What exactly is a local variable? Which statements can access a local variable?
A: Introduction: The most prevalent sort of variation in systems is local variation. This adaptability…
Q: Does the process of developing software lack any components that are absolutely necessary? Explain?
A: Definition: A collection of instructions known as a programmed may be used to carry out a specific…
Q: It's important to understand the difference between the terms "hardware" and "software."
A: Hardware refers to computer parts: Touchable computer parts are hardware. These are the computer's…
Q: So, what is the significance of software development?.. According to you, the software development…
A: Intro Software Development: Put the blame on the Customer Experience for this one (CX) Rising…
Q: By default, the first item to be shown in the drop-down list is Pick a college : Choose a college…
A: Answer:- (B) Choose a college
Q: What are the most important roles that an operating system plays?
A: What is the definition of an operating system? It serves as a connection between the user and the…
Q: Distinguish how OLAP functions in descriptive analytics.
A: Introduction: Even while OLAP engines make it easy to do operations such as slicing, dicing,…
Q: Provide three instances of WiFi network vulnerabilities. Determine the kind of attack that might be…
A: There are three possible security issues in Wi-Fi networks: 1) Configuration Issues: Many…
Q: Virtualization is projected to have an influence on operating systems in two ways.
A: Introduction Operating system virtualization (OS virtualization) Operating System Virtualization…
Q: What role does educational technology play in our present pandemic situation?
A: The solution to the given question is: With all educational institutions closed during the current…
Q: Empty processing cycles may be avoided when a computer processor is processing a large number of…
A: Introduction: Processing instructions in the instruction cycle, also known as the…
Q: Definition of smart city? Only 2 sentences
A: Smart City DefinitionThere are various meanings of what makes a city 'shrewd,' for instance, IBM…
Q: A community bank may use one of three types of servers.
A: Intro As there are many types of servers used by the bank: Servers: This is the server that runs…
Q: 16 Input Type Search Search Google: 17 Input Type Time Select a time: Submit 18 Input Type Week…
A: <label for="gsearch">Search Google:</label><input type="search" id="gsearch"…
Q: Input and output must be considered throughout the different phases of software system design, yes.
A: Given: We use five steps in the software design process at its most fundamental level: research,…
Write the correct output (C++)
#include<iostream>
using namespace std;
int main(){
int num=1;
switch(num){
case 1: cout<<"1";
case 2: cout<<"2";
case 3: cout<<"3";
case 4: cout<<"4";
case 5: cout<<"5";
default: cout<<"invalid";
}
return 0;
}
Step by step
Solved in 4 steps with 2 images
- Note for programmer: 1.Write a separate main() function as a driver for each question. The driver should demonstrate all the required functionalities of a question. 2. Write a c++ code and do not use any String or Math libraries (such as cmath, cstring, string, etc.) and also do not use built-in functions (such as pow, etc.).PROBLEM: Write a C++ program that will allow the user to input the First Name, Last name, Middle Initial, and grade of a student. The following conditions must be observed: If the gradeinput is 96-100, the remarkis “ you performed an excellent job! Keep it up !” If the gradeinput is 91-95, the remarkis “ you performed a very satisfactory Job! Keep it up !” If the gradeinput is 86-90, the remarkis “ you have satisfactory performance, you can improve some more. ” If the gradeinput is 80-85, the remarkis “ your performance is fair, try harder” If the gradeinput is 75-79, the remarkis “ your performance needs Improvement, you can do it” If the gradeinput is below 75, the remark is “ we’re sorry but you failed, we know you can do better next time”Write two Haskell functions to calculate ticket prices. Tickets for those ages 12 and under are $8.50, tickets for those between 13 and 65 are $14.50 and those older than 65 are $9.00. The second function should calculate tax – assume tax is 12%. Using function chaining to calculate the total cost. The main function should ask what type of ticket the person wants (child, adult, or senior) and call the functions that you wrote. Show the type signatures of the functions you write.
- Understanding Operator Precedence and Associativity Summary In this lab, you complete a partially written C++ program that is provided for you. The program, which was written for a furniture company, prints the name of the furniture item, its retail price, its wholesale price, the profit made on the piece of furniture, a sale price, and the profit made when the sale price is used. Instructions Ensure the provided file named Furniture.cpp is open. The file includes variable declarations and output statements. Read them carefully before you proceed to the next step. Design the logic and write the C++ code that will use assignment statements to: Calculate the profit (profit) as the retail price minus the wholesale price Calculate the sale price (salePrice) as 25 percent deducted from the retail price Calculate the sale profit (saleProfit) as the sale price minus the wholesale price. Execute the program by clicking the Run button. Your output should be as follows: Item Name: TV…Write a c++ program to display a calendar for a given year. Type of Branches such as switch statements, if-else, and etc. should be used as well. You can't define functions or use Void. Everything should be written inside int main(). Code should be written in this type of format: #include <iostream>using namespace std; int main() { /* Type your code here. */ return 0;} Ask a user to enter the year and the new year's day of the year entered: cout <<"Enter a calendar year to display?"; cout <<" what is the new year's day?"; a leap year is: IF year%4 = 0 AND year%100 != 0 OR year%400 = 0 An example of what the program should display as a result is in the two images attached.write test programs in c++ ,java,and c# to determine the scope of a variable declared in a for statement . specifically ,the code must determine whether such a variable is visible after the body of the for statement
- When should we use call-by-value: ___________________________ When should we use call-by-reference: ___________________________ When should we use call-by-const-reference: ___________________________ in c++AHPA #9:A Gas Station• You have been asked to create a C program to manage the gaspumps at a gas station. The station has four pumps connectedto four tanks with capacities: 100, 75, 50, and 150. Every timea car fills up it takes 10 gallons. You’ll know that a car hasarrived because the carArrived function will return with apump number. After a car has filled up, print out the currentcontents of all four tanks.• Write a C program that can track each of the four tanks. Updatethe amount of gas remaining in a tank when a car fills up.When a tank gets to less than 20 gallons of gas remaining,make a call to request a refill truck visit the station(refillRequest). This will cause the tank to berefilled automaticallyDefine the function: int power (int base, int exp) {/*It accepts the arguments for base and exponent and returns power. The algorithm is to repeatedly multiply the value of the base to how many times the value of exponent. Test the function inside main(). Write the complete C program. */} For example: Intput. Result 2 32 5
- Implement in C Programming 7.6.1: LAB: Simple car Given two integers that represent the miles to drive forward and the miles to drive in reverse as user inputs, create a SimpleCar variable that performs the following operations: Drives input number of miles forward Drives input number of miles in reverse Honks the horn Reports car status SimpleCar.h contains the struct definition and related function declarations. SimpleCar.c contains related function definitions. Ex: If the input is: 100 4 the output is: beep beep Car has driven: 96 miles main.c #include <stdio.h> #include "SimpleCar.h" int main() { /* Type your code here. */ return 0;} SimpleCar.h #ifndef SIMPLE_CAR_H#define SIMPLE_CAR_H typedef struct SimpleCar_struct { int miles;} SimpleCar; SimpleCar InitCar();SimpleCar Drive(int dist, SimpleCar car);SimpleCar Reverse(int dist, SimpleCar car);int GetOdometer(SimpleCar car);void HonkHorn(SimpleCar car);void Report(SimpleCar car); #endif SimpleCar.c #include…In C++ Write a C++ function that has a floating point parameter called distance. Your function should print the following sentence with the parameter inserted in the blank space: The sun was _____________ miles from this planet. The function should not return any value.You will get practice in this assignment in the following areas in C/C++:• Writing a simple C++ program• Compiling and linking• Logical expressions• Simple arithmetic and/or assignment statements• Standard Input and output• Variable Declaration• Simple If statements• Simple while statement• Declaring constants and variables• Good programming practices Programming Specifications:1. Your program must produce the minimal bill and coin count.2. Your program must accept values between 1 and 1,000,000 pennies. If a number is entered outside that range your program should continue to ask for a valid number.3. No Global Variables BUT your program must use global constants.4. You must use declared constants in your program and not literal values.5. Only print out non-zero values.. So, if there are no Five’s ….then don’t print zero fives. Design Considerations/Algorithms To see if you need to issue 100 dollar bills you divide the amount of pennies by the number of pennies in a 100 dollar bill.…