Answer:
Algorithm:
1.Create a variable N.
2.Read the value of N from user.
3.for i=1 to N.
3.1 Print value of i.
4.end program.
Implementation in C++:
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variable
int N;
cout<<"Enter value of N:";
// read the value of N
cin>>N;
cout<<"Natural number from 1 to "<<N<<" are:";
for(int i=1;i<=N;i++)
{
// print the numbers
cout<<i<<" ";
}
return 0;
}
Output:
Enter value of N:6
Natural number from 1 to 6 are:1 2 3 4 5 6
Answer:
import java.util.Scanner;
public class num12 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter the first String");
String word1 = in.nextLine();
System.out.println("Enter the second String");
String word2 = in.nextLine();
System.out.println("Enter the third String");
String word3 = in.nextLine();
//Remove all white spaces
String cword1 = word1.replace(" ","");
String cword2 = word2.replace(" ","");
String cword3 = word3.replace(" ","");
//Comparing the string by their lengths
if(cword1.length()>cword2.length()&&cword1.length()>cword3.length()){
System.out.println(word1+" Is the longest");
}
else if(cword2.length()>cword1.length()&&cword2.length()>cword3.length()){
System.out.println(word2+" Is the longest");
}
else{
System.out.println(cword3+" Is the longest");
}
}
}
Explanation:
Using Java Programming Language
Use the Scanner Class to obtain the String values from the user
Save them in different variables
Use the replace() method in java to remove white space from any of the string entered
Using if and else statements compare the lengths of the strings (word.length()) returns the length of the word.
Print out the word that is longest
NOTE I have compared three Strings, comparing two would have been more straigth forward
declared
B.
deallocated
C.
initialized
D.
All of the above
Answer:
A. declared
Explanation:
Before a structure can be used, it must be declared.
For example:
// Structure definition
struct s{
int a;
char b;
};
// Structure instantiation
struct s mystruct;
// This is where a structure instance called mystruct is created whose
// datatype is struct s.
mystruct.a = 10;
mystruct.b = 'c';
As we can see from the example definition precedes use for the structure.
Gus is employing the software methodology known as "Agile", where incremental changes are released at regular intervals within a timebox.
Given that;
Gus is developing new software in an environment in which incremental changes are released at regular intervals within a timebox.
Now Gus is employing the software methodology known as "Agile", where incremental changes are released at regular intervals within a timebox.
This approach allows for flexibility and adaptability in response to changing requirements and customer feedback.
Shana, on the other hand, is employing the software methodology known as "Lean Startup", specifically focusing on the minimum viable product (MVP) stage.
The Lean Startup methodology emphasizes rapid iteration and feedback cycles to quickly validate ideas, test assumptions, and gather insights for continuous improvement.
Hence, Both Gus and Shana are using different methodologies that align with their respective goals and stages of software development.
Learn more about the methodology;
#SPJ3
Answer: Agile, Lean
Gus is employing the software methodology known as agile, while Shana is employing the software methodology known as lean.
1: A. Presentation software
B. webcast
C. external monitor
2: A. Projectors
B. CDs
C. Streaming technology
Answer:
A Presentation software allows you to transmit your presentation over the internet using CDs??????????????????C
Answer: Lamborghini
Explanation: Is it yours
void f1(int array, int size);
void f1(int& array, int size);
void f1(int array[100], int size);
void f1(float array[], int size);
All of the above
C and D
A and B
Answer:
Only
Option: void f1(float array[], int size);
is valid.
Explanation:
To pass an array as argument in a function, the syntax should be as follows:
functionName (type arrayName[ ] )
We can't place the size of the array inside the array bracket (arrayName[100]) as this will give a syntax error. The empty bracket [] is required to tell the program that the value that passed as the argument is an array and differentiate it from other type of value.