import java.util.Scanner;
public class U4_L1_Activity_Three {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Input a word:");
String word = scan.nextLine();
int index = 0;
while (index < word.length()){
if (index%2 == 0){
System.out.print(word.substring(index, index+1));
}
index+=1;
}
System.out.println("");
}
}
I hope this helps!
index fingers on F and J. middle fingers on K and D. ring fingers on L and S. pinkies on ; and A.
Answer:
in what areas is leslie's underspending hurting her
Savings
Housing
- Yes as investing in housing is a long term saving
Utilities
- no this is not a saving, underspending will increase saving
Transportation
- no this is not a saving, underspending will increase saving
Groceries
- no this is not a saving, underspending will increase saving
Retirement
- Yes as investing in Retirement is a long term saving
Debt Payment
-Yes as investing in Debt Payment is a long term saving
Phone, Cable, Internet
- no this is not a saving, underspending will increase saving
Medical Expenses
- no this is not a saving, underspending will increase saving
Miscellaneous
- accordingly as explained above for each option.
Dining out- no this is not a saving, underspending will increase saving
Explanation:
Please check the answer section.
Answer:
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main(){
int n;
cout<< "Enter the row and column length: ";
cin>> n;
int array_one[n][n];
int array_transpose[n][n];
for (int i = 0; i < n; i++){
for (int j= 0; j < n; j++){
srand((unsigned) time(0));
array_one[i][j] = (rand() % 4000)
array_transpose[j][i] = array_one[i][j];
}
}
}
Explanation:
The C source code has three variables, 'array_one', array_transpose' (both of which are square 2-dimensional arrays), and 'n' which is the row and column length.
The program loops n time for each nth number of the n size to assign value to the two-dimensional array_one. the assign values to the array_transpose, reverse the 'i' and 'j' values to the two for statements for array_one to 'j' and 'i'.
Answer:
A bus is characterized by the amount of information that can be transmitted at once. This amount, expressed in bits, corresponds to the number of physical lines over which data is sent simultaneously. A 32-wire ribbon cable can transmit 32 bits in parallel.
In computer architecture, a bus (related to the Latin “omnibus”, meaning “for all”) is a communication system that transfers data between components inside a computer, or between computers. This expression covers all related hardware components (wire, optical fiber, etc.)
Explanation: